473,509 Members | 2,575 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help on maintenance state information ???

Dear all,

I am beginer in asp.net and I try to understand how the context.handler works
I have first web page on which I have 2 text box prefilled with default text

Then from the second webform I retrive the value of those text box using:
dim LastPage as MyFirstWebFrom

LastPage=ctype(Context.handler,MyFirstWebFrom)
MyFirstWebFrom.txtFirstName=LastPage.FirstName
MyFirstWebFrom.txtLastName=LastPage.LastName

This works really fine, then I try to do the same thing with a UserInfo
class defined under MyFirstWebFrom

On a button click event I update a USerInfo instance with the content of
text box as
UserInfo.LastName= txtLastName.Tex

At this level my userInfo object do not have the content of the textbox
value ???
Is it because text box used cache event's ?

How to update my userInfo object ??

thnaks for your help
regards
serge
Nov 19 '05 #1
1 1035
If you need to pass info/objects/etc I would suggest you populate them on the
current page's postback prior to redirection to the next page. Store the info
in session, db, etc, and then parse it in on the second page. This would
eliminate the hassles of what is (and isn't) there when you are already on
page 2.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"serge calderara" wrote:
Dear all,

I am beginer in asp.net and I try to understand how the context.handler works
I have first web page on which I have 2 text box prefilled with default text

Then from the second webform I retrive the value of those text box using:
dim LastPage as MyFirstWebFrom

LastPage=ctype(Context.handler,MyFirstWebFrom)
MyFirstWebFrom.txtFirstName=LastPage.FirstName
MyFirstWebFrom.txtLastName=LastPage.LastName

This works really fine, then I try to do the same thing with a UserInfo
class defined under MyFirstWebFrom

On a button click event I update a USerInfo instance with the content of
text box as
UserInfo.LastName= txtLastName.Tex

At this level my userInfo object do not have the content of the textbox
value ???
Is it because text box used cache event's ?

How to update my userInfo object ??

thnaks for your help
regards
serge

Nov 19 '05 #2

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

Similar topics

2
2649
by: Ben | last post by:
The page below isn't picking up details or location. What have I missed? Thanks in advance, Ben ____________________________________________ <?PHP
3
3256
by: laurie | last post by:
Hi all, I'm trying to help out a friend who has inherited a client with a PHP shopping cart application. Neither of us know PHP, but I've been muddling my way through, trying to get these old...
22
2557
by: Rafia Tapia | last post by:
Hi all This is what I have in mind and I will appreciate any suggestions. I am trying to create a xml help system for my application. The schema of the xml file will be <helpsystem> <help...
27
4710
by: MK | last post by:
I am a newbie. Please help. The following warning is issued by gcc-3.2.2 compiler (pc Linux): ================================================================== read_raw_data.c:51: warning:...
1
5482
by: Alpha | last post by:
I have a Window based application that shows up still running in the task manager when I close it. It reaches the "this.close" statement and then it stops at the "}" at the section of the...
35
2515
by: robert d via AccessMonster.com | last post by:
I was asked to provide a proposal. I provided a proposal on my application and the prospective client likes what I have but is wary of it having been developed in Access. I don't understand this...
53
4597
by: Hexman | last post by:
Hello All, I'd like your comments on the code below. The sub does exactly what I want it to do but I don't feel that it is solid as all. It seems like I'm using some VB6 code, .Net2003 code,...
1
1289
by: msb113 | last post by:
Hi all Having a lil trouble with a form we use for email... was using cdont but they have changed the servers on our hosting site and we must use cdo now. I was told to change to line of code,...
1
2779
by: Webstorm | last post by:
Hi, I hope someone can help me sort this out a bit, Im completely lost. Here is the page I am working on: http://www.knzbusinessbrokers.com/default.asp I have 3 search critera that I need to...
53
8316
by: souporpower | last post by:
Hello All I am trying to activate a link using Jquery. Here is my code; <html> <head> <script type="text/javascript" src="../../resources/js/ jquery-1.2.6.js"</script> <script...
0
7233
marktang
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,...
0
7135
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
7410
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...
1
7067
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...
0
7505
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...
0
4729
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...
0
3201
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1570
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 ...
0
440
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...

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.