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 strongm 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. boatdrinks

    Date() in access not being recognized

    I have a Access Database that is available on a server. There is one particular workstation that will not recognize the Date() function when accessing the database. All other workstations function properly. Can anyone help with this?
  2. boatdrinks

    Closing browser window on click

    This is the html <input type="submit" name="button2" value=" Assign " onclick="javascript:self.close();if (typeof(Page_ClientValidate) == 'function') Page_ClientValidate(); " language="javascript" id="button2" />
  3. boatdrinks

    Closing browser window on click

    I am using this code to close the browser window when button2 is clicked, but it only works after I click the button twice. I have tried putting it in the Page_Load, and in the If(Not Ispostback) and If(Ispostback). I have also tried putting it in the Sub button2_click, which runs a few other...
  4. boatdrinks

    Select statement for more than one field

    Nevermind, I got it Thanks
  5. boatdrinks

    Select statement for more than one field

    Thanks, I tried that and this is the error I get Exception Details: System.InvalidOperationException: ExecuteReader: Connection property has not been initialized.
  6. boatdrinks

    Select statement for more than one field

    I have this select statment where I am selecting a bunch of fields and would like to set them all as variables. Originally I used a separate select statement for each field. This is my idea of how this should work, but id doesn't. Dim connectionString As String =...
  7. boatdrinks

    Custom validator

    I have a custom validator and would like to set it to allow between 1 and 500 characters. I would also like to allow certain characters like .,'!@$%*&()+=- I really only want to exclude <>. Is there any way I can do this? <asp:RegularExpressionValidator id="problemvalidator2"...
  8. boatdrinks

    Javascript errors everywhere

    I have just completed my asp.net application and now every page is displaying bogus javascript errors. They say Expected';' for lines that only contain something like one <td> tag. Some pages don't even have any javascript code om them. Please help!
  9. boatdrinks

    Setting focus on dropdown changed

    That did it thank you cLFlaVa and James
  10. boatdrinks

    Setting focus on dropdown changed

    Here is the dropdown <asp:DropDownList onselectedindexchanged="barcodevalidate" id="inserthardware" width="175" onchange="onChange(this.selectedIndex);" viewstate="true" autopostback="true" runat="server">
  11. boatdrinks

    Setting focus on dropdown changed

    Yes here it is <SCRIPT LANGUAGE=javascript> <!-- function OnChange(si) { var t = document.forms['form1'].elements['insertbarcode']; if (si == 1) t.value =( t.value == '') ? 'DTP' : t.value; } //--> </SCRIPT>
  12. boatdrinks

    Setting focus on dropdown changed

    Thanks I tried it and it says object expected when i select the dropdown
  13. boatdrinks

    Setting focus on dropdown changed

    I know this is wrong, I am trying to set the text 'DTP' appear in textbox insertbarcde only if index 1 is selectedfrom dropdown inserthardware. How should this code look? <SCRIPT LANGUAGE=javascript> <!-- function OnChange(dropdown) { var myindex = inserthardware.selectedIndex If myindex...
  14. boatdrinks

    setting focus at beginning of text

    When you tab to this textbox 'dci.gov' appears, I would like the cursor to be placed at the beginning not the end though. <asp:Textbox id="Insertemail" maxlength="30" onfocus="javascript:if (this.value == '') {this.value = '@dci.gov';}" width="175" onkeypress="return noenter()" runat="server"...
  15. boatdrinks

    Text appear when cursor enters

    Thanks that did it.
  16. boatdrinks

    Text appear when cursor enters

    <asp:textbox id="textbox2" runat="server" /> This gives errors when I past the onfucus..... into it
  17. boatdrinks

    Text appear when cursor enters

    if I have an asp.net textbox called textbox2 how do I get the text "DTP" to appear in the textbox when the cursor enters it?
  18. boatdrinks

    Setting focus on page load

    insertfirstname had capital letters, I didn't know it was a problem Thanks everyone
  19. boatdrinks

    Setting focus on page load

    I have this in the body tag of my asp.net page onLoad="javascript:document.form1.insertfirstname.focus()" When the page loads I get the error document.form1.insertfirstname is null or not an object What can I do about this?
  20. boatdrinks

    If statement for custom validator

    I am using a custom validator to check the value of a drop-down. if the value = something, then I want the textbox next to it to require a string of 8 characters. Here is my function Sub validatebarcode(source as Object, value as ServerValidateEventArgs) If...

Part and Inventory Search

Back
Top