473,624 Members | 2,135 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

proper way to pass parameters ??

Dear all,

In practice, what kind of mechanism you guys are you using to pass forms
variable, or control value if you need to pass them form to form.

As session we cannot so much rely on session due to time out, Viewstate is
affecting performance...

Thnaks for your comment ?

regards
serge
Jan 30 '06 #1
3 993
Postback, load the values in the Context.Items and do a Server.Transfer .

Karl

--
http://www.openmymind.net/

"serge calderara" <se************ @discussions.mi crosoft.com> wrote in
message news:D7******** *************** ***********@mic rosoft.com...
Dear all,

In practice, what kind of mechanism you guys are you using to pass forms
variable, or control value if you need to pass them form to form.

As session we cannot so much rely on session due to time out, Viewstate is
affecting performance...

Thnaks for your comment ?

regards
serge

Jan 30 '06 #2
is it the the most common way ?

Is there any guide lines on when it is prefered to use either, cookies or
viewstate or session ?

Ok cookies has its limitation in size and browser validation
Session is for user basis but......anythi ng can be store in session too
thanks for your comments

"Karl Seguin [MVP]" wrote:
Postback, load the values in the Context.Items and do a Server.Transfer .

Karl

--
http://www.openmymind.net/

"serge calderara" <se************ @discussions.mi crosoft.com> wrote in
message news:D7******** *************** ***********@mic rosoft.com...
Dear all,

In practice, what kind of mechanism you guys are you using to pass forms
variable, or control value if you need to pass them form to form.

As session we cannot so much rely on session due to time out, Viewstate is
affecting performance...

Thnaks for your comment ?

regards
serge


Jan 30 '06 #3
Different solutions fit different needs. If you are trying to transfer
information from one page to another, the method I outlined tends to be
prefered by those who know it.

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"serge calderara" <se************ @discussions.mi crosoft.com> wrote in
message news:EA******** *************** ***********@mic rosoft.com...
is it the the most common way ?

Is there any guide lines on when it is prefered to use either, cookies or
viewstate or session ?

Ok cookies has its limitation in size and browser validation
Session is for user basis but......anythi ng can be store in session too
thanks for your comments

"Karl Seguin [MVP]" wrote:
Postback, load the values in the Context.Items and do a Server.Transfer .

Karl

--
http://www.openmymind.net/

"serge calderara" <se************ @discussions.mi crosoft.com> wrote in
message news:D7******** *************** ***********@mic rosoft.com...
> Dear all,
>
> In practice, what kind of mechanism you guys are you using to pass
> forms
> variable, or control value if you need to pass them form to form.
>
> As session we cannot so much rely on session due to time out, Viewstate
> is
> affecting performance...
>
> Thnaks for your comment ?
>
> regards
> serge


Jan 30 '06 #4

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

Similar topics

110
9893
by: Mr A | last post by:
Hi! I've been thinking about passing parameteras using references instead of pointers in order to emphasize that the parameter must be an object. Exemple: void func(Objec& object); //object must be an object instead of
7
21612
by: Zlatko Matić | last post by:
Let's assume that we have a database on some SQL server (let it be MS SQL Server) and that we want to execute some parameterized query as a pass.through query. How can we pass parameters to the server ? Is it possible to use parameters in pass-through queries ? An additional question: Is it possible to connect to a database on MySQL or PostgreSQL using ADO ? Is it possible to execute pass-through queries with parameters, using ADO...
3
2739
by: Zlatko Matić | last post by:
Hello. I'm wondernig what is happennig whith saved pass-through queries nested in regular JET query if regular JET query just filtrates result by start/end date...Does pass-through query first returns all rows from server and then JET filtrates result by start/end date, or JET first communicates with server so that server returns only those rows that JET query would return after filtering by start/end date criteria ? For example, let's...
0
3315
by: Zlatko Matić | last post by:
Hi everybody! Recently I was struggling with client/server issues in MS Access/PostgreSQL combination. Although Access is intuitive and easy to use desktop database solution, many problems appear when someone is trying to use it as front-end for real server database systems such as PostgreSQL or MySQL. One of these problems is regarding pass-through queries and parameters. I wanted to have all the code on client, while executing it on...
2
17087
by: Alex Nitulescu | last post by:
Hi. I have tried to pass two parameters, like this: Response.Redirect(String.Format("NewPage.aspx?Username={0}, Pass={1}", txtUserName.Text, txtPass.Text)) But if I pass Username="Alex" and Pass="AAA", I get Params("Username") = "alex, Pass=AAA" and Params("Pass")="", which is not what I expected.
4
9110
by: kinaxx | last post by:
Hello, now I'm learning progamming language in university. but i have some question. in textbook. says there are four passing Mechanism 1) pass by value (inother words : call by value) 2) pass by reference (inother words: call by reference) 3) pass by value-result <- i have question this subject . 4) pass by name
2
3209
by: gumby | last post by:
I would like to call this stored procedure, but I am unable to pass parameters to the @Start and @End. Is thier a way to pass parameters to a pass through query from MS Access? SELECT COUNT(dbo.tblPersActionHistory.PersActionID) AS , .fn_FindStartPayPeriod(dbo.tblPersActionHistory.PersActionID, 2) AS FROM dbo.tblPersActionLog INNER JOIN
10
2519
by: Roger Frost | last post by:
Since we are currently on the subject of multi-threading in a different thread, I have a question about delegates. When I use delegates, I just create one for each different parameter set that I need. For example: delegate void callBackString(string d_string);
12
11058
by: raylopez99 | last post by:
Keywords: scope resolution, passing classes between parent and child forms, parameter constructor method, normal constructor, default constructor, forward reference, sharing classes between forms. Here is a newbie mistake that I found myself doing (as a newbie), and that even a master programmer, the guru of this forum, Jon Skeet, missed! (He knows this I'm sure, but just didn't think this was my problem; LOL, I am needling him) If...
0
8172
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,...
0
8677
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, 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...
0
8620
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7158
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6110
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4079
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...
1
2605
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1784
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1482
bsmnconsultancy
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...

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.