How can I access runat=“server” ASP element using javascript?

前端 未结 4 1632
误落风尘
误落风尘 2021-02-06 03:30

It seems everyone is doing this (in code posts etc.)...but I don\'t know how. :(

Whenever I try to manipulate an asp element using JavaScript I get an "element

4条回答
  •  故里飘歌
    2021-02-06 04:32

    All though the question has been answered, thought I would just post some further info...

    Rick Strahl provided quite an intresting work around to this problem.

    http://www.west-wind.com/WebLog/posts/252178.aspx

    Thankfully when ASP .NET 4.0 arrives, it will allow you to specify exacly what the client ID's will be!

    http://www.codeproject.com/KB/aspnet/ASP_NET4_0ClientIDFeature.aspx

提交回复
热议问题