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

ASP.NET

 
QuestionFormat strings for editable Grid in asp.net Pin
satsihreddy843-Jul-08 18:50
satsihreddy843-Jul-08 18:50 
Questionhow to Deploying multiple web applications with VS 2005 Pin
Siva193-Jul-08 18:33
Siva193-Jul-08 18:33 
QuestionHow can i check textbox null inside masterpage Pin
deepthy.p.m3-Jul-08 18:22
deepthy.p.m3-Jul-08 18:22 
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 
Hi Net Experts!
This maybe a simple question for you all, but I have not been able to get it works, I created a web form page .aspx, and a user control file .ascx. Here is the code in my .ascx file

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ControlFormBookSearch.ascx.cs" Inherits="Control_ControlFormBookSearch" %>
   
<table style="padding:0; border:solid 0px;">
<tr valign="middle"> 
<td style="vertical-align:top;border-bottom:solid 0px">
Keyword:&nbsp;<asp:TextBox ID="searchValue" runat="server" />&nbsp;
</td> 
</tr> 
</table> 


From my web form .aspx file, I wanted to access the control searchType this way:

<%@ Register src="ControlBookDetail.ascx" tagname="ControlBookDetail" tagprefix="uc9"   %>
<script runat="server">  
protected void btnSearch_Click(object sender, EventArgs e)
{
        TextBox searchValue = (TextBox)Page.FindControl("searchValue");//never find this control
        if (searchValue != null) 
            Response.Write(searchValue.Text);
        else Response.Write("Bad request"); 
}


But I have not been able to get it to work. Could you please show me how to fix this? thank you for your helps!
-Hai

Hai

modified on Friday, July 4, 2008 1:26 AM

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 
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 

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.