Click here to Skip to main content
15,885,141 members
Home / Discussions / JavaScript
   

JavaScript

 
GeneralRe: onclick event isn't fired Pin
Ali Al Omairi(Abu AlHassan)4-Jun-11 20:23
professionalAli Al Omairi(Abu AlHassan)4-Jun-11 20:23 
GeneralRe: onclick event isn't fired Pin
Ali Al Omairi(Abu AlHassan)5-Jun-11 4:58
professionalAli Al Omairi(Abu AlHassan)5-Jun-11 4:58 
GeneralRe: onclick event isn't fired Pin
AspDotNetDev6-Jun-11 8:35
protectorAspDotNetDev6-Jun-11 8:35 
GeneralRe: onclick event isn't fired Pin
Ali Al Omairi(Abu AlHassan)7-Jun-11 0:36
professionalAli Al Omairi(Abu AlHassan)7-Jun-11 0:36 
QuestionRegarding JQueryCurrency Pin
dayakar_dn31-May-11 0:33
dayakar_dn31-May-11 0:33 
AnswerRe: Regarding JQueryCurrency Pin
thatraja3-Jun-11 18:19
professionalthatraja3-Jun-11 18:19 
QuestionPopulating a textbox inside usercontrol thru jquery. Pin
fififlowertot30-May-11 1:09
fififlowertot30-May-11 1:09 
AnswerRe: Populating a textbox inside usercontrol thru jquery. Pin
AspDotNetDev30-May-11 1:52
protectorAspDotNetDev30-May-11 1:52 
Say you have this user control, "Hello.ascx":
ASP.NET
<%@ Control Language="C#" %>

<asp:TextBox ID="txtInfo" runat="server" />

You can then get the ClientID of txtInfo using FindControl from "Default.aspx":
ASP.NET
<%@ Page Language="C#" %>
<%@ Register Src="~/Hello.ascx" TagPrefix="my" TagName="Hello" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Sub-Control Client ID</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.4.2.min.js"></script>    
        <my:Hello ID="helloWorld" runat="server" />
        <script type="text/javascript">
            $("#<%= helloWorld.FindControl("txtInfo").ClientID %>").val("Hello World");
        </script>
    </div>
    </form>
</body>
</html>

You could probably also add a property to your Hello control that returns the ClientID of txtInfo, then you'd simply get the ID by saying helloWorld.InfoClientID.

GeneralRe: Populating a textbox inside usercontrol thru jquery. Pin
fififlowertot30-May-11 3:49
fififlowertot30-May-11 3:49 
QuestionTooltip(true,escape('Benito's Taco Shop'),event) Pin
smraj150325-May-11 19:03
smraj150325-May-11 19:03 
AnswerRe: Tooltip(true,escape('Benito's Taco Shop'),event) Pin
Graham Breach25-May-11 20:39
Graham Breach25-May-11 20:39 
QuestionIcon on the left of the fieldLable of a textField Pin
Pierre besquent25-May-11 0:13
Pierre besquent25-May-11 0:13 
QuestionURL Decodind in javascript Pin
Ali Al Omairi(Abu AlHassan)24-May-11 2:09
professionalAli Al Omairi(Abu AlHassan)24-May-11 2:09 
AnswerRe: URL Decodind in javascript Pin
Not Active24-May-11 2:36
mentorNot Active24-May-11 2:36 
GeneralRe: URL Decodind in javascript Pin
Ali Al Omairi(Abu AlHassan)25-May-11 0:21
professionalAli Al Omairi(Abu AlHassan)25-May-11 0:21 
AnswerRe: URL Decodind in javascript Pin
Pete O'Hanlon24-May-11 3:01
mvePete O'Hanlon24-May-11 3:01 
GeneralRe: URL Decodind in javascript Pin
Ali Al Omairi(Abu AlHassan)25-May-11 0:17
professionalAli Al Omairi(Abu AlHassan)25-May-11 0:17 
GeneralRe: URL Decodind in javascript Pin
sivaguru theerthamalai25-May-11 20:45
sivaguru theerthamalai25-May-11 20:45 
GeneralRe: URL Decodind in javascript [modified] Pin
Ali Al Omairi(Abu AlHassan)25-May-11 21:24
professionalAli Al Omairi(Abu AlHassan)25-May-11 21:24 
GeneralRe: URL Decodind in javascript Pin
sivaguru theerthamalai25-May-11 22:22
sivaguru theerthamalai25-May-11 22:22 
GeneralRe: URL Decodind in javascript Pin
Ali Al Omairi(Abu AlHassan)25-May-11 22:52
professionalAli Al Omairi(Abu AlHassan)25-May-11 22:52 
GeneralRe: URL Decodind in javascript Pin
Ali Al Omairi(Abu AlHassan)25-May-11 22:29
professionalAli Al Omairi(Abu AlHassan)25-May-11 22:29 
Questiondetermine file size before uploading? Pin
Gofur Halmurat22-May-11 3:15
Gofur Halmurat22-May-11 3:15 
AnswerRe: determine file size before uploading? Pin
twseitex22-May-11 10:16
twseitex22-May-11 10:16 
AnswerRe: determine file size before uploading? Pin
Peter_in_278022-May-11 17:24
professionalPeter_in_278022-May-11 17:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.