472,110 Members | 2,264 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,110 software developers and data experts.

2nd Post: VB Master-Details Edit (Separate Pages), Response Redirect to Master Page Databinding Issue...

Sam
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...iewMasterDetai...
2) View Source URL:
http://www.asp.net/QuickStart/util/s...aspnet/samples...
I do understand from the Master Page
(GridViewMasterDetailsInsertPage_vb.aspx) the last field from Gridview1

(Hyper Link field) is calling (DetailsViewEdit_vb.aspx) with
DataNavigateUrlFields="au_id". Also the Gridview1's SqlDataSource
ID="SqlDataSource1" and it's SelectCommand="SELECT [au_id], [au_lname],

[au_fname], [state] FROM [authors] WHERE ([state] = @state)". I
understand the logic Perfectly.

Also in (DetailsViewEdit_vb.aspx) its SqlDataSource
ID="SqlDataSource3" SelectCommand="SELECT [au_id], [au_lname],
[au_fname], [phone], [address], [city], [state], [zip], [contract] FROM

[authors] WHERE ([au_id] = @au_id)".
It's <SelectParameters>
<asp:QueryStringParameter Name="au_id" QueryStringField="ID"
Type="String" />
</SelectParameters>
That is, the value QueryStringParameter Name is coming from Master Page

(GridViewMasterDetailsInsertPage_vb.aspx).
I do understand this logic also.

However after Update or Cancel from (DetailsViewEdit_vb.aspx), it is
returning to Master Page by using
Response.Redirect("GridViewMasterDetailsInsertPage _vb.aspx").
I do understand this logic too.

My intention is this:
for Example, in (GridViewMasterDetailsInsertPage_vb.aspx) in
DropDownList1 user selects State = "NY", Gridview1 filters only shows
records from "NY", they click 'Edit' button to invoke
(DetailsViewEdit_vb.aspx).

I would like to see that after they select
'Update' or 'Cancel' from Detail page, Master Page
(GridViewMasterDetailsInsertPage_vb.aspx) Gridview1 should show only
records from State = "NY". Because this is the Orginial selection prior

to calling (DetailsViewEdit_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.

In Summary I would like to see after response redirect from Detail
Page, Master Page Dropdown list and Gridview1 should not be Null. It
should have the same values prior to calling Detail Page..

I admit I am new to Asp.Net but I must need to start somewhere. Any
Help
will be sincerely appreciated...

Regards

Jul 20 '06 #1
1 2090
Sam
Sorry My Mistake, The URL Addresses were not Correct in Earlier Posts.
Here are the correct URL's:

1) Run It URL is here:

http://www.asp.net/QuickStart/aspnet...rtPage_vb.aspx

2) View Source Code URL'S:

Master Page:

http://www.asp.net/QuickStart/util/s...InsertPage.src

Detail Page Edit:

http://www.asp.net/QuickStart/util/s...lang=VB+Source

________________________

Sam wrote:
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...iewMasterDetai...
2) View Source URL:
http://www.asp.net/QuickStart/util/s...aspnet/samples...
I do understand from the Master Page
(GridViewMasterDetailsInsertPage_vb.aspx) the last field from Gridview1

(Hyper Link field) is calling (DetailsViewEdit_vb.aspx) with
DataNavigateUrlFields="au_id". Also the Gridview1's SqlDataSource
ID="SqlDataSource1" and it's SelectCommand="SELECT [au_id], [au_lname],

[au_fname], [state] FROM [authors] WHERE ([state] = @state)". I
understand the logic Perfectly.

Also in (DetailsViewEdit_vb.aspx) its SqlDataSource
ID="SqlDataSource3" SelectCommand="SELECT [au_id], [au_lname],
[au_fname], [phone], [address], [city], [state], [zip], [contract] FROM

[authors] WHERE ([au_id] = @au_id)".
It's <SelectParameters>
<asp:QueryStringParameter Name="au_id" QueryStringField="ID"
Type="String" />
</SelectParameters>
That is, the value QueryStringParameter Name is coming from Master Page

(GridViewMasterDetailsInsertPage_vb.aspx).
I do understand this logic also.

However after Update or Cancel from (DetailsViewEdit_vb.aspx), it is
returning to Master Page by using
Response.Redirect("GridViewMasterDetailsInsertPage _vb.aspx").
I do understand this logic too.

My intention is this:
for Example, in (GridViewMasterDetailsInsertPage_vb.aspx) in
DropDownList1 user selects State = "NY", Gridview1 filters only shows
records from "NY", they click 'Edit' button to invoke
(DetailsViewEdit_vb.aspx).

I would like to see that after they select
'Update' or 'Cancel' from Detail page, Master Page
(GridViewMasterDetailsInsertPage_vb.aspx) Gridview1 should show only
records from State = "NY". Because this is the Orginial selection prior

to calling (DetailsViewEdit_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.

In Summary I would like to see after response redirect from Detail
Page, Master Page Dropdown list and Gridview1 should not be Null. It
should have the same values prior to calling Detail Page..

I admit I am new to Asp.Net but I must need to start somewhere. Any
Help
will be sincerely appreciated...

Regards
Jul 20 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Hans Forbrich | last post: by
8 posts views Thread by John | last post: by
3 posts views Thread by JansenH | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.