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...
...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 displayed *correctly* in control B.
Great, works fine, both controls on the same page set and reads back the right value...
I cannot define a public...
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...
...SP1 all we get is an error in Ent Manager saying:
Reason: SSL Security Error
ConnectioWrite (SECEncryptData())
If we connect to the same db *from* the server we get a connection, and the user can access the local db on our network, but it seems none of us can get an outside connection to...
Guys, I got a bit of problem with data types.
I have an Access Database which contains various amounts of data stored on a daily basis. The format of this data in Access is in Real.
I have written a web front end to allow users to query this data in vb.net, however, the data is copied via a...
A bit more here now, I dont think its a problem with the UC's as such, the UC which has the procedure I am calling in it fails if I make *any* attempt to populate a literal or label (or anything) to its paired ascx page!
Its as if the UC has no access to the screen even though all the controls...
Ok I added this to top the aspx on UserControl1 in Register UserControl2
<%@ Register TagPrefix="uc1" TagName="pdqmBasketMini" Src="pdqmBasketMini.ascx" %>
But still same problem :(
In addition to the above, the procedure I am calling in teh Usewr Control is being called from *another* user control. Whem I call the same procedure from a aspx.vb page it works, its omly when I'm calling it from another control does it fall it over :(
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.