Default.aspx page:
<asp:GridView ID="gvdisplay" runat="server" OnRowCommand="gvdisplay_Click" AutoGenerateColumns="false">
<Columns>
<asp:BoundField HeaderText="Doctor_Id" DataField="Doctor_ID" />
<asp:BoundField HeaderText="Name" DataField="Name" />
<asp:BoundField HeaderText="Specialisation" DataField="Specialisation" />
<asp:BoundField HeaderText="Phonenumber" DataField="Phonenumber" />
<asp:BoundField HeaderText="Email_Id" DataField="Email_ID" />
<asp:BoundField HeaderText="City" DataField="City" />
<asp:BoundField HeaderText="State" DataField="State" />
<asp:BoundField HeaderText="Country" DataField="Country" />
<asp:BoundField HeaderText="Gender" DataField="Gender" />
<asp:TemplateField HeaderText="Select Action">
<ItemTemplate>
<asp:LinkButton ID="lnkedit" runat="server" CommandArgument='<%#Bind("Doctor_Id") %>'
CommandName="Eedit">edit</asp:LinkButton>
<asp:LinkButton ID="lnkdelete" runat="server" CommandArgument='<%#Bind("Doctor_Id") %>'
CommandName="Edelete">Delete</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:Panel ID="updatepnl" runat="server" Visible="false">
<table>
<tr>
<td>
<asp:Label ID="lbldoctorid" runat="server" Text="Doctor id"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtdoctorid" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:Label ID="lblname" runat="server" Text="Name"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtname" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:Label ID="lblspecialisation" runat="server" Text="Specialisation"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtspecialisation" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:Label ID="lblphonenumber" runat="server" Text="phonenumber"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtphonenumber" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:Label ID="lblemail" runat="server" Text="Email"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtemail" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:Label ID="lblcity" runat="server" Text="City"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtcity" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:Label ID="lblstate" runat="server" Text="State"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtstate" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:Label ID="lblcountry" runat="server" Text="Country"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtcountry" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:Label ID="lblgender" runat="server" Text="Gender"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtgender" runat="server"></asp:TextBox>
</td>
</tr>
</table>
</asp:Panel>
<asp:GridView ID="gvdisplay" runat="server" OnRowCommand="gvdisplay_Click" AutoGenerateColumns="false">
<Columns>
<asp:BoundField HeaderText="Doctor_Id" DataField="Doctor_ID" />
<asp:BoundField HeaderText="Name" DataField="Name" />
<asp:BoundField HeaderText="Specialisation" DataField="Specialisation" />
<asp:BoundField HeaderText="Phonenumber" DataField="Phonenumber" />
<asp:BoundField HeaderText="Email_Id" DataField="Email_ID" />
<asp:BoundField HeaderText="City" DataField="City" />
<asp:BoundField HeaderText="State" DataField="State" />
<asp:BoundField HeaderText="Country" DataField="Country" />
<asp:BoundField HeaderText="Gender" DataField="Gender" />
<asp:TemplateField HeaderText="Select Action">
<ItemTemplate>
<asp:LinkButton ID="lnkedit" runat="server" CommandArgument='<%#Bind("Doctor_Id") %>'
CommandName="Eedit">edit</asp:LinkButton>
<asp:LinkButton ID="lnkdelete" runat="server" CommandArgument='<%#Bind("Doctor_Id") %>'
CommandName="Edelete">Delete</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:Panel ID="updatepnl" runat="server" Visible="false">
<table>
<tr>
<td>
<asp:Label ID="lbldoctorid" runat="server" Text="Doctor id"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtdoctorid" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:Label ID="lblname" runat="server" Text="Name"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtname" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:Label ID="lblspecialisation" runat="server" Text="Specialisation"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtspecialisation" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:Label ID="lblphonenumber" runat="server" Text="phonenumber"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtphonenumber" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:Label ID="lblemail" runat="server" Text="Email"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtemail" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:Label ID="lblcity" runat="server" Text="City"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtcity" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:Label ID="lblstate" runat="server" Text="State"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtstate" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:Label ID="lblcountry" runat="server" Text="Country"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtcountry" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:Label ID="lblgender" runat="server" Text="Gender"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtgender" runat="server"></asp:TextBox>
</td>
</tr>
</table>
</asp:Panel>
No comments:
Post a Comment