Browse by Tags

Related Posts

  • Validators cause Javascript to break

    Hi, folks. Can anyone explain this problem? I am using Visual Studio 2005 (ASP.NET 2.0/C#). I have created a composite control which combines a DropDownList with a TextBox. When the user selects a list entry, the text is copied into the textbox. I have this JavaScript function, to which I pass the TextBox...
    Posted to Client Side Web Development (Forum) by cnelson1 on 01-03-2007, 12:00 AM
    Filed under: c# javascript function, javascript, control, ClientID, getElementById, Client Script, Validation, Composite Controls, javascript in asp.net, validate
  • GridView reference in JScript

    I have a GridView control on my page, and want to loop through the rows and move the data to a window for printing. But I can’t reference the GridView in JavaScript. In my .aspx: < input type ="button" value ="Print" onclick ="JavaScript:PrintClaimsTab()" /> In my .js file: PrintClaimsTab() { ...
    Posted to Client Side Web Development (Forum) by goodideadave on 04-16-2007, 12:00 AM
    Filed under: javascript, ClientID, getElementById, Client Script, javascript in asp.net, gridview, ASP.NET 2.0
  • Re: Fill asp.net textbox with javascript variable.

    ASP.NET Server Controls get their ID re-written when the page is rendered. You have to use the ClientID attribute of the control to gain access to it from client-side. So try the following: document.getElementById("<%=txtShowTeeTime.ClientID%>").value = TempTeeTime;
    Posted to Client Side Web Development (Forum) by SuperGhost on 04-24-2007, 12:00 AM
    Filed under: javascript, ClientID
  • Re: Accessing Control from Client Side

    The situation I noticed in my control is that ...........in 'CreateChildControl' Method I have not get the full control ID with it's master pageid, contentplaeholder id and etc..... but in the method 'OnpreRender' I have found the actual rendered id of the control by simply writing control.ClientID.
    Posted to Client Side Web Development (Forum) by monirkuet24 on 05-14-2007, 12:00 AM
    Filed under: javascript, ClientID
Page 1 of 1 (4 items)