DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Sat, 11 Aug 2007 13:55:04 -0300,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    Paulo Roberto
          2    Braulio Diez
          3    Teemu Keiski
          4    Göran Andersson


Doubt passing values   
Hi, Im using VS 2005 C# 2.0 and I need to open a new window, using 
JavaScript and pass some values...

How can I do that not using the get method QueryString 
(file.aspx?name=something)... ???

Some alternatives ? Is it possible to be done ?

Thanks !
Date:Sat, 11 Aug 2007 13:55:04 -0300   Author:  

RE: Doubt passing values   
Hello,

  You can store it in session (server side):

   http://www.eggheadcafe.com/articles/20021016.asp

  Mmm... another possiblity could be to use Cross Posting, but not sure if 
it will work on a popup, I would use session. 

   Some more info about how navigation works on ASP .net:

   http://blogs.msdn.com/tinghaoy/archive/2005/12/22/504357.aspx

  Good Luck
    Braulio


/// ------------------------------
/// Braulio Diez
///
/// http://www.tipsdotnet.com
/// ------------------------------




"Paulo Roberto" wrote:


> Hi, Im using VS 2005 C# 2.0 and I need to open a new window, using 
> JavaScript and pass some values...
> 
> How can I do that not using the get method QueryString 
> (file.aspx?name=something)... ???
> 
> Some alternatives ? Is it possible to be done ?
> 
> Thanks !
> 
> 
> 
Date:Sat, 11 Aug 2007 10:24:02 -0700   Author:  

Re: Doubt passing values   
Cross-posting to a popup/new window is possible.
http://aspadvice.com/blogs/joteke/archive/2006/11/30/Cross_2D00_page-postbacks-and-form-action.aspx

-- 
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net

"Braulio Diez"  wrote in message 
news:08831689-B0E5-47F0-A74D-875F8A4BE253@microsoft.com...

> Hello,
>
>  You can store it in session (server side):
>
>   http://www.eggheadcafe.com/articles/20021016.asp
>
>  Mmm... another possiblity could be to use Cross Posting, but not sure if
> it will work on a popup, I would use session.
>
>   Some more info about how navigation works on ASP .net:
>
>   http://blogs.msdn.com/tinghaoy/archive/2005/12/22/504357.aspx
>
>  Good Luck
>    Braulio
>
>
> /// ------------------------------
> /// Braulio Diez
> ///
> /// http://www.tipsdotnet.com
> /// ------------------------------
>
>
>
>
> "Paulo Roberto" wrote:
>
>> Hi, Im using VS 2005 C# 2.0 and I need to open a new window, using
>> JavaScript and pass some values...
>>
>> How can I do that not using the get method QueryString
>> (file.aspx?name=something)... ???
>>
>> Some alternatives ? Is it possible to be done ?
>>
>> Thanks !
>>
>>
>> 
Date:Sat, 11 Aug 2007 22:20:30 +0300   Author:  

Re: Doubt passing values   
Paulo Roberto wrote:

> Hi, Im using VS 2005 C# 2.0 and I need to open a new window, using 
> JavaScript and pass some values...
> 
> How can I do that not using the get method QueryString 
> (file.aspx?name=something)... ???
> 
> Some alternatives ? Is it possible to be done ?
> 
> Thanks !


You can open a new window and post a form to it.

Make a form that posts to a popup:

<form id="PopupForm" action="file.aspx" target="Popup">
<input type="hidden" name="some" />
<input type="hidden" name="more" />
<input type="hidden" name="other" />
</form>

Set the values in the form, open an empty popup, and post the form to it:

var frm = document.getElementById('PopupForm');
frm.some.value = '42';
frm.more.value = 'yeah!';
frm.other.value = '-1';
window.open('','Popup');
frm.submit();

The values sent to the page can be found in the Request.Form collection.

-- 
Gran Andersson
_____
http://www.guffa.com
Date:Sun, 12 Aug 2007 03:32:53 +0200   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us