Click here to Skip to main content
15,892,059 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How can i check textbox null inside masterpage Pin
Sherin Iranimose3-Jul-08 19:35
Sherin Iranimose3-Jul-08 19:35 
GeneralRe: How can i check textbox null inside masterpage Pin
deepthy.p.m3-Jul-08 19:47
deepthy.p.m3-Jul-08 19:47 
GeneralRe: How can i check textbox null inside masterpage Pin
Sherin Iranimose3-Jul-08 20:04
Sherin Iranimose3-Jul-08 20:04 
GeneralRe: How can i check textbox null inside masterpage Pin
deepthy.p.m3-Jul-08 22:04
deepthy.p.m3-Jul-08 22:04 
QuestionHow to use "User Controls" in Web Form? [modified] Pin
nguyenhh3-Jul-08 17:52
nguyenhh3-Jul-08 17:52 
AnswerRe: How to use "User Controls" in Web Form? Pin
Sherin Iranimose3-Jul-08 19:24
Sherin Iranimose3-Jul-08 19:24 
GeneralRe: How to use "User Controls" in Web Form? Pin
nguyenhh5-Jul-08 8:12
nguyenhh5-Jul-08 8:12 
AnswerRe: How to use "User Controls" in Web Form? Pin
viivekk3-Jul-08 19:29
viivekk3-Jul-08 19:29 
This is sample userctrl with textbox inside:

<![CDATA[<%@ Control Language="C#" AutoEventWireup="true" CodeFile="usc1.ascx.cs" Inherits="UI_usc1" %>]]>

<asp:panel id="Panel1" runat="server" xmlns:asp="#unknown">
    <asp:textbox id="TextBox1" runat="server"></asp:textbox>    
</asp:panel>


This is aspx page i include the user ctrl in this page, i use findcontrol method of usercontrol object, by using this u can find controls inside the usercontrols.

<![CDATA[<%@ Page Language="C#" %>]]>
<![CDATA[<%@ Register Src="~/UI/usc1.ascx" TagName="Communication" TagPrefix="Samplectrl" %>]]>


<script runat="server">

    protected void btn_Click(object sender, EventArgs e)
    {
        ((TextBox)usrctrl1.FindControl("TextBox1")).Text = "adasd";
    }
</script>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <samplectrl:communication id="usrctrl1" runat="server" xmlns:samplectrl="#unknown" />
        <asp:button id="btn" runat="server" text="click find and write" onclick="btn_Click" xmlns:asp="#unknown" />        
    </div>
    </form>
</body>
</html>

GeneralRe: How to use "User Controls" in Web Form? Pin
nguyenhh5-Jul-08 8:02
nguyenhh5-Jul-08 8:02 
QuestionSql Injection Pin
ngrj3-Jul-08 16:24
ngrj3-Jul-08 16:24 
AnswerRe: Sql Injection Pin
Mark Churchill3-Jul-08 16:52
Mark Churchill3-Jul-08 16:52 
GeneralRe: Sql Injection Pin
ngrj3-Jul-08 17:06
ngrj3-Jul-08 17:06 
QuestionWizard sidebar Pin
kjosh3-Jul-08 13:52
kjosh3-Jul-08 13:52 
Questionhow to generate query at runtime ......... help plzz Pin
dream_liner_7e73-Jul-08 10:37
dream_liner_7e73-Jul-08 10:37 
AnswerRe: how to generate query at runtime ......... help plzz Pin
Christian Graus3-Jul-08 10:58
protectorChristian Graus3-Jul-08 10:58 
AnswerRe: how to generate query at runtime ......... help plzz Pin
dream_liner_7e73-Jul-08 11:18
dream_liner_7e73-Jul-08 11:18 
Questioncan't align the asp:listItems to left Pin
gottimukkala3-Jul-08 6:22
gottimukkala3-Jul-08 6:22 
AnswerRe: can't align the asp:listItems to left Pin
Sherin Iranimose3-Jul-08 6:58
Sherin Iranimose3-Jul-08 6:58 
QuestionHow do add controls from 'codebehind' ? Pin
tina->newcoder3-Jul-08 6:11
tina->newcoder3-Jul-08 6:11 
AnswerRe: How do add controls from 'codebehind' ? Pin
Sherin Iranimose3-Jul-08 6:18
Sherin Iranimose3-Jul-08 6:18 
GeneralRe: How do add controls from 'codebehind' ? Pin
tina->newcoder3-Jul-08 6:23
tina->newcoder3-Jul-08 6:23 
GeneralRe: How do add controls from 'codebehind' ? Pin
Sherin Iranimose3-Jul-08 6:33
Sherin Iranimose3-Jul-08 6:33 
GeneralRe: How do add controls from 'codebehind' ? Pin
tina->newcoder3-Jul-08 6:55
tina->newcoder3-Jul-08 6:55 
GeneralRe: How do add controls from 'codebehind' ? Pin
Christian Graus3-Jul-08 7:34
protectorChristian Graus3-Jul-08 7:34 
GeneralRe: How do add controls from 'codebehind' ? Pin
Sherin Iranimose3-Jul-08 20:50
Sherin Iranimose3-Jul-08 20:50 

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.