Folks, Attached I am sending 2 URL's from MSFT ASP.net Quick Start
Tutorial Web Site.
1) Run it URL:
http://www.asp.net/QuickStart/aspnet...rtPage_vb.aspx
2) View Source URL:
http://www.asp.net/QuickStart/util/s...InsertPage.src
I do understand from the Master Page
(GridViewMaster DetailsInsertPa ge_vb.aspx) the last field from Gridview1
(Hyper Link field) is calling (DetailsViewEdi t_vb.aspx) with
DataNavigateUrl Fields="au_id". Also the Gridview1's SqlDataSource
ID="SqlDataSour ce1" and it's SelectCommand=" SELECT [au_id], [au_lname],
[au_fname], [state] FROM [authors] WHERE ([state] = @state)". I
understand the logic Perfectly.
Also in (DetailsViewEdi t_vb.aspx) its SqlDataSource
ID="SqlDataSour ce3" SelectCommand=" SELECT [au_id], [au_lname],
[au_fname], [phone], [address], [city], [state], [zip], [contract] FROM
[authors] WHERE ([au_id] = @au_id)".
It's <SelectParamete rs>
<asp:QueryStrin gParameter Name="au_id" QueryStringFiel d="ID"
Type="String" />
</SelectParameter s>
That is, the value QueryStringPara meter Name is coming from Master Page
(GridViewMaster DetailsInsertPa ge_vb.aspx).
I do understand this logic also.
However after Update or Cancel from (DetailsViewEdi t_vb.aspx), it is
returning to Master Page by using
Response.Redire ct("GridViewMas terDetailsInser tPage_vb.aspx") .
I do understand this logic too.
My intention is this:
for Example, in (GridViewMaster DetailsInsertPa ge_vb.aspx) in
DropDownList1 user selects State = "NY", Gridview1 filters only shows
records from "NY", they click 'Edit' button to invoke
(DetailsViewEdi t_vb.aspx). I would like to see that after they select
'Update' or 'Cancel' from Detail page, Master Page
(GridViewMaster DetailsInsertPa ge_vb.aspx) Gridview1 should show only
records from State = "NY". Because this is the Orginial selection prior
to calling (DetailsViewEdi t_vb.aspx). If so, what will be the Command
or Commands and where they will be issued? Master or Detail Page?
Currently Gridview1 is showing null in Master Page after response
redirect from Detail Page.
I admit I am new to .Net but I must need to start somewhere. Any Help
will be sincerely appreciated...