hi ,
i am greating finance project step by step value pass on one form to another form what can i do?
7 4948
Using Session, Properties, Accessing the form object etc.
Using Session, Properties, Accessing the form object etc.
i am using VB.NET windows application . how to use the session
i am using VB.NET windows application . how to use the session
You cannot use sessions in a VB.NET Desktop application.
These are used by VB.NET Web applications.
-Frinny
You cannot use sessions in a VB.NET Desktop application.
These are used by VB.NET Web applications.
-Frinny
Dont know why you would want to either. Too many strings in an application is never a good thing.
Properties would be your best bet.
Dont know why you would want to either. Too many strings in an application is never a good thing.
Properties would be your best bet.
(I like sessions)
Anyways, Palanivel, you should set public properties for your form...then when you instantiate it, you can set these properties...effectively passing data from one form to another...just as TRScheel has hinted at.
(I like sessions)
Anyways, Palanivel, you should set public properties for your form...then when you instantiate it, you can set these properties...effectively passing data from one form to another...just as TRScheel has hinted at.
Oh dont get me wrong, I like them too... on web apps. I just come from the school of throw exceptions instead of error codes, no to little embedded strings, etc... so sessions kinda quirk me at times. I normally encapsulate the session variables into their own class so I have those strings only showing up once in my code, which in essence makes me end up using my session like a property instead of an indexer.
Oh dont get me wrong, I like them too... on web apps. I just come from the school of throw exceptions instead of error codes, no to little embedded strings, etc... so sessions kinda quirk me at times. I normally encapsulate the session variables into their own class so I have those strings only showing up once in my code, which in essence makes me end up using my session like a property instead of an indexer.
Yeah I do the same thing.
Make an object like "user" which holds things like UserName and UserID...that way you can refer to a whole bunch of strings by simply calling Session("user"). It'd get confusing storing them all individually.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: vishal |
last post by:
hi
i am using get method to pass data from one form to another and my
value may contain & symbol. so when this is case the value after & sign
is truncated which is logically true.
so what...
|
by: Fred |
last post by:
Hi,
i know how to pass a value from Javascript to ASP with a hidden field into a
form and submitting it, or with cookies, but here i have to pass a lot of
data in an array.
There is a list of...
|
by: Vanessa |
last post by:
Hi,
I would like to know whether there's any way for me to pass an object by
reference to another form?
Regards
Vanessa
|
by: carmen |
last post by:
I am using the code below to open another page depending on what is
selected. This is working ok but I would like to streamline it so that I
will hot have to create a page everytime a new category...
|
by: Lyn |
last post by:
Hi,
I have been experiencing a problem passing a LIKE statement in the WHERE
argument of a DoCmd.Openform statement. I have posted that issue
separately.
However, in an attempt to work around...
|
by: tom |
last post by:
Hi Experts,
I want to pass the selectedDate value from my calender
form to another web form or a web user control. Could you
please show me how to do this?
Thanks in advance.
|
by: c676228 |
last post by:
Hi,
This is my first time to post asp.net question on this forum.
I have a question for "How to pass the first form value to the next form"
I have enrollinfo.aspx form which look like as follow:...
|
by: Rabbit |
last post by:
Hi,
On my 1st page, i have a function which gets a new ID value and need to
transfer to another immediately.
which I want to get in 2nd page using Request.form("txtID"), but doesn't
work, the...
|
by: Rudy |
last post by:
Hello All!
I have been trying to figure this out, have recieved alot of help, but it's
just not clicking in the ol' noggin. I basicly have a value in a text box, I
need to keep that value and...
|
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....
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
| |