Click here to Skip to main content
15,898,588 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: problem in work with javascript Pin
mr.mohsen15-Aug-07 7:15
mr.mohsen15-Aug-07 7:15 
AnswerRe: problem in work with javascript Pin
Guffa15-Aug-07 7:11
Guffa15-Aug-07 7:11 
AnswerRe: problem in work with javascript Pin
ToddHileHoffer15-Aug-07 7:14
ToddHileHoffer15-Aug-07 7:14 
Questionproblem in work with javascript Pin
mr.mohsen15-Aug-07 5:56
mr.mohsen15-Aug-07 5:56 
AnswerWTF? Pin
leckey15-Aug-07 6:11
leckey15-Aug-07 6:11 
GeneralRe: WTF? Pin
Steve Echols15-Aug-07 18:23
Steve Echols15-Aug-07 18:23 
QuestionDynamic User Control loading: Javascript error on Request.Form[...] Pin
Talal Sultan15-Aug-07 5:44
Talal Sultan15-Aug-07 5:44 
AnswerRe: Dynamic User Control loading: Javascript error on Request.Form[...] Pin
Talal Sultan15-Aug-07 6:07
Talal Sultan15-Aug-07 6:07 
Ok I found the problem. In the beginning I was loading the user control statically in the web form and then when I wanted to try to load it dynamically, I commented the line where I call it.

<td>
<asp:PlaceHolder ID="PH_AddFeature_AddType" runat="server"></asp:PlaceHolder>
<!-- <aft1:AddFeatureType ID="AddFeatureType" runat="server" />-->
</td>

This resulted in the comment tags to appear in the html code, I have no idea why actually. Anyway, I removed the comment completely and now the page loads without javascript errors and when i click the button in the user control, the required field validator of my textbox works.

Now I have another issue related to the field validators, I'm not sure if I should created a new thread for it or not.

In that same page with the user control, I have 1 textbox in the webform and 1 textbox in the user control, both have required field validators attached to them. I also have two buttons, one in the web form and one in the user control.

My problem is that when i click the button inside the user control, the field validator of the textbox located in the web form activates. My question: is there a way to have some kind of scope for the button? I would like only the field validator of the user control to activate when i click the button inside the user control. Is there a way to accomplish such a thing?

Thanks.

Talal


-- If this is a post that has been helpful to you, please vote for it. Thank you!

"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
QuestionASP.Net page displayed on a PDA problem Pin
bobh052615-Aug-07 5:38
bobh052615-Aug-07 5:38 
QuestionInheritance in web controls Pin
Dermot O S15-Aug-07 3:42
Dermot O S15-Aug-07 3:42 
AnswerRe: Inheritance in web controls Pin
Guffa15-Aug-07 3:48
Guffa15-Aug-07 3:48 
GeneralRe: Inheritance in web controls Pin
Dermot O S15-Aug-07 4:07
Dermot O S15-Aug-07 4:07 
GeneralRe: Inheritance in web controls Pin
Paddy Boyd15-Aug-07 4:37
Paddy Boyd15-Aug-07 4:37 
AnswerRe: Inheritance in web controls Pin
Guffa15-Aug-07 8:16
Guffa15-Aug-07 8:16 
GeneralRe: Inheritance in web controls Pin
Dermot O S15-Aug-07 21:59
Dermot O S15-Aug-07 21:59 
QuestionUnable to start debugging on web server Pin
aquarious202015-Aug-07 3:37
aquarious202015-Aug-07 3:37 
AnswerRe: Unable to start debugging on web server Pin
Michael Sync15-Aug-07 4:49
Michael Sync15-Aug-07 4:49 
GeneralRe: Unable to start debugging on web server Pin
Michael Sync15-Aug-07 5:39
Michael Sync15-Aug-07 5:39 
QuestionEvents not firing after adding a particular User control in ASP.NET 2005 Pin
naresh51115-Aug-07 3:27
naresh51115-Aug-07 3:27 
AnswerRe: Events not firing after adding a particular User control in ASP.NET 2005 Pin
Michael Sync15-Aug-07 5:03
Michael Sync15-Aug-07 5:03 
QuestionWhy is VS creating 2 project folders? Pin
jimbaloo15-Aug-07 3:25
jimbaloo15-Aug-07 3:25 
AnswerRe: Why is VS creating 2 project folders? Pin
Michael Sync15-Aug-07 4:58
Michael Sync15-Aug-07 4:58 
QuestionCheckBoxField Pin
mvyjim15-Aug-07 3:08
mvyjim15-Aug-07 3:08 
QuestionPublic shared classes with asp.net Pin
greekius15-Aug-07 2:24
greekius15-Aug-07 2:24 
AnswerRe: Public shared classes with asp.net Pin
N a v a n e e t h15-Aug-07 3:13
N a v a n e e t h15-Aug-07 3:13 

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.