C#
div id="loginblock">
UserName:td>
asp:TextBox ID="username" runat="server" onBlur="txtvalidation();" AutoPostBack="true">asp:TextBox>
td>
div id="warning" style="color:aqua;width:100px" runat="server">
div>
asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="PlS Enter Password" ControlToValidate="pwd">asp:RequiredFieldValidator>
td>
tr>
Password:td>
asp:TextBox ID="pwd" runat="server" TextMode="Password" >asp:TextBox>
td>
tr>
asp:Button ID="btnLogin" runat="server" OnClick="btnLogin_Click" Text="Button" />
td>
tr>
asp:GridView ID="grd" runat="server" OnRowEditing="selectrd_CheckedChanged" AutoGenerateColumns="false" DataKeyNames="userid">
Columns>
asp:TemplateField HeaderText="edition">
ItemTemplate>
asp:RadioButton ID="rdnselect" runat="server" CommndName="edit" />
ItemTemplate>
asp:TemplateField>
asp:BoundField HeaderText="ids" DataField="userid" />
asp:TemplateField HeaderText="password">
ItemTemplate>
Eval("pwd") %>
ItemTemplate>
EditItemTemplate>
asp:TextBox ID="edits" runat="server" Text=''>asp:TextBox>
EditItemTemplate>
asp:TemplateField>
Columns>
asp:GridView>C#
C#
cs:
protected void selectrd_CheckedChanged(object sender, GridViewEditEventArgs e)
{
grd.SelectedIndex = e.NewEditIndex;
ldgrid();
}C#
here if we remove the radiobutton and insert link button,onclick of the link button we can edit the values,pls say me how to do the same operation with the radio button.
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 16, 2013, 8:42 PM EDT
You can try like this
in your aspx
in your code
Regards,
Iftikar
ashok kumar69 reputationPosted Jul 16, 2013, 10:36 PM EDT
Really an awesome answer i have been searching for it for 2 days posted in many forums,none of them able to solve this.Hats of u sir.