473,395 Members | 1,762 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,395 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 2164
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Spud | last post by:
<?php // pullpage function by Nick bouton http://www.nickbouton.com/. $CustomerID = "IDHERE"; $method = "POST"; $host = "xml.mydata.com"; $usepath = "/xml.asp"; //print all vars in an...
3
by: sammmista | last post by:
hello experts, Plz dont treat this as another newbie query , i did my homework but still getting nowhere :( :( :( Trying to learn PHP on Fedora core 1 (PHP 4.3,MySQL,HTTPD).Unable to post data...
1
by: sarah | last post by:
Hi.. I'm having a problem trying to figure out the best way to process a POST and add items to my database, and hope someone can help me... :) Background: I have a database that I will use to...
2
by: Hans Forbrich | last post by:
The following is a Request for Discussion, following up on some recent posts about distributing a periodic news group 'Charter and FAQ' post. While not formally following RFC/RFD rules, the intent...
8
by: John | last post by:
Here is the current error that im getting when building my solution. The only thing i can think of is that i needed to install visual studio 6 after visual studio .net was already installed to...
1
by: khawar | last post by:
my application is in asp.net using C# hi guys having a complicated problem i am using payflowlink to process CC payments I have to send a httppost to their servers. The problem is how do i do a...
8
by: Gert | last post by:
Hi, I have a form (server side) because of the filling of variables through the application. But now I need to post it to an url on submit. My .HTML form looks like this, but how to translate it...
3
by: JansenH | last post by:
We have implemented a 'HTTP Post' client in C# that posts Xml documents to a webserver. This is working fine if the post rate is one post for every 20 seconds. But if the post rate is increased to...
10
by: Peter Michaux | last post by:
Hi, All Ajax libraries I've read use encodeURIComponent() on the name- value pairs extracted from forms before POST ing the result to the server with and xmlhttprequest. I can understand why...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.