Datalist with buttons
-
Hi everyone, im trying to put a button in a datalist. This button doesnt have to be displayed for each row i have in the datalist. So, i put this button on the EditItemTemplate area, cause i want to display it once. But, for some reason it doesnt display in the run time. Am i missing any step? Thank u very much.
-
Hi everyone, im trying to put a button in a datalist. This button doesnt have to be displayed for each row i have in the datalist. So, i put this button on the EditItemTemplate area, cause i want to display it once. But, for some reason it doesnt display in the run time. Am i missing any step? Thank u very much.
Hello Beck, If you required button to be only once in a datalist. 1.Then add the button control in FooterTemplate of the datalist.Then in aspx page code will be as follow. 2. Onclick="UpdateValue" is event that raise on button click event.Write the UpdateValue funtion defintion in code behind page as follows. protected void GetText(object sender, System.EventArgs e) { // write your code here } if u required is not the above then let me wat is ur requirement actualy... okay.
-
Hello Beck, If you required button to be only once in a datalist. 1.Then add the button control in FooterTemplate of the datalist.Then in aspx page code will be as follow. 2. Onclick="UpdateValue" is event that raise on button click event.Write the UpdateValue funtion defintion in code behind page as follows. protected void GetText(object sender, System.EventArgs e) { // write your code here } if u required is not the above then let me wat is ur requirement actualy... okay.