I have a linkbutton control in gridview. The linkbutton shows multiple names seperated by comma. When i click on names i want to get the nameID which i can pass to sproc. I am not sure how do i bind the name and name ID to the gridview linkbutton?
I have a repeater with a nested LinkButton that passes record's unique identifier (ADRTYPECODE) to the same page.I would like to change its behavior to pass the same argument to a different aspx page.How do I make that page respond to an event fired by this button?
I have a repeater that has a LinkButton in the Item Template. The LinkButton displays a UserControl that consists of a FormView. The UserControl has an HTML Element that when clicked hides the UserControl by simply change the display of the control from 'block' to 'none'. If the 'Close' span is clicked, the UserControl is successfully hidden, but afterward, the 'Edit' linkbuttons no longer postback.
I want linkbutton to have header text. Scenario is like when user clicks on proposal_id, in code behide i want to retrieve id. I am able to retrieve but i want header Text to be displayed. I am not able retrieve id using ButtonField.
I am using a linkbutton iside a gridview.... i need to get the text of the link button in another function. how can get that ... i tried find control .. but its not working.... I created the link button from other function which executes just b4 this function...
i am using datalist control. in that, i have linkbutton in itemTemplate. i want to get the linkbutton value to textbox is in outside of datalist when i click the link button. below my design code there.
How to change the values in gridview on text change of templated control without databind again?the value of templated text boxes should change If i change the value of one of the templated textbox then accordingly(By mathematical calculations) the vlaues of all tempated textboxes should also change.
I have a linkbutton inside datalist1 item template field, i want when user click on linkbutton then its text would be "enable" and if the linkbutton text is "enable" and panel1 will be visible then again on linkbutton click event linkbutton text would be "disable"and panel1 will be hidden.
I tried this technique as suggested on another forum and a couple of other things, suggested on SitePoint as well as others but to no avail. Im trying to find the Label in the repeater to display information depending on the output. However I was presented with the following error:
"Index was out of range. Must be non-negative and less than the size of the collection.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index"
It highlights the problematic script as:
Label lblStatus = rptGeneralEnq.Items.FindControl("lblStatus") as Label;
I'm trying to access the Label, in the repeater, so that depending on if the text origionally displays true or false (as the label grabs the 'bit' datatype for that record to display) to then change the text to something more appropriate (completed/outstanding) - if at all possible.
I have repeater and I am using foreach to go through each row, checking for specific value and assigned the label accordingly. However, when there is a value that is not expected, I would like to highlight the whole row on yellow color.
How can I set only for specific row in repeater with different background color?
i have a repeater that displays data from a SQL Server Database. I also want to display an int from the database for the specific item and allow the user to add 1 to the value of that int by clicking a button (almost like a pole). It would work similiar to a 'like' button on Facebook.e.g.