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 Chris Miller 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. dzirkelb

    Validation: Must have one number and one letter

    Ya, sorry, my explanation wasn't the best after re-reading it...but it made sense to me! Thanks for the code :)
  2. dzirkelb

    Validation: Must have one number and one letter

    I got this to work with the following function: function ValidateLocator() { if(/\d{1}[A-z]|[A-z]{1}\d/.test(frmGeneral.txtLocator.value)) { frmGeneral.submit(); }else{ alert("You entered an invalid Locator"); document.frmGeneral.txtLocator.focus(); return(false); } }...
  3. dzirkelb

    Validation: Must have one number and one letter

    I have a page with one validation in place (must be only numbers), but I would like to add another validation. The second textbox, txtLocator, must have at least 1 number and at least 1 letter to be validated. So, it could be 1M, 1M13, 5RRR34, etc etc...5 would fail, 555 would fail, MMM would...
  4. dzirkelb

    Error on Sorting Datagrid

    I loose my selected item now when I do the sort, but that is perfectly fine with me. It is working good enough for the user that needs it, thanks guys!
  5. dzirkelb

    Error on Sorting Datagrid

    If dgrdStates.DataKeys(e.Item.ItemIndex) = -1 Then Return Else intRecordID = dgrdStates.DataKeys(e.Item.ItemIndex) dgrdStates.SelectedIndex = e.Item.ItemIndex BindDetailsGrid(intRecordID) BindTargetsGrid(intRecordID) End...
  6. dzirkelb

    Error on Sorting Datagrid

    That's why I thought I'd have my little workaround, but it doesn't work. Sub dgrdDetailsTargets_ItemCommand(ByVal s As Object, ByVal e As DataGridCommandEventArgs) Dim intRecordID As Integer If dgrdStates.DataKeys(e.Item.ItemIndex) = -1 Then intRecordID =...
  7. dzirkelb

    Error on Sorting Datagrid

    I'm pretty sure when I fire the sort column command, it fires the item command as thats where it errors out at, which sucks. I've tried workarounds but don't really know of any off hand.
  8. dzirkelb

    Error on Sorting Datagrid

    I'm not sure how to check the control lifecycle to see if it fires twice or once. As far as I know, it shouldn't be firing when I click the sort column, but it is firing off. It should only fire when I select an item in my collection to display more data, but it appears it is firing off when I...
  9. dzirkelb

    Error on Sorting Datagrid

    I believe it has e.item.itemindex set at -1 while checking the debugger functions...why is this?
  10. dzirkelb

    Error on Sorting Datagrid

    I don't know how to do that, add breakpoints. I think it is failing because I have two functions thinking e is something. It appears to be two different things. The sort column, and the item index selected...so, it will be an integer, and a string. Any ideas on how I can do this debugger...
  11. dzirkelb

    Error on Sorting Datagrid

    The error happens when I select the column name to sort. I can select the line and the data displays correctly, it breaks when I try to sort the column. How do I go about attaching a debugger?
  12. dzirkelb

    Error on Sorting Datagrid

    I have a datagrid which displays data which a user can select an item to display more data based upon selection. I try to add sorting, but come up with an error. Here is my code and below that is my error: Sub BindStatesGrid(ByVal strSortField) Dim cmdSelect As SqlCommand...

Part and Inventory Search

Back
Top