Thanks, that helped. When I only found five "Con2" controls, I panicked; but two of those controls were panels, which I found contain their own controls collection, so I had to go down another level to get at the actual controls that I need to manipulate.
That brings up a new issue...
Rats! I can't get that to work either! The errors I get point to the html = con as HtmlForm line. "Option Strict On disallows implicit conversion from 'System.Web.UI.Control' to 'System.Web.UI.HtmlControls.HtmlForm'. The 2nd error I get is: "End of statement expected."
Are...
I just did a copy & paste of the VB code, but I'm getting an error on the "Con" in this line: For Each Con2 in Con. The error states, "Expression is of type 'System.Web.UI.Control', which is not a collection type. Any ideas?
My web service calls a class, the class throws an encoded error back to the web service, which throws the error back to the aspx.vb page. I'm throwing an encoded error so I can handle specific error codes in the aspx.vb page. My problem is the soap information that prefixes my "real"...
How would I set up a constraint for the following scenario:
I've got 2 columns, SSN & an ArchiveFlag. If ArchiveFlag = 1, the row is set to be archived and essentially not considered to be part of the table. If the ArchiveFlag is NULL, the row is active. The constraint would be we can't have...
I'm not sure if this should be posted in the JavaScript Forum or the .Net Forum, so I'll post in both!
My .Net Web Application Sets a couple of Session Variables and also sets a cookie. When the user logs out, the Session Variables and cookies are both wiped out; however, if the user merely...
I'm not sure if this should be posted in the JavaScript Forum or the .Net Forum, so I'll post in both!
My .Net Web Application Sets a couple of Session Variables and also sets a cookie. When the user logs out, the Session Variables and cookies are both wiped out; however, if the user merely...
I figured this one out. For future reference:
To retrieve a value from an <asp:label> control:
document.getElementById("lblHiddenControl").innerText
To retrieve a value from an <asp:textbox> control:
document.getElementById("txtHiddenControl").value
And to use...
I'm trying to pass a value for further processing using a form element, lblHiddenControl. This is a .NET server control, so there is no "name" attribute, just an "id." When I use the following code, I get the error message, "Object doesn't support this property or...
Thanks; pursuing this a little further, can you add a little snippet of code to explain what you mean by, "... when you are refreshing the page append a #anchorname to the end of the page url." Would this mimic pressing an <a href=#name> link?
Check out the article, "Managing Focus in Web Forms," at www.devx.com/dotnet/articles/rj121801/rj121801p.asp. It gives excellent step-by-step instructions to create a custom web control for setting focus.
I've got a fairly long webform defined so the browser automatically puts the scroll bar at the right so I can scroll down to see everything on the form. If I find an entry error about 2/3 of the way down on the form, I want to set the focus to the control in error AND automatically scroll down...
I'm not sure where you mean to code the repeat extraction. My code wouldn't look like this, would it? Where do I filter on 'Jo?'
SELECT ProfileID, SUBSTRING(Fname,1,2) As "FnameCmpr"
FROM Profile
WHERE SSN = '123456789'
AND Lname = 'Doe'
AND FnameCmpr = SUBSTRING(Fname,1,2)
Thanks...
(SQL Server 2000)
I'm setting up a column on the fly and giving it an alias name. I want to use the alias in the WHERE clause, but it's not working. My code: SELECT ProfileID, SUBSTRING(Fname,1,2) As "FnameCmpr"
FROM Profile
WHERE SSN = '123456789'
AND Lname = 'Doe'
AND FnameCmpr...
I found the problem. Code BindStateCodes like this: Private Sub BindStateCodes()
Dim dsStates as New DataSet
Dim sPath as String
sPath = Server.MapPath("includes\XMLStates.xml")
dsStates.ReadXml(sPath)
ddlMailState.DataSource = dsStates.Tables(0)...
This is a great solution!
Now I'm having a problem with the path I specify in the ds.ReadXml() command. I've included the relative path name (much like I did in the INCLUDE), but it interprets the path as "c:\winnt\system32\includes\XMLStates.xml"
Here's the code I'm using:Imports...
Instead of populating the Items Collection of a DropDownList, I coded my HTML page like this:<asp:dropdownlist id=ddlMailState runat="server">
<!--#include file="includes/states.inc"-->
</asp:dropdownlist>where the include file looked like...
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.