The problem that we are experiencing is simple:
We want to pass certain parameters from a page with several server
controls to another page.
We want to do this in a dotnet compliant manner, but we can't seem to
find a good and clean solution anywhere.
The options we looked into are as follows. Comments following the
options are why we did not want to go with them:
1-) Use a query string
- Too limited (formats it can carry etc.)
- Easy to manipulate
2-) Use Server.Transfer
- Too messy (Browser does not see the URL change, relative paths
fail)
- Certain issues associated with server.transfer
3-) Use session variables
- Take up memory and resources longer than needed
- The parameters passed are only associated with that call and not
the whole session!
4-) Dynamically write out client side script to submit form
- Not a webcontrol
- To much spaghetti code given the way that we are developing the
rest of our system
If anyone has a clean(er) solution to pass variables from a page to
the next please let me know!!!!
Thanks,
Doruk 4 1961
You could create a base page class that all your pages inherit from.
This base class could contain the "spaghetti code" involved with filling
hidden fields & such. That way the messy stuff is all tucked away.
--
I hope this helps,
Steve C. Orr, MCSD, MVP http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com
"Doruk" <do***@toz.ne t> wrote in message
news:22******** *************** ***@posting.goo gle.com... The problem that we are experiencing is simple:
We want to pass certain parameters from a page with several server controls to another page.
We want to do this in a dotnet compliant manner, but we can't seem to find a good and clean solution anywhere.
The options we looked into are as follows. Comments following the options are why we did not want to go with them:
1-) Use a query string - Too limited (formats it can carry etc.) - Easy to manipulate
2-) Use Server.Transfer - Too messy (Browser does not see the URL change, relative paths fail) - Certain issues associated with server.transfer
3-) Use session variables - Take up memory and resources longer than needed - The parameters passed are only associated with that call and not the whole session!
4-) Dynamically write out client side script to submit form - Not a webcontrol - To much spaghetti code given the way that we are developing the rest of our system
If anyone has a clean(er) solution to pass variables from a page to the next please let me know!!!!
Thanks,
Doruk
Hi Doruk,
How about using properties and passing them onto pages
using the Context object. You can create an object of that
page in the required page and then access all related
properties from the previous page.
Check out this link - http://msdn.microsoft.com/library/default.asp?
url=/library/en-us/dnaspnet/html/asp01242002.asp
HTH.
Kaustav Neogy. -----Original Message----- The problem that we are experiencing is simple:
We want to pass certain parameters from a page with
several servercontrols to another page.
We want to do this in a dotnet compliant manner, but we
can't seem tofind a good and clean solution anywhere.
The options we looked into are as follows. Comments
following theoptions are why we did not want to go with them:
1-) Use a query string - Too limited (formats it can carry etc.) - Easy to manipulate
2-) Use Server.Transfer - Too messy (Browser does not see the URL change,
relative pathsfail) - Certain issues associated with server.transfer
3-) Use session variables - Take up memory and resources longer than needed - The parameters passed are only associated with that
call and notthe whole session!
4-) Dynamically write out client side script to submit
form - Not a webcontrol - To much spaghetti code given the way that we are
developing therest of our system
If anyone has a clean(er) solution to pass variables from
a page tothe next please let me know!!!!
Thanks,
Doruk .
look at ViewState
"Doruk" <do***@toz.ne t> wrote in message
news:22******** *************** ***@posting.goo gle.com... The problem that we are experiencing is simple:
We want to pass certain parameters from a page with several server controls to another page.
We want to do this in a dotnet compliant manner, but we can't seem to find a good and clean solution anywhere.
The options we looked into are as follows. Comments following the options are why we did not want to go with them:
1-) Use a query string - Too limited (formats it can carry etc.) - Easy to manipulate
2-) Use Server.Transfer - Too messy (Browser does not see the URL change, relative paths fail) - Certain issues associated with server.transfer
3-) Use session variables - Take up memory and resources longer than needed - The parameters passed are only associated with that call and not the whole session!
4-) Dynamically write out client side script to submit form - Not a webcontrol - To much spaghetti code given the way that we are developing the rest of our system
If anyone has a clean(er) solution to pass variables from a page to the next please let me know!!!!
Thanks,
Doruk
ViewState works only for a single page. It cannot be shared among pages.
Not a viable solution.
bruce barker wrote: look at ViewState
"Doruk" <do***@toz.ne t> wrote in message news:22******** *************** ***@posting.goo gle.com...
The problem that we are experiencing is simple:
We want to pass certain parameters from a page with several server controls to another page.
We want to do this in a dotnet compliant manner, but we can't seem to find a good and clean solution anywhere.
The options we looked into are as follows. Comments following the options are why we did not want to go with them:
1-) Use a query string - Too limited (formats it can carry etc.) - Easy to manipulate
2-) Use Server.Transfer - Too messy (Browser does not see the URL change, relative paths fail) - Certain issues associated with server.transfer
3-) Use session variables - Take up memory and resources longer than needed - The parameters passed are only associated with that call and not the whole session!
4-) Dynamically write out client side script to submit form - Not a webcontrol - To much spaghetti code given the way that we are developing the rest of our system
If anyone has a clean(er) solution to pass variables from a page to the next please let me know!!!!
Thanks,
Doruk This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Eric Johnston |
last post by:
I want the visitor to enter three numbers on the page and then click a
button "generate image" which will I hope cause a generated gif image to be
displayed alongside on the page.
This involved a php page elsewhere which does all the computing of the gif
image. I can make this work successfully by using a static call like:
<img src="test12.php?a=15&b=65&c=33000" width="200" height="200">
How do I write javascript to allow the visitor...
|
by: baustin75 |
last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie
only when debugging in php designer 2005
--------------------------------------------------------------------------------
Hello,
I have a very simple problem but cannot seem to figure it out. I have a
very simple php script that sends a test email to myself. When I debug
it in PHP designer, it works with no problems, I get the test email. If
|
by: Bob Bedford |
last post by:
In the attempt to keep the URL and code quite clean, and avoid to have a
very loooong url, we have used $_session for storing values trough the
pages.
Now, we have some clients that doesn't get any result when going on the
second page. After studying their browser, the confidentiality setting was
at the maximum. On their settings, the site doesn't work well.
Since we can't change the setting for every client, what may we do ?
|
by: francois |
last post by:
I would like to pass information between ASPX pages.
For now, my navigation are hardcoded links.
In some case I do a Response.Redirect("pages.aspx")
Now I wonder is this is a good way to do.
For exemple when I log out of my website, i go back to the logon page but I
would like to write on the logon page something like "you succesfully logged
out".
|
by: Gibs |
last post by:
Hi
I have two aspx pages in a frame and in the top page i am
creating the controls dynamically and putting in a place
holder. I have a hyperlink in this page to populate the data in
the bottom aspx page. When the user clicks this hyperlink i
need to populate the bottom aspx pagebased on the user
imputs. So i need to pass the values from the top aspx page to
bottom aspx page. how can i achieve this. Please give some
ideas...
| |
by: Eric |
last post by:
Hello,
I am trying to come up with the best way to pass large amounts of data from
page to page, namely a data table.
The user needs to enter data into a form in one page and confirm it on
another. Session variables seem like the easiest, but I'm afraid of
crashing the server after deploying with a few hundred users as opposed to
just a few developers/testers. Any ideas?
|
by: Roy |
last post by:
Hey all,
Is it possible to pass session variables between pages in separate
projects?
For example:
inetpub\thisproject\blah.aspx
has a session variable and response.redirects the user to
inetpub\anotherproject\test.aspx
|
by: deshg |
last post by:
Hey everyone,
I am a php programmer originally and am just helping a friend of mine update their website that they paid a designer (well that's what he called himself!) to do ages ago. I have built the whole site (ASP.NET using VB.NET) but am having problems on the most basic thing! I have a page which querys an MS SQL database and takes url variables to query it, so it takes the value of keyword= and perpage= (eg from...
|
by: dbuchanan |
last post by:
newbie question
What are the various ways that data can be passed between pages.
For example; How is data about the logged in user passed to subsequent pages
Thank you,
Doug
|
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...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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,...
|
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...
|
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();...
|
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...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |