Click here to Skip to main content
16,005,162 members
Home / Discussions / C#
   

C#

 
GeneralRe: My app won't run: "unverifiable assembly" Pin
navvara the infantryman3-Jan-06 1:55
navvara the infantryman3-Jan-06 1:55 
GeneralRe: My app won't run: "unverifiable assembly" Pin
J4amieC3-Jan-06 4:07
J4amieC3-Jan-06 4:07 
AnswerRe: My app won't run: "unverifiable assembly" Pin
leppie3-Jan-06 6:57
leppie3-Jan-06 6:57 
QuestionCan i call the properties window of a specific File from my Application? Pin
shaimaa-galal2-Jan-06 22:02
shaimaa-galal2-Jan-06 22:02 
AnswerRe: Can i call the properties window of a specific File from my Application? Pin
albCode2-Jan-06 22:13
albCode2-Jan-06 22:13 
QuestionRe: Can i call the properties window of a specific File from my Application? Pin
shaimaa-galal2-Jan-06 22:31
shaimaa-galal2-Jan-06 22:31 
QuestionRequiredFieldValidator Pin
karthik_dotnet12-Jan-06 22:00
karthik_dotnet12-Jan-06 22:00 
AnswerRe: RequiredFieldValidator Pin
PrakashBhaskar2-Jan-06 22:32
PrakashBhaskar2-Jan-06 22:32 
Hi,
Make both the validator enable = false on webform page load event write the following code.

//declare instance for required field validator
RequiredFieldValidator rv1 = new RequiredFieldValidator();
//declare instance for usercontrol
System.Web.UI.UserControl wui = new UserControl();
//find the usercontrol
wui = (System.Web.UI.UserControl)(this.FindControl("WebUserControl11"));
//find the requiredfield validator (which is in usercontrol)
rv1 = (System.Web.UI.WebControls.RequiredFieldValidator)(wui.FindControl("RequiredFieldValidator1")); //searching usercontrol requiredfield validator

button click event (this is in webform) write the following code

req1.Enabled = true;// this requiredfield validator is in your webform
RequiredFieldValidator r1 = new RequiredFieldValidator();
System.Web.UI.UserControl wui = new UserControl();
wui = (System.Web.UI.UserControl)(this.FindControl("WebUserControl11"));
r1 = (System.Web.UI.WebControls.RequiredFieldValidator)(wui.FindControl("RequiredFieldValidator1"));

req1.Validate();

if (IsValid)
{
r1.Enabled = false;
--statement--
}

************* user control **************
usercontrol page load event write the following code

RequiredFieldValidator reqq1 = new RequiredFieldValidator();
reqq1 = (System.Web.UI.WebControls.RequiredFieldValidator)(Page.FindControl("req1"));
reqq1.Enabled = false;
RequiredFieldValidator1.Enabled = false;
reqq1.EnableClientScript = false;
RequiredFieldValidator1.EnableClientScript = false;

usercontrol button click event write the following code

RequiredFieldValidator1.Enabled = true;
RequiredFieldValidator reqq1 = new RequiredFieldValidator();
reqq1 = (System.Web.UI.WebControls.RequiredFieldValidator)(Page.FindControl("req1"));// searching webpage requiredfield validator
RequiredFieldValidator1.Validate();
if(RequiredFieldValidator1.IsValid)
{
reqq1.Enabled = false;
--statement--
}



Thanks
Warm Regards
Prakash-B
Questionpocket pc Pin
alkhalyleh2-Jan-06 20:34
alkhalyleh2-Jan-06 20:34 
Questionhow to code the connect/disconnect function ? Pin
R24092-Jan-06 20:10
R24092-Jan-06 20:10 
AnswerRe: how to code the connect/disconnect function ? Pin
Colin Angus Mackay2-Jan-06 21:58
Colin Angus Mackay2-Jan-06 21:58 
GeneralRe: how to code the connect/disconnect function ? Pin
R24092-Jan-06 22:08
R24092-Jan-06 22:08 
QuestionGUI basics ? Pin
Skoder2-Jan-06 17:26
Skoder2-Jan-06 17:26 
AnswerRe: GUI basics ? Pin
Judah Gabriel Himango2-Jan-06 20:21
sponsorJudah Gabriel Himango2-Jan-06 20:21 
QuestionClose with an X Pin
picasso22-Jan-06 17:25
picasso22-Jan-06 17:25 
AnswerRe: Close with an X Pin
imsathy2-Jan-06 18:29
imsathy2-Jan-06 18:29 
QuestionHow do you access the forms child objects from a different class? Pin
JstDaNuGuy2-Jan-06 15:15
JstDaNuGuy2-Jan-06 15:15 
AnswerRe: How do you access the forms child objects from a different class? Pin
Dave Kreskowiak2-Jan-06 16:56
mveDave Kreskowiak2-Jan-06 16:56 
AnswerRe: How do you access the forms child objects from a different class? Pin
Colin Angus Mackay2-Jan-06 22:01
Colin Angus Mackay2-Jan-06 22:01 
GeneralRe: How do you access the forms child objects from a different class? Pin
JstDaNuGuy3-Jan-06 2:13
JstDaNuGuy3-Jan-06 2:13 
QuestionHow to run a file with its default program Pin
Sasuko2-Jan-06 14:06
Sasuko2-Jan-06 14:06 
AnswerRe: How to run a file with its default program Pin
Dave Kreskowiak2-Jan-06 15:10
mveDave Kreskowiak2-Jan-06 15:10 
QuestionAutomate Outlook Express Pin
Ista2-Jan-06 13:32
Ista2-Jan-06 13:32 
AnswerRe: Automate Outlook Express Pin
Dave Kreskowiak2-Jan-06 15:07
mveDave Kreskowiak2-Jan-06 15:07 
GeneralRe: Automate Outlook Express Pin
Ista2-Jan-06 17:47
Ista2-Jan-06 17:47 

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.