|
-
Dec 21st, 2001, 01:29 AM
#1
Thread Starter
Junior Member
How to transfer parameters in a form in vb.net web application
Hi,
Do you know how to transfer parameters in a form in vb.net web application?
I can do it by defining a global variable in the module,but I want to define a variable with the scope is in one form not globally.I have tried defining a variable in the form like following:
'--------------------------------
Public Class ProductGroup
Inherits System.Web.UI.Page
Protected WithEvents ImageButton1 As System.Web.UI.WebControls.ImageButton
Protected WithEvents Label1 As System.Web.UI.WebControls.Label
Protected WithEvents ddForms As System.Web.UI.WebControls.DropDownList
public strTest as string
'-------------------------------------
But , after I set the value in one sub, I can't get the value of strTest in other sub.
Can you help me?
Thanks
wu7up
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|