Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Variables from ascx.vb to ascx

Status
Not open for further replies.

FederalProgrammer

Programmer
Jul 2, 2003
318
CA
I have a variable in my code form: blah.ascx.vb
I want to be able to access this variable in my html code: blah.ascx

how can this be done?

eg:
in ascx.vb
dim blah as integer = 102

in ascx:
<asp:label ... text = #blah>




---------------
 
in ascx.vb
public blah as integer = 102

in ascx:
<asp:label ... text='<% = blah %>' />

 
or:

Label.text=blah

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top