I am wondering if anyone can help me figure out if it is possible to configure the GridView to have a button that triggers a PostBackUrl to pass data to another form that will use the data passed in the PostBackUrl to pre populate a form, which can then
be submitted to my database.
Situation:
I have a form that lets a user type in a part number to see if the part number is in the database. If it is it currently in the database, it then returns data that populates a GridView. If the part number is correct, which they will be able to verify by looking
at the details about the part in the GridView, they should be then able to click the Select (or whatever custom button) to select the part number and trigger the PostBackUrl which sends the data to a new page and pre populates a form with the data, on the
page that is pre populated the user will then enter additional details about an inspection and submit that data to a different table used for inspections.
I am totaly open to any suggestions in getting this to work, even possibly doing it different if the GridView is not the right control to use for this.
Initially you can take the input for the part number and query through the database and populate to the GridView in the same page.
In the GridView take a Template Column and Place a HyperLink which will direct to the new page carring the part number and details.
I would like to show a smililar situation. I have a customer page, and for more details like contacts I am providing a link that will take to another page populating customer details
digitalslavery
Member
30 Points
28 Posts
GridView PostBackUrl
Mar 29, 2007 06:04 AM|LINK
Hi,
I am wondering if anyone can help me figure out if it is possible to configure the GridView to have a button that triggers a PostBackUrl to pass data to another form that will use the data passed in the PostBackUrl to pre populate a form, which can then be submitted to my database.
Situation:
I have a form that lets a user type in a part number to see if the part number is in the database. If it is it currently in the database, it then returns data that populates a GridView. If the part number is correct, which they will be able to verify by looking at the details about the part in the GridView, they should be then able to click the Select (or whatever custom button) to select the part number and trigger the PostBackUrl which sends the data to a new page and pre populates a form with the data, on the page that is pre populated the user will then enter additional details about an inspection and submit that data to a different table used for inspections.
I am totaly open to any suggestions in getting this to work, even possibly doing it different if the GridView is not the right control to use for this.
Thanks!
spy@g
Participant
834 Points
154 Posts
Re: GridView PostBackUrl
Mar 29, 2007 09:39 AM|LINK
Hi
Initially you can take the input for the part number and query through the database and populate to the GridView in the same page.
In the GridView take a Template Column and Place a HyperLink which will direct to the new page carring the part number and details.
I would like to show a smililar situation. I have a customer page, and for more details like contacts I am providing a link that will take to another page populating customer details
and will show further information .
Here is the code.
In the GridView
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False" DataKeyNames="CustomerID" DataSourceID="odsCustomer" > <Columns> <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" /> <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />Hope this Helps
Thanks
[ If my post helps you please mark as answer ]