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...
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...
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
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...
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"...
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;
}
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...
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?
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";
}
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.