Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
L

Lex Luthor

@Lex Luthor
About
Posts
2
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Javascript in web user control
    L Lex Luthor

    As one of the answers (minhpc_bk) also implied I had to go through the .aspx which uses the control to get the information I required. I use this function each time I wan't an id or so for one of the controls on the .ascx. function GetIdString() { var id = new String("<%= this.ClientID %>_"); return id; } Now I can easily do something like this in another function: document.getElementById(GetIdString()+"CheckBox1") Thanx everybody for the response... //LL

    ASP.NET csharp javascript dotnet sysadmin tools

  • Javascript in web user control
    L Lex Luthor

    Hello, Have anyone used javascript in an web user control(.ascx) (Visual Studion 2005, .NET Framework 2.0)? Alert works fine, but for example, I cant seem to get the ID of an asp checkbox. function CheckBoxChecked(id) { 1. alert(id); var elem = document.getElementById(id); var temp = document.getElementById('CheckBox1'); 2. alert(elem); 3. alert(temp); } results in: 1. Undefined 2. null 3. null I invoke the script as follows: asp:CheckBox ID="CheckBox1" runat="server" onclick="javascript:CheckBoxChecked()" (I have used javascripts with .ascx components before, though they were predifined by Telerik, which contols I were using at the time) //LL

    ASP.NET csharp javascript dotnet sysadmin tools
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups