Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Feb 22, 2013 05:59 PM by rameps
Feb 22, 2013 03:28 PM|LINK
I'm quite new in web development. Just want to know how to call my global variable in my aspx page(server side).
In my class page. Here's my code.
In my default.aspx page. Here's my code.
Public Class global_class
Public oGridItem As DataGridItem
Public Web_Class As New WEBClass.ApplicationTool
Function GetGridItem(CtrlName As String, Optional gridItem As DataGridItem = Nothing) As Object
Select Case IsNothing(gridItem)
Partial Class _Default
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
Catch Exp As Exception
I just want to ask, how can I call the Web_Class variable in my default.aspx page?
Hope to hear positive feedback from you.
Feb 22, 2013 05:52 PM|LINK
Well in your example you are declare objects and a function that returns an object.
dim oMyObject as New GlobalClass.global_class
dim oGridItem as Object = oMyObject.GetGridItem(param1, param2)
Something like that. If you are trying to set private member variables, you can do that inside the class as well.
Feb 22, 2013 05:59 PM|LINK
I think Its not possible .
But you can use Session or cookies or querystring .