Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Doubt passing values

Reply
Thread Tools

Doubt passing values

 
 
Paulo Roberto
Guest
Posts: n/a
 
      08-11-2007
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 !


 
Reply With Quote
 
 
 
 
=?Utf-8?B?QnJhdWxpbyBEaWV6?=
Guest
Posts: n/a
 
      08-11-2007
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/archi...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 !
>
>
>

 
Reply With Quote
 
 
 
 
Teemu Keiski
Guest
Posts: n/a
 
      08-11-2007
Cross-posting to a popup/new window is possible.
http://aspadvice.com/blogs/joteke/ar...rm-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-...
> 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/archi...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 !
>>
>>
>>



 
Reply With Quote
 
=?ISO-8859-1?Q?G=F6ran_Andersson?=
Guest
Posts: n/a
 
      08-12-2007
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.

--
Göran Andersson
_____
http://www.guffa.com
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
dotnet doubt can any body clarify my doubt challa462@gmail.com ASP .Net 0 08-22-2012 06:02 AM
doubt about passing values by address johnnash C Programming 8 02-20-2008 04:50 PM
putting values into array-newbie doubt oswald.harry@gmail.com C Programming 7 01-30-2008 08:11 AM
doubt in variable passing in multiple process chaitanyakurmala@gmail.com VHDL 4 10-02-2006 07:32 PM
doubt about doubt Bob Nelson C Programming 11 07-30-2006 08:17 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57