Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > sharing variables

Thread Tools

sharing variables

Leon Shaw
Posts: n/a
I'm developing a user control which contain a web control label, in which I
want to share this label with other web forms the user control will be used.
How do I accomplish this mission?

Example: (for better understanding)

user control page (code behind VB)
public title as string
private sub page load....
Label1.text = title

web form page (code behind VB)
dim title as string
private sub page load....
title = "test"

what I'm doing wrong? How do I accomplish this mission? Please help! Thanks!

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Put variables into member variables or function variables? C++ 9 03-23-2008 04:03 PM
2 desktop connected and sharing, 1 laptop connect but not sharing =?Utf-8?B?ZHRhcHBlbkByb2dlcnMuY29t?= Wireless Networking 0 09-02-2005 01:58 PM
Wireless Networks - Printer Sharing - File Sharing =?Utf-8?B?RmlubmV5X1gx?= Wireless Networking 0 04-29-2005 05:22 AM
Setup file sharing and periphial sharing =?Utf-8?B?YmVuanlyYW1h?= Wireless Networking 1 03-19-2005 06:20 PM
File Sharing Intermittent but Pings fine and iTunes Sharing works =?Utf-8?B?Q2hyaXMgQ2xhcms=?= Wireless Networking 1 12-05-2004 01:07 PM