Browse by Tags

Related Posts

  • Problem accessing a Gridview EditItemTemplate ControlID

    Hello all, I'm having issues trying to drill down in a Gridview to access the EditItemTemplate TextBox ClientID. I'm trying to use the code behind to call up a Javascript function. I'm trying to do TextBox.Attributes.Add("onClick", "SomeFunction") on the RowDataBound Page...
    Posted to Data Presentation Controls (Forum) by CoreslabBill on 02-16-2009, 12:00 AM
    Filed under: clientId, edititemtemplate, JavaScript, GridView
  • Re: Javascript Error

    document.getElementById('Label1').style.visibility='hidden' Above line is correct if your control is HTML control document.getElementById('Label1').style.visibility='hidden' Above line is correct if your control is HTML controldocument.getElementById('Label1')...
    Posted to Client Side Web Development (Forum) by eanirudh on 11-12-2008, 12:00 AM
    Filed under: getElementById, ClientID, javascript
  • Sending a clientId to a JavaScript Function

    I want to send the clientId of a TextBox to a JavaScript function from the onChange() event in a DropDownList in a GridView. Everything I have tried either comes up as a poorly formed tag or the JavaScript receives garbage. Example: JavaScript Function < script type= "text/javascript" >...
    Posted to Data Presentation Controls (Forum) by newsomer on 07-19-2008, 12:00 AM
    Filed under: clientId, JavaScript
  • 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: ClientID, javascript
  • 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: ClientID, javascript
  • 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: ASP.NET 2.0, Client Script, getElementById, javascript in asp.net, gridview, ClientID, javascript
  • 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: validate, c# javascript function, Client Script, ClientID, Composite Controls, control, getElementById, javascript, javascript in asp.net, Validation
  • Re: Javascript control reference (was: Callback to a usercontrol)

    Hello, you are hard-coding control references in javascript, and that won't work in the context of a naming container. (There are also some other problems.) Here is recommended practice to get a control reference from javascript: On the client-side: document.getElementById("<%= MyControl...
    Posted to Client Side Web Development (Forum) by LudovicoVan on 08-31-2006, 12:00 AM
    Filed under: javascript, control, reference, ClientID, getElementById
  • How to get the id of a server control?

    I have a hidden control: < asp : HiddenField ID ="hid1" runat ="server" /> I want to change its value inside my function: function changeHid1Value(value) { var clientID = '<%= this.hid1.ClientID %>'; alert(clientID); } I am getting the following error message:...
    Posted to Web Forms (Forum) by Dynamic2008 on 06-29-2009, 12:00 AM
    Filed under: javascript, ClientID, HttpException
Page 1 of 1 (9 items)