473,789 Members | 2,668 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Jul 20 '06 #1
0 1708

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

Similar topics

2
2245
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 frameset entirely. How do I do this? Thanks, Charlie
5
19539
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 the page to itself? If so, is there a short-and-sweet way to write that out? Or do I need to first grab the URL and parse it? I don't want to hardcore the url as this might be used in different
1
1376
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 into the root folder where the master is the images come back. I looked at the source and it used the appropriate ~\fconnect.master Anybody seen anything liike this? -- ----------------------------------------
1
2183
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: http://www.asp.net/QuickStart/util/srcview.aspx?path=~/aspnet/samples...
0
1302
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: http://www.asp.net/QuickStart/aspnet/samples/data/GridViewMasterDetailsInsertPage_vb.aspx
1
2246
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, EventArgs e) {
3
1285
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 that <bodytag is in master page, I cannot do this. What is the correct way/workaround for this? I really don't want to create another master page for those aspx pages. Thanks
0
1727
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 BindingSource (InvoiceBindingSource). The line details of each item in the invoice is held in a child table which is bound to another bindingsource (InvoiceRowsBindingSource). I took the basic design from an MSDN article, and all works well....
5
2272
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 browsers behavior is different than in my previous pages. Internet explorer just gives a blank screen. Firefox shows a text "The page has moved to here"...
0
9661
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10193
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10136
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9978
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9015
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6755
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5414
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5546
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4087
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.