Ask a Question related to ASP.NET General, Design and Development.
-
Kairi Zikpin #1
Re: Pass data between pages
in .net help, search for "Passing Server Control Values Between Pages"
Michelle wrote:> I wonder if anybody can give me some hints.
>
> I have 2 web pages. There is an add button on the 1st page. When the user
> clicks on it, the 2nd page pops up. User can select products on the 2nd page
> and clicks ok. Then the 2nd page closes, and the focus backs to the 1st
> page. The selected products needs to store in a datagrid in the 1st page.
>
> I am not sure what is a good way to implement this scenario in .Net. Very
> appreciate it if anyone provides any idea, link, or code snippet.
>
> Thanks.
>
>Kairi Zikpin Guest
-
Trying to pass data from one page to another
I have tried and tried to find an answer in DW help, and feel like I'm close, but can't figure out the final step. All of the fields in my page... -
flash in cf pages calls for domain un/pass
I'm running a small CF app on a W2k3 server with IIS6. I've really had no major hang ups except this one. I've been working with ColdFusion for a... -
Unable to pass session var between app pages
I'm having trouble passing a session variable from a form page to multiple action pages. The form page points to the first action page, but I'm... -
How to pass data
I need help with a small problem. I am working on a CourseBuilder 15 question test with each question is on its own page. I want to keep track of... -
how to pass data?
You could create a recordset that retrieves the most recently added record by that user, maybe selecting the Max(ID) from the database, dunno what... -
Patrice Scribe #2
Re: Pass data between pages
You could store the current user selection in a table. On the second page
you'll add to this table and when closing refreshing the first page will
show the updated selection.
You could also store just the keys in a cookie, in a session variable or to
pass them back as the return value from the popup call (and refresh).
I would go for 1 (especially if you want to do something later for this
selection) or 4 (if you want to save the additional resource used by this
table).
--
"Michelle" <Michelle@yahoo.com> a écrit dans le message de news:
eN9pqD#PDHA.2700@tk2msftngp13.phx.gbl...page> I wonder if anybody can give me some hints.
>
> I have 2 web pages. There is an add button on the 1st page. When the user
> clicks on it, the 2nd page pops up. User can select products on the 2nd> and clicks ok. Then the 2nd page closes, and the focus backs to the 1st
> page. The selected products needs to store in a datagrid in the 1st page.
>
> I am not sure what is a good way to implement this scenario in .Net. Very
> appreciate it if anyone provides any idea, link, or code snippet.
>
> Thanks.
>
>Patrice Scribe Guest
-
Ken Cox [Microsoft MVP] #3
Re: Pass data between pages
You might want to see if this technique can work in your scenario. You might
have to use some Javascript to get the selected values back.
[url]http://www.aspalliance.com/kenc/passval.aspx[/url]
"Michelle" <Michelle@yahoo.com> wrote in message
news:eN9pqD%23PDHA.2700@tk2msftngp13.phx.gbl...
I wonder if anybody can give me some hints.
I have 2 web pages. There is an add button on the 1st page. When the user
clicks on it, the 2nd page pops up. User can select products on the 2nd page
and clicks ok. Then the 2nd page closes, and the focus backs to the 1st
page. The selected products needs to store in a datagrid in the 1st page.
I am not sure what is a good way to implement this scenario in .Net. Very
appreciate it if anyone provides any idea, link, or code snippet.
Thanks.
Ken Cox [Microsoft MVP] Guest
-
Michelle #4
Re: Pass data between pages
I have a follow-up dump question.
Server.transfer won't pop up the 2nd web page. It actually the 2nd page on
the same window. How can I create a pop-up page in ASP.Net? Also, how can I
close the pop-up window in ASP.Net when the user clicks button on the 2nd
page?
Thanks.
"zPaul" <~pyoon@phnip.com> wrote in message
news:#XbIGI#PDHA.3664@tk2msftngp13.phx.gbl...the> ASP.NET is good as long as you are in same page. But, if you try to passuser> value to another page, you have to go back to previous technology.
>
> Search for server.transfer and there should be some document about this.
>
> I would prefer to use user control and flip and flop to different pages as
> needed.
>
>
> "Michelle" <Michelle@yahoo.com> wrote in message
> news:eN9pqD#PDHA.2700@tk2msftngp13.phx.gbl...> > I wonder if anybody can give me some hints.
> >
> > I have 2 web pages. There is an add button on the 1st page. When thepage.> page> > clicks on it, the 2nd page pops up. User can select products on the 2nd> > and clicks ok. Then the 2nd page closes, and the focus backs to the 1st
> > page. The selected products needs to store in a datagrid in the 1stVery> >
> > I am not sure what is a good way to implement this scenario in .Net.>> > appreciate it if anyone provides any idea, link, or code snippet.
> >
> > Thanks.
> >
> >
>
Michelle Guest
-
Saravana #5
Re: Pass data between pages
Check out this article,
[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm[/url]
l/cpconPassingServerControlValuesBetweenPages.asp
If you can use client script, then you can check out this article
[url]http://www.microsoft.com/india/msdn/articles/PopupCalendarinASP.aspx[/url]
--
Saravana
Microsoft India Community Star,
MCAD,SE,SD,DBA.
"Michelle" <Michelle@yahoo.com> wrote in message
news:eN9pqD#PDHA.2700@tk2msftngp13.phx.gbl...page> I wonder if anybody can give me some hints.
>
> I have 2 web pages. There is an add button on the 1st page. When the user
> clicks on it, the 2nd page pops up. User can select products on the 2nd> and clicks ok. Then the 2nd page closes, and the focus backs to the 1st
> page. The selected products needs to store in a datagrid in the 1st page.
>
> I am not sure what is a good way to implement this scenario in .Net. Very
> appreciate it if anyone provides any idea, link, or code snippet.
>
> Thanks.
>
>
Saravana Guest
-
Pete Wood #6
Re: Pass data between pages
Session state is still allowed!...or set up a StateServer if you're going
for an enterprise solution...
Alternatively, just append the values to the URL of page 1, and post
back....
Pete
"Michelle" <Michelle@yahoo.com> wrote in message
news:eN9pqD%23PDHA.2700@tk2msftngp13.phx.gbl...page> I wonder if anybody can give me some hints.
>
> I have 2 web pages. There is an add button on the 1st page. When the user
> clicks on it, the 2nd page pops up. User can select products on the 2nd> and clicks ok. Then the 2nd page closes, and the focus backs to the 1st
> page. The selected products needs to store in a datagrid in the 1st page.
>
> I am not sure what is a good way to implement this scenario in .Net. Very
> appreciate it if anyone provides any idea, link, or code snippet.
>
> Thanks.
>
>
Pete Wood Guest
-
ZaHeer #7
Re: Pass data between pages
Hi Michelle,
You can use window.showmodaldialog to open the detail page.
Explanation:
On clicking(HtmlButton) this button write the client script to open the
detail over the master page in Modal fashion. Pass your data in Xml form
using its argument. And on the way back from the that modal page return the
values(if u want).
The sample code is given below:
....
<INPUT id="btnDetail" onclick="openDetail()" type="button" value="Detail">
....
<script language=vbscript>
function openDetail()
mValue=
window.showModalDialog ("abc.aspx"
,myXmlObj,"dialogHeight:500px;dialogwidth:500px;st atus:off;help:yes;scroll:y
es")
end function
</script>
Hope this will help u.
Regards
ZaHeer
"Michelle" <Michelle@yahoo.com> wrote in message
news:eQDvNb#PDHA.560@TK2MSFTNGP10.phx.gbl...I> I have a follow-up dump question.
>
> Server.transfer won't pop up the 2nd web page. It actually the 2nd page on
> the same window. How can I create a pop-up page in ASP.Net? Also, how canas> close the pop-up window in ASP.Net when the user clicks button on the 2nd
> page?
>
> Thanks.
>
>
> "zPaul" <~pyoon@phnip.com> wrote in message
> news:#XbIGI#PDHA.3664@tk2msftngp13.phx.gbl...> the> > ASP.NET is good as long as you are in same page. But, if you try to pass> > value to another page, you have to go back to previous technology.
> >
> > Search for server.transfer and there should be some document about this.
> >
> > I would prefer to use user control and flip and flop to different pages2nd> user> > needed.
> >
> >
> > "Michelle" <Michelle@yahoo.com> wrote in message
> > news:eN9pqD#PDHA.2700@tk2msftngp13.phx.gbl...> > > I wonder if anybody can give me some hints.
> > >
> > > I have 2 web pages. There is an add button on the 1st page. When the> > > clicks on it, the 2nd page pops up. User can select products on the1st> > page> > > and clicks ok. Then the 2nd page closes, and the focus backs to the> page.> > > page. The selected products needs to store in a datagrid in the 1st> Very> > >
> > > I am not sure what is a good way to implement this scenario in .Net.>> >> > > appreciate it if anyone provides any idea, link, or code snippet.
> > >
> > > Thanks.
> > >
> > >
> >
>
ZaHeer Guest



Reply With Quote

