<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='<%# Eval("pwd") %>'>asp:TextBox>
EditItemTemplate>
asp:TemplateField>
Columns>
asp:GridView>
cs:
protected void selectrd_CheckedChanged(object sender, GridViewEditEventArgs e)
{
grd.SelectedIndex = e.NewEditIndex;
ldgrid();
}
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.
2 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Loading
Iftikar HussainPosted Jul 17, 2013, 12:42 AM
You can try like this
in your aspx
in your code
Regards,
Iftikar
ashok kumarPosted Jul 17, 2013, 2:36 AM
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.