Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > VB Master-Details Edit (Separate Pages), Response Redirect to Master Page Databinding Issue...

Reply
Thread Tools

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

 
 
Sam
Guest
Posts: n/a
 
      07-20-2006
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
(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.

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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Response.redirect does not redirect from .aspx page =?Utf-8?B?VHJveQ==?= ASP .Net 3 10-15-2008 09:07 PM
Repost: VB Master-Details Edit (Separate Pages), Response Redirect to Master Page Databinding Help... Sam ASP .Net 0 07-20-2006 06:33 PM
2nd Post: VB Master-Details Edit (Separate Pages), Response Redirect to Master Page Databinding Issue... Sam ASP .Net 1 07-20-2006 06:17 PM
VB Master-Details Edit (Separate Pages), Response Redirect to Master Page Databinding Issue... Sam ASP .Net 0 07-20-2006 02:31 AM
Basic Q - Response.Redirect, all redirect to first Response.Redirect statement Sal ASP .Net Web Controls 1 05-15-2004 03:46 PM



Advertisments