-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: Akshit56491
Message 14 in Discussion

Hi taki,    I created one class1.vb. I have a public var there. I am using that in 
webform1. check the code below.    
Public Class WebForm1 
Inherits System.Web.UI.Page 
#Region " Web Form Designer Generated Code " 
'This call is required by the Web Form Designer. 
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent() 
End Sub 
'NOTE: The following placeholder declaration is required by the Web Form Designer. 
'Do not delete or move it. 
Private designerPlaceholderDeclaration As System.Object 
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) 
Handles MyBase.Init 
'CODEGEN: This method call is required by the Web Form Designer 
'Do not modify it using the code editor. 
InitializeComponent() 
End Sub 
#End Region 
Public v1 As Integer 
Public x As New Class1 
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) 
Handles MyBase.Load 
v1 = 100 
x.var2 = 300 
End Sub 
End Class 
  
  <form id="Form1" method="post" runat="server">
<input type=text name=t1 value=<%=v1%>>
<input type=text name=t1 value=<%=x.var2%>>
    </form>
 
  
IT works for me. 
  
Regards, 
Akshit

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDotNet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to