I have two buttons that form on the
submit click event it should saw the newly / last entered record in the database.
view click event it should saw me all the details except the id of the company.
The data is displayed in the gridview.
How should i pass this ??
Expand|Select|Wrap|Line Numbers
- <asp:GridView ID="CompanyGridView" runat="server" DataSourceID="srccompany" autogeneratecolumns="False"
- DataKeyNames="companyid" CellPadding="4" Width="56px" AllowPaging="True" PageSize="6" >
- <Columns>
- <asp:boundfield datafield="companyid"
- readonly="True"
- headertext="Company ID"/>
- <asp:boundfield datafield="companyname"
- headertext="Company Name"/>
- <asp:boundfield datafield="abbrecomp"
- headertext="Abbreviation"/>
- <asp:boundfield datafield="address1"
- headertext="Address"/>
- </Columns>
When i click on submit button it should not hide the id and should be visible.
Pls help me to solve i have created the stored procedure.
Using sql datasource to retrieve the data.
What code should be written on the click event ??
Thanxs........