Search

You searched for the word(s): userid:668923

Matching Posts

  • Re: Sending user control changed fields

    ok, set up a function for the onchange event of each control which adds to some kind of array held inside the JavaScript code. You'll need the fieldname as well so your webservice can add the new value to the right field on the server alternatively you could wrap it all up in an UpdatePanel and then wire up the server-side TextChanged event to fire the data back to the server without a full postback
    Posted to Web Forms (Forum) by Hoonius on 11/11/2009
  • Re: asp:HyperLink & Javascript function

    masterpage location shouldn't make much difference as the url should be parsed against the page location the Page object has two methods called ResolveClientUrl ResolveUrl Rather than using the tildé character, can you try adding the url to your link via one of the above methods in code behind?
    Posted to Web Forms (Forum) by Hoonius on 11/11/2009
  • Re: Sending user control changed fields

    unless you're using some kind of JavaScript/AJAX implementation, this will not work Brrowsers always send all enabled fields to the server when the page posts back so the only way to limit the amount of data being sent is to use javascript and a webservice to collect the data I don't imagine that you will gain much in performance by doing this, unless you have a really long form :¬)
    Posted to Web Forms (Forum) by Hoonius on 11/10/2009
  • Re: How to associate checkbox with textbox

    Remove the AutoPostBack and OnCheckedChanged from your checkbox and add this to your DataGrid's ItemDataBound event and the focus will work with javascript protected void dg_ItemDataBound(object sender, DataGridItemEventArgs e) { if((e.Item.ItemType == ListItemType.Item) ||(e.Item.ItemType == ListItemType.AlternatingItem)) { CheckBox cb1 = (CheckBox)e.Item.FindControl("cb1"); TextBox tb1 = (TextBox)e.Item.FindControl("tb1"); cb1.Attributes.Add("onclick", "javascript
    Posted to Web Forms (Forum) by Hoonius on 10/22/2009
  • Re: How to associate checkbox with textbox

    you could try it in the ItemCommand function instead and emit the javasscript via the Page.ClientScript object I'm not at my work PC right now but i think the method is called RegisterClientScriptBlock. Just check to see if the checkbox is cheked and then use "document.getElementById('" + tb1.ClientID+ "').focus()" as the script text Should work okay Or does it absolutely have to be the chekcbox's own event? That is a little trickier :¬)
    Posted to Web Forms (Forum) by Hoonius on 10/22/2009
  • Re: textbox Validation

    using a combination of RequireFieldValidator and CompareValidator you can validate a field as being numeric. This works when a user tabs to a next control rather than on KeyPress but it works without needing to write any client-side javascript If you use the CompareValidator set it up like this: <asp:CompareValidator ID="cvTxt" runat="server" Operator="DataTypeCheck" ControlToValidate="txtInput" ErrorMessage="This is not numeric!!" Type="Integer"><
    Posted to Web Forms (Forum) by Hoonius on 5/18/2009
  • Re: SQL problems

    You have a parameter in your Sql called @Address, but you're adding it in as @Address1 The message would be displayed if you were not doing your redirection by default. Since you're returning a boolean to indicate the success, then only so the redirect if the Insert function returns true I'd also be wary of doing returns at the end of your try block. Try setting a variable to true or false and then do the return after the finally
    Posted to Web Forms (Forum) by Hoonius on 3/27/2009
  • Re: time sensitive events

    Probably not the best idea. It's not the user's fault that there was a run of reservations 7 days ago and running processes like that will likely cause them to look elsewhere What database are you using for your site? if it was SqlServer then you could set up a job to run hourly/nightly to remove these products from the reservations table It would definitely be better to run this out of your web processing as the date comparision could be quite heavy for all those rows. Would you need to
    Posted to Architecture (Forum) by Hoonius on 3/16/2009
  • Re: Unable to cast object of type 'System.String' to type 'System.String[]

    Roles.AddUsersToRole is expecting a string[] of users to add Drop the S and use Roles.AddUserToRole and it should give the desired effect :¬)
    Posted to Web Forms (Forum) by Hoonius on 3/16/2009
  • Re: How to use silver light control in asp.net 2008

    if you go here >> http://silverlight.net/getstarted/ It gives a list of all the components to download to start building silverlight controls
Page 1 of 20 (195 items) 1 2 3 4 5 Next > ... Last »