Click here to Skip to main content
16,021,211 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Need Help Pin
Not Active24-Jan-10 13:13
mentorNot Active24-Jan-10 13:13 
QuestionValidationGroup Pin
farokhian24-Jan-10 10:00
farokhian24-Jan-10 10:00 
AnswerRe: ValidationGroup Pin
Not Active24-Jan-10 13:15
mentorNot Active24-Jan-10 13:15 
QuestionApp too slow :-/ Pin
Matt Cavanagh24-Jan-10 7:46
Matt Cavanagh24-Jan-10 7:46 
AnswerRe: App too slow :-/ Pin
Not Active24-Jan-10 9:22
mentorNot Active24-Jan-10 9:22 
AnswerRe: App too slow :-/ Pin
wilsonmanmcp24-Jan-10 12:10
wilsonmanmcp24-Jan-10 12:10 
AnswerRe: App too slow :-/ Pin
Anurag Gandhi24-Jan-10 17:44
professionalAnurag Gandhi24-Jan-10 17:44 
Questionadding validator callout extender programatically Pin
je198024-Jan-10 6:02
je198024-Jan-10 6:02 
Hi,

I am trying to add a validator callout extender programtically within a control class.
The textbox and submit button are showing, but no callout appears when the textbox is left blank.

Any ideas?
Thanks, James


//add textbox

TextBox textbox = new TextBox();
textbox.Text = (string)value;
textbox.ID = "NameField";
Controls.add(textbox);

//add required field validator to textbox

RequiredFieldValidator req = new RequiredFieldValidator();
req.ErrorMessage = "Please enter a name";
req.ControlToValidate = textbox.ClientID;
req.Display= ValidatorDisplay.None;
req.ID = Guid.NewGuid().ToString();
Controls.Add(req);

//add update panel

UpdatePanel updatePanel = new UpdatePanel();
updatePanel.UpdateMode = UpdatePanelUpdateMode.Conditional;

//add submit button into update panel
Button button = new Button();
button.Text = "Save";
button.ID = "SubmitButton";
updatePanel.ContentTemplateContainer.Controls.Add(button);

// add trigger into updatepanel that is fired from button

AsyncPostBackTrigger trigger = new AsyncPostBackTrigger();
trigger.ControlID = button.ClientID;
updatePanel.Triggers.Add(trigger);

Controls.Add(updatePanel);
QuestionDisplaying totals in rows Pin
AndyASPVB24-Jan-10 5:04
AndyASPVB24-Jan-10 5:04 
QuestionHow to open document in asp.net? Pin
JC.KaNNaN24-Jan-10 2:09
JC.KaNNaN24-Jan-10 2:09 
AnswerRe: How to open document in asp.net? Pin
Not Active24-Jan-10 2:28
mentorNot Active24-Jan-10 2:28 
GeneralRe: How to open document in asp.net? Pin
JC.KaNNaN24-Jan-10 23:18
JC.KaNNaN24-Jan-10 23:18 
GeneralRe: How to open document in asp.net? Pin
Not Active25-Jan-10 1:13
mentorNot Active25-Jan-10 1:13 
QuestionVisual Studio Web Developer 2008 Pin
Roy Shoa24-Jan-10 1:11
Roy Shoa24-Jan-10 1:11 
QuestionProblem showing the correct value in a gridview Pin
AndyASPVB24-Jan-10 0:59
AndyASPVB24-Jan-10 0:59 
AnswerRe: Problem showing the correct value in a gridview Pin
Not Active24-Jan-10 2:33
mentorNot Active24-Jan-10 2:33 
QuestionFormsAuthentication.SetAuthCookie not working??? or is my logic wrong? [modified] Pin
wilsonmanmcp24-Jan-10 0:19
wilsonmanmcp24-Jan-10 0:19 
AnswerRe: FormsAuthentication.SetAuthCookie not working??? or is my logic wrong? Pin
Not Active24-Jan-10 2:35
mentorNot Active24-Jan-10 2:35 
AnswerRe: FormsAuthentication.SetAuthCookie not working??? or is my logic wrong? Pin
meeram39524-Jan-10 6:01
meeram39524-Jan-10 6:01 
AnswerRe: FormsAuthentication.SetAuthCookie not working??? or is my logic wrong? Pin
wilsonmanmcp24-Jan-10 12:07
wilsonmanmcp24-Jan-10 12:07 
AnswerRe: FormsAuthentication.SetAuthCookie not working??? or is my logic wrong? Pin
wilsonmanmcp25-Jan-10 0:32
wilsonmanmcp25-Jan-10 0:32 
QuestionASP.NET Cyrilic problem in DB Pin
hed_kandi23-Jan-10 22:29
hed_kandi23-Jan-10 22:29 
AnswerRe: ASP.NET Cyrilic problem in DB Pin
Not Active24-Jan-10 2:31
mentorNot Active24-Jan-10 2:31 
QuestionEncrypting The string Pin
RajpootRohan23-Jan-10 21:26
professionalRajpootRohan23-Jan-10 21:26 
AnswerRe: Encrypting The string [modified] Pin
Garth J Lancaster23-Jan-10 21:51
professionalGarth J Lancaster23-Jan-10 21:51 

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.