473,396 Members | 1,968 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,396 software developers and data experts.

Passing arguments to WebForms

Hi all

I'm pretty new to ASP.Net, is it possible to pass arguments (maybe objects
too) to web forms without using a querystring in the URL?

Thanks
Kev
Nov 19 '05 #1
3 3907
Kev,

Yes, there is a number of ways for that.

If you are talking about passing information from client, you can use <input
type=hidden...>. Or second argument in showModalDialog and
showModelessDialog calls if it is applicable. There are also other ways.

If you are talking about passing arguments from one page to another on
server side, you can use session variables, static variables, application
cache depending on your requirements.

Eliyahu

"Mantorok" <no**@tiscali.co.uk> wrote in message
news:cu**********@newsfeed.th.ifl.net...
Hi all

I'm pretty new to ASP.Net, is it possible to pass arguments (maybe objects
too) to web forms without using a querystring in the URL?

Thanks
Kev

Nov 19 '05 #2
Thank you Eliyahu.

"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:Ol**************@TK2MSFTNGP09.phx.gbl...
Kev,

Yes, there is a number of ways for that.

If you are talking about passing information from client, you can use
<input
type=hidden...>. Or second argument in showModalDialog and
showModelessDialog calls if it is applicable. There are also other ways.

If you are talking about passing arguments from one page to another on
server side, you can use session variables, static variables, application
cache depending on your requirements.

Eliyahu

"Mantorok" <no**@tiscali.co.uk> wrote in message
news:cu**********@newsfeed.th.ifl.net...
Hi all

I'm pretty new to ASP.Net, is it possible to pass arguments (maybe
objects
too) to web forms without using a querystring in the URL?

Thanks
Kev


Nov 19 '05 #3
Kev,

Here's an article on how to pass objects between a page and the page that
called it. I think this may be what you need:

http://msdn.microsoft.com/library/de...formspages.asp

DalePres
MCAD, MCDBA, MCSE

"Mantorok" <no**@tiscali.co.uk> wrote in message
news:cu**********@newsfeed.th.ifl.net...
Hi all

I'm pretty new to ASP.Net, is it possible to pass arguments (maybe objects
too) to web forms without using a querystring in the URL?

Thanks
Kev

Nov 19 '05 #4

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

Similar topics

3
by: domeceo | last post by:
can anyone tell me why I cannot pass values in a setTimeout function whenever I use this function it says "menu is undefined" after th alert. function imgOff(menu, num) { if (document.images) {...
7
by: Harolds | last post by:
The code below worked in VS 2003 & dotnet framework 1.1 but now in VS 2005 the pmID is evaluated to "" instead of what the value is set to: .... xmlItems.Document = pmXML // Add the pmID...
39
by: Mike MacSween | last post by:
Just spent a happy 10 mins trying to understand a function I wrote sometime ago. Then remembered that arguments are passed by reference, by default. Does the fact that this slowed me down...
5
by: Michael | last post by:
Hi, once I read here that it is not 'a good idea' to pass variables that are not initialized to a function. I have void something ( double *vector ); ....
3
by: Ivan Sammut | last post by:
I have 2 webforms (WebForm1 & Webform2) I have a button on webform1 that when I click it I need to pass some variables to webform2 and then Popup webform2 and show the variables I passed. Any...
6
by: Newbie | last post by:
How do I pass string values from one webform to another?
0
by: AM | last post by:
Hi All, I am trying to implement paging for datalists on all webforms. I have a classtest with some functions. The code works fine with webform1 but my query is how should i pass the references of...
4
by: Justine | last post by:
Can anyone help? e.g. when you open a vb project property page, in "Configuration Properties" You will see "Command line arguments" in "Start Options". Does anyone knows how to find a way to do...
2
by: william.w.oneill | last post by:
I have an application that takes a few command line parameters. As recommended by others in this group, I'm using a named mutex to ensure that only one instance of the application is running. My...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...

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.