Just in case anyone else is following/searchig this post. In order to share a varaibled between two usercontrols on the same page, I used the following format:
1. Create a base class called "pageProperties" which is inherited by all my usercontrols:
Public Class pageProperties
Inherits...
This is bad, I know it :) Following on form my post yesterday:
I have created a base class which is inherited by all my usercontrols.
The base class has the following above all the code blocks:
Public Shared intPageID as int32
This variable is then set in control A and read back and...
Ok, too many beers tonight!
ASP.NET 2.0 / VB.NET
Have one ASPX woth TWO ASCXs (usercontrols of course) on the same page.
Usercontrol A sets a variable.
I then want Usercontrol B to read the value set by A.
Best method besides a session to do this? Expose a public variable???
Ta.
Hi, I'm trying to get all the HTML written inside a placeholder control in an .aspx then, then duplicate it x number of times. E.g., this is my example placeholder below, I want to grab everything inside this control, maybe monkey around with it, then duplicate it a few times. Possible...
Ah..I've just answered it myself...
1. Open the IIS Control Panel (inetmgr from command prompt)
2. Expand the appropriate nodes and select the Virtual Directory of the application which needs authentication.
3. Right click on the Virtual Directory and select Properties.
4. Click the...
Hi, I'm using forms authentication for a project and it works great with any .net pages, but I also have mixed media in the directories I need to protect, such as .htm, .asp, .gif, .swf etc, But forms autentication doesn't work on these files. Is it possible to make it work?
Sure so long as I can pass a var to it. WHat I have tried is creating a public sub in hte usercontrol to just display some text as a test. Then on the calling page referenced the control like so:
Private WithEvents ucMyControl as MyControl
Then I have tried to initate the function in the...
Guys, I got a bit of problem. I've done this before but for the life of me I can't find the code.
I have a usercontrol which populates a datalist of names. This is done once on pageload.
On the aspx/vb which includes this usercontrol (which has already rendered the datalist of names), I need...
Maybe I'm just a little tired and the last pint is kicking in, but I'm a little lost on a time issue.
I have three time ranges:
1: 07:00 to 12:00
2: 12:00 to 19:00
3: 19:00 to 07:00
Then I have time value, lets say its 10:00 (but it will be others too) and I want to find which of the above...
I got a weird effect firing off a JS event on a onClick event in vb.net.
I have this line in my html:
<div align="center" id="divPleaseWait" style="VISIBILITY:hidden">Please Wait</div>
Then this in .vb to make it active:
dlMeters.Attributes.Add("onClick", "JavaScript:doPleaseWait();")
The...
Guys, a problem has occured after installing sp1 on our 2003 server.
Right after installation, one of our developers tried accessing our live database via enterprise manager. To get to net he goes through:
PC -> Hub -> Win2k3srv (with remote routing and access enabled) -> Router -> Internet...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.