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 SkipVought 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: *

  • Users: wes987654
  • Order by date
  1. wes987654

    Session variable

    you could just handle this in a class something like: Public Class User Private _UserID As Integer Private _FirstName As String Private _LastName As String Public Sub New(ByVal UserId As Integer) GetUser(UserId) End Sub Private Sub GetUser(ByVal UserID As...
  2. wes987654

    query vs stored procedure

    I have a query that runs perfectly and it uses a function fn_split. It works just fine but when I put this query in a procedure it no longer works and tells me that fn_split is undefined?... Any ideas? I would also like to know what the ; infront of the with is for if someone would enlighten...
  3. wes987654

    Hide cascading dropdown if no results returned

    populate is called on the load and the parameters I stuck in the function are just examples you would use your control. Check out some posts on RegisterClientScriptBlock and you should see how the parms are set. Hope you get it working :D
  4. wes987654

    Hide cascading dropdown if no results returned

    TSM1.RegisterClientScriptBlock(New TextBox, GetType(Object), "myScript", "script code here", True)
  5. wes987654

    Query suggestions

    I have this only thing I need is to give the exists column a name how do I do that? Thanks so much for your help! Declare @OrdersList varchar(50) set @OrdersList = replace('SBCORD10949415, SBCORD10953377',' ','') SELECT Distinct GPItemNumber FROM UserTemplate WHERE OrderNumber in...
  6. wes987654

    Hide cascading dropdown if no results returned

    Try dropping an alert in this control after the checkforhotels and see when it pops up. I am not sure how that would run but if the ddl is populated before the alert then just call a function there and hide/show <asp:DropDownList ID="dplCity" runat="server"...
  7. wes987654

    Hide cascading dropdown if no results returned

    You can register scripts with the scriptmanager itself. First make sure you are using the latest ajax dll. function pageLoad(sender, args) { $find("IDOfExtender").add_populating(Populate); } function Populate(sender, args) { sender.get_element().disabled = true; }
  8. wes987654

    Hide cascading dropdown if no results returned

    Yes :), if you use RegisterStartupScript it will put the javascript after the control has been loaded. Another nice thing you might want to use is you can pass the control.clientid from the codebehind into the script so the js wont have to find it might make it easier if your not used to js as...
  9. wes987654

    Hide cascading dropdown if no results returned

    Ah saw your post at the bottom of the page did you try registering the JS from the codebehind using like RegisterStartupScript("arrayScript1", scriptString); so the script runs at the bottom of the page?
  10. wes987654

    Hide cascading dropdown if no results returned

    Could you use javascript on the client? Something like: var v1 = document.forms[0].dplHotel(document.forms[0].dplHotel.selectedIndex).value; if (v1 == "") { document.getElementById("dplHotel").style.display = "none"; }
  11. wes987654

    Query suggestions

    I have the query below that tells will get an item number where a order exists. I pass in a string of 'SBCORD10949415', 'SBCORD10953377' as a parameter. I need to be able to tell if any ordernumbers passed into the parameter do not exist so I can flag them in the UI. Any ideas on how to go...

Part and Inventory Search

Back
Top