" Text="" runat="server"> Range(1, 1..." />
You're looking for the ItemCommand event: asp:Repeater ID="Repeater1" OnItemCommand="ItemCommand" runat="server"> " Text="" runat="server"> Range(1, 10); Repeater1.DataBind(); } } protected void ItemCommand(Object Sender, RepeaterCommandEventArgs e) { Response. Write("The no. " + ((LinkButton)e.
CommandSource). Text + " button was clicked! "); } but are you really sure you need the LinkButton?
A plain HTML anchor tag might work just as fine, and it's less fuzz. :).
You're looking for the ItemCommand event: " Text="" runat="server"> Code behind: protected void Page_Load(object sender, EventArgs e) { if (!Page. IsPostBack) { Repeater1. DataSource = Enumerable.
Range(1, 10); Repeater1.DataBind(); } } protected void ItemCommand(Object Sender, RepeaterCommandEventArgs e) { Response. Write("The no. " + ((LinkButton)e.
CommandSource). Text + " button was clicked! "); } ... but are you really sure you need the LinkButton?
A plain HTML anchor tag might work just as fine, and it's less fuzz. :).
Thank you sir! It worked great! – Gerardo Abdo Feb 26 '10 at 17:30 You're welcome, glad to help.
Don't forget to mark select an accepted answer for your questions. :) – Jakob Gade Feb 27 '10 at 3:55.
Just a thought, have you tried using a "DataGrid" object, adding a column, making it an item template and then putting in the elements you need to repeat within the template formatted. The DataGrid also automatically handles paging when set to true...
Well, the problem with using an automatic pagging is that I need to bring all the registers from the DB and to make it quicker I want to return just what will be shown ;) – Gerardo Abdo Feb 26 '10 at 17:31 just a thought... – DRapp Feb 26 '10 at 20:05.
You never stated what type of control it is your paging. If you are using ASP. Net 3.5 then I HIGHLY suggest using the ListView control and handling the paging with the DataPager control.
What I have seen is that Datapager needs a control assigned to automatically paging and for that I need to bring all the registers from the DB and to make it quicker I want to return just what will be shown – Gerardo Abdo Feb 26 '10 at 17:23.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.