Solution for the QlikView, Biztalk, DotNet and MSBI real time development problems
Search This Blog
Wednesday, August 24, 2011
Passing a control.ClientID to a javascript function in asp.net
Use below code to pass control client id to javascript function:
<asp:TextBox ID="demo1" runat="server"></asp:TextBox>
<img src="images/cal.gif" onclick="javascript:NewCssCal('<%= demo1.ClientID %>')"
style="cursor: pointer" alt="sdf" />
Labels:
ASP.NET
Subscribe to:
Post Comments (Atom)
Popular Posts
-
.Net Integration with Bill Desk Payment Gateway Introduction: Now-a-days online shopping websites has become very popular, and to h...
-
Confirmation box from code behind c# using modalpopup ajax control <% @ Page Language ="C#" AutoEventWireup ="true...
-
@foreach (var item in Model), Object reference not set to an instance of an object in MVC Razor ViewIndex.cshtml @model IEnumerable <RazorEngineMVC.Models. User > @{ ViewBag.Title = "Index" ; } < h2 ...
-
The typical way of testing WCF services is to create a test project, add a service reference to the project, and then write a test agains...
-
Within a class, const , static and readonly members are special in comparison to the other modifiers. const vs. readonly const ...
No comments:
Post a Comment