473,386 Members | 1,668 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

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

Sam
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...

Jul 20 '06 #1
0 1684

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Charlie | last post by:
Hi: I have a button in an .aspx page in banner section of a frameset. It runs a response.redirect to another page. The problem is page loads into active frameset. I would like page to replace...
5
by: darrel | last post by:
I have a 'cancel' button that should reload the current page. Ie, reset the page back to it's initial state. Is the best way to do this to simply have the event handler for that button redirect...
1
by: Rik Brooks | last post by:
I have a master page in the root directory of my web app. If I create a page from that master into another folder then all of the images, and only the images disappear. If I then move the web page...
1
by: Sam | last post by:
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/samples/data/GridViewMasterDetai... 2) View Source URL:...
0
by: Sam | last post by:
Sorry to post the same post multiple times but the URL Addresses were not Correct in Earlier Posts. Here are the correct URL's: 1) Run It URL is here: ...
1
by: Alan Samet | last post by:
I know what's causing this, but how do I work around it? ********************** file: test.master: ********************** <%@ Master %> <script runat=server> void Page_Load(object sender,...
3
by: JJ | last post by:
I am trying to convert applications built with .net framework 1.1 to use master pages. On a couple of aspx pages, I call certain javascript functions <body onresize="blah()"....> However, now...
0
by: Mike Wilson | last post by:
Dear group, I have an invoice entry form, which is a simple Master fields / Detail grid. The main summary information of the invoice are stored in one table in a dataset, which is bound using a...
5
by: Lupus | last post by:
Hi there! I have some strange behavior in a ASP VB.NET application. I've used response.redirect many times in different pages, and it works like a charm. However in a new page I'm making, the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.