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. BarkingFrog

    SQL to update a column using another table

    UPDATE DDT4ENVR.CCR SET USML_IND = (SELECT USML_IND FROM DDT4ENVR.THR WHERE USML_IND = 'Y')
  2. BarkingFrog

    Add "Please Select" to Drop Down in datalist

    After binding the data to your dropdown, check to see if you have a valid ID. If you do not, then SelecteIndex = 0. Example: "ValueToBeSelected" is the ID coming from your database that you want selected in the dropdown---- After binding the data: If IsDBNull(ValueToBeSelected) or...
  3. BarkingFrog

    Add "Please Select" to Drop Down in datalist

    After databinding to the dropdownlist add the following: DropDownList1.Items.Insert(0, "Please Select") DropDownList1.SelectedIndex = 0
  4. BarkingFrog

    Date Script

    Response.Write(FormatDateTime(Now(), 1))
  5. BarkingFrog

    Checkboxlist and mandatory selection

    You need to create a custom validation control. http://www.4guysfromrolla.com/webtech/tips/t040302-1.shtml
  6. BarkingFrog

    window.navigate in Safari browser

    Try this: onClick=location.href
  7. BarkingFrog

    Division By Zero.....when it's not zero!!!

    You're getting this error because intWickets = 0. if intBallsBowled = 0 then decStrikeRate = 0 else If intWickets > 0 Then decStrikeRate = formatnumb((intBallsBowled/intWickets),2) End If end if
  8. BarkingFrog

    Error: Cannot create ActiveX component

    You didn't include the error.
  9. BarkingFrog

    Drop Down List Problem

    Neil, Do the following to insert into your dropdown. Do this after the databind. The first line inserts the item in at the beginning of the dropdown. The second line then sets the dropdown index to display the first value just inserted. MyDropDown.Items.Insert(0,"Choose From...
  10. BarkingFrog

    Drop Down List Problem

    Neil, I have done this by combining the two fields in the sql statement. Ex: Select ID + " - " + Description As IDDesc Then bind IPDesc to your dropdown.
  11. BarkingFrog

    Query question with an IIF

    You need to do an outside join on the Sales Order field between the two tables. This will bring back everything that is in the Sales table that meets your criteria regardless if it is in the Variation table or not.
  12. BarkingFrog

    What's the size of an array after split a string into it?

    Just use the Ubound function. Example: arraySize = UBound(array)
  13. BarkingFrog

    Carriage Returns in a datatable being converted to spaces

    By the way, if you do it during your databound sub routine you don't have to worry about those "pesky tags" in your update and insert statements.
  14. BarkingFrog

    Carriage Returns in a datatable being converted to spaces

    Do your replace when you are binding everything in your ItemDataBound sub routine: Private Sub Repeater1_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.RepeaterItemEventArgs) Handles Repeater1.ItemDataBound [Replace code here] End Sub
  15. BarkingFrog

    Carriage Returns in a datatable being converted to spaces

    Try this: Replace(ReturnedText,Chr(13),&quot;<br>&quot;)
  16. BarkingFrog

    HTML selects, output blank

    I use this... <option value=0>-Select One-</option> Then I check for the value of zero and if I see it then I place whatever I want into the database based on the value.
  17. BarkingFrog

    SQL Pass through and Access...

    SQLEXEC( lnHandle, &quot;INSERT INTO MyTable ( DateField ) VALUES ( NULL )&quot; )
  18. BarkingFrog

    Select posts where the ID is not within all of the posts

    SELECT a.Firstname, a.Lastname FROM Contestants a, Roundresults b WHERE a.ContID <> b.ContID This will return the first and last names of everyone who is not listed in the Roundresults table.
  19. BarkingFrog

    Creating a custom drop down in .Net

    Hey! That's cool! I didn't know about the Panel Control. Learn something every day. Thanks, Mark!
  20. BarkingFrog

    How do I do this?

    um, you need to post this in the &quot;Microsoft:ASP.NET&quot; newsgroup

Part and Inventory Search

Back
Top