Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. LindaH

    Iterate through controls on a Web form

    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...
  2. LindaH

    Iterate through controls on a Web form

    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...
  3. LindaH

    Iterate through controls on a Web form

    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?
  4. LindaH

    Web Service Exceptions

    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&quot...
  5. LindaH

    Multiple column constraint with conditions

    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...
  6. LindaH

    Delete Session Variables & Cookies when Browser closes

    I have an expiration time set on my cookie, so even though I close the browser, the cookie still exists until the expiration time has been met.
  7. LindaH

    Delete Session Variables & Cookies when Browser closes

    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...
  8. LindaH

    Delete Session Variables & Cookies when Browser closes

    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...
  9. LindaH

    Retrieve Value from form object

    I figured this one out. For future reference: To retrieve a value from an <asp:label> control: document.getElementById(&quot;lblHiddenControl&quot;).innerText To retrieve a value from an <asp:textbox> control: document.getElementById(&quot;txtHiddenControl&quot;).value And to use...
  10. LindaH

    Retrieve Value from form object

    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 &quot;name&quot; attribute, just an &quot;id.&quot; When I use the following code, I get the error message, &quot;Object doesn't support this property or...
  11. LindaH

    auto-scroll a webform?

    Thanks; pursuing this a little further, can you add a little snippet of code to explain what you mean by, &quot;... when you are refreshing the page append a #anchorname to the end of the page url.&quot; Would this mimic pressing an <a href=#name> link?
  12. LindaH

    Programmatically click &lt;asp:hyperlink&gt; control

    How would I programmatically click the <asp:hyperlink> web server control? (There's no click event.)
  13. LindaH

    Give focus to an asp:textbox control

    Check out the article, &quot;Managing Focus in Web Forms,&quot; 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.
  14. LindaH

    auto-scroll a webform?

    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...
  15. LindaH

    Using column created on the fly in a WHERE clause

    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 &quot;FnameCmpr&quot; FROM Profile WHERE SSN = '123456789' AND Lname = 'Doe' AND FnameCmpr = SUBSTRING(Fname,1,2) Thanks...
  16. LindaH

    Using column created on the fly in a WHERE clause

    (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 &quot;FnameCmpr&quot; FROM Profile WHERE SSN = '123456789' AND Lname = 'Doe' AND FnameCmpr...
  17. LindaH

    asp:dropdownlist

    I found the problem. Code BindStateCodes like this: Private Sub BindStateCodes() Dim dsStates as New DataSet Dim sPath as String sPath = Server.MapPath(&quot;includes\XMLStates.xml&quot;) dsStates.ReadXml(sPath) ddlMailState.DataSource = dsStates.Tables(0)...
  18. LindaH

    asp:dropdownlist

    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 &quot;c:\winnt\system32\includes\XMLStates.xml&quot; Here's the code I'm using:Imports...
  19. LindaH

    asp:dropdownlist

    Instead of populating the Items Collection of a DropDownList, I coded my HTML page like this:<asp:dropdownlist id=ddlMailState runat=&quot;server&quot;> <!--#include file=&quot;includes/states.inc&quot;--> </asp:dropdownlist>where the include file looked like...
  20. LindaH

    Textbox that supports HTML/RTF

    I ran across this link just a few minutes ago: www.richtextbox.com If you check it out, post back what you think of it!

Part and Inventory Search

Back
Top