You don't need the line
<%@ register tagprefix="mytree" namespace="Microsoft.Web.UI.WebControls" assembly="Microsoft.Web.UI.WebControls, Version=1.0.2.226, Culture=neutral, PublicKeyToken=31bf3856ad364e35"%>
because the Microsoft.Web.UI.WebControls namespace is...
The ~ is a reference to the virtual root of the web application.
In contract, / marks the root of the website.
So if you have a website named www.mysite.com, it doesn't matter if you use ~/images/image.gif or just /images/image.gif.
However, If your web has subsites, e.g...
Make sure you set the authentication mode to Windows in the web.config. I'm not quite sure from the top of my head what it should be, but there probably is a <!-- commented --> template on the default web.config.
Try this:
If Not dr_id("UserID") is DBNull Then
blahblah
End If
The cast warning '"Cast from type 'DBNull' to type 'String' is not valid"' gives a hint to the solution. You cannot convert a DBNull into a string. Therefore you should check the type of the object..
Never mind, I got it working!
I am using asp:Placeholders with certain names and I replace them by overloading the AddParsedSubObject() method of a custom iterator template..
I'm on a limb here..
What I want is this:
<cc1:myform id="myform1" runat="server">
<ItemTemplate>
[insert datadriven webcontrol here]<br>
</ItemTemplate>
</cc1>
The myform class has a collection of objects. For each of those objects I want an...
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.