Click here to Skip to main content
16,004,453 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionDataTable.Merge() Pin
Imran Khan Pathan22-Aug-07 19:15
Imran Khan Pathan22-Aug-07 19:15 
AnswerRe: DataTable.Merge() Pin
ChrisKo23-Aug-07 7:50
ChrisKo23-Aug-07 7:50 
QuestionQuestion regarding Session abandon in case of closing a web page using task bar Pin
suryany7222-Aug-07 18:39
suryany7222-Aug-07 18:39 
AnswerRe: Question regarding Session abandon in case of closing a web page using task bar Pin
\laddie24-Aug-07 0:33
\laddie24-Aug-07 0:33 
QuestionFormView Issue Pin
cisco210322-Aug-07 17:02
cisco210322-Aug-07 17:02 
AnswerRe: FormView Issue Pin
chathu03j22-Aug-07 18:14
chathu03j22-Aug-07 18:14 
GeneralRe: FormView Issue Pin
cisco210323-Aug-07 4:27
cisco210323-Aug-07 4:27 
QuestionError when adding a CustomValidator control dynamically Pin
limdv (DVLITS)22-Aug-07 10:47
limdv (DVLITS)22-Aug-07 10:47 
I have a dynamic report engine which builds the report parameters from the stored procedures on SQL server. Everything works fine except the CustomValidator controls. When I add one for a Date Validation function I get the error "Condtional Compilation Turned Off". Does anyone know what this is from?

From .aspx page
<div id="EditForm" runat="server">
<asp:Table ID="parmTable" runat="server" CellPadding="3" CellSpacing="3">
</asp:Table>
</div>

From .aspx.cs file
case NMTCConstants.DATE_TEXTBOX:
// New Text Box
TextBox newDateTextBox = new TextBox();
newDateTextBox.ID = name + "_" + fieldTypeCode;
if (fieldLength != "")
newDateTextBox.MaxLength = Convert.ToInt32(fieldLength);
// New Masked Edit Extender
AjaxControlToolkit.MaskedEditExtender meeNew = new MaskedEditExtender();
meeNew.ID = name + "_MEE";
meeNew.TargetControlID = name + "_" + fieldTypeCode;
meeNew.MaskType = MaskedEditType.Date;
meeNew.Mask = "99/99/9999";
// New Image For Calendar
Image iNew = new Image();
iNew.ID = name + "_I";
iNew.ImageUrl = "~/images/Calendar_scheduleHS.png";
// New Calendar Extender
AjaxControlToolkit.CalendarExtender ceNew = new CalendarExtender();
ceNew.ID = name + "_CE";
ceNew.TargetControlID = name + "_" + fieldTypeCode;
ceNew.Format = "MM/dd/yyyy";
ceNew.PopupButtonID = name + "_I";
// New Custom Validator
CustomValidator cvNew = new CustomValidator();
cvNew.ID = name + "_CV";
cvNew.ControlToValidate = name + "_" + fieldTypeCode;
cvNew.Display = ValidatorDisplay.None;
cvNew.EnableClientScript = true;
cvNew.ErrorMessage = "Invalid Date";
cvNew.ClientValidationFunction = "validateDate";
// New Validator Callout
AjaxControlToolkit.ValidatorCalloutExtender vceNew = new ValidatorCalloutExtender();
vceNew.ID = name + "_VCE";
vceNew.TargetControlID = name + "_CV";

// Add Table Row
newTblCell = new TableCell();
newTblCell.Controls.Add(newDateTextBox);
newTblCell.Controls.Add(meeNew);
newTblCell.Controls.Add(iNew);
newTblCell.Controls.Add(ceNew);
newTblCell.Controls.Add(cvNew);
newTblCell.Controls.Add(vceNew);
newTblRow.Cells.Add(newTblCell);
parmTable.Rows.Add(newTblRow);
break;


limdv
Programmer/Analyst DVLITS
QuestionModifying gridview data on the fly? Pin
Goalie3522-Aug-07 8:27
Goalie3522-Aug-07 8:27 
AnswerRe: Modifying gridview data on the fly? Pin
jcdevnet22-Aug-07 10:45
jcdevnet22-Aug-07 10:45 
QuestionLogin controls help Pin
AhmadRock22-Aug-07 6:31
AhmadRock22-Aug-07 6:31 
AnswerRe: Login controls help Pin
Big Ralph22-Aug-07 22:30
Big Ralph22-Aug-07 22:30 
QuestionDynamic Buttons, many to many? Pin
Gump61922-Aug-07 5:45
Gump61922-Aug-07 5:45 
AnswerRe: Dynamic Buttons, many to many? Pin
Eduard Keilholz22-Aug-07 6:25
Eduard Keilholz22-Aug-07 6:25 
GeneralRe: Dynamic Buttons, many to many? Pin
Gump61922-Aug-07 8:19
Gump61922-Aug-07 8:19 
QuestionCross-Page Posback fired via ASP.NET Code Pin
gus_br22-Aug-07 5:33
gus_br22-Aug-07 5:33 
AnswerRe: Cross-Page Posback fired via ASP.NET Code Pin
Eduard Keilholz22-Aug-07 6:21
Eduard Keilholz22-Aug-07 6:21 
GeneralRe: Cross-Page Posback fired via ASP.NET Code Pin
gus_br22-Aug-07 7:32
gus_br22-Aug-07 7:32 
AnswerRe: Cross-Page Posback fired via ASP.NET Code Pin
DavidNohejl22-Aug-07 11:04
DavidNohejl22-Aug-07 11:04 
QuestionSSL on Production not Dev Pin
Richard Mancuso22-Aug-07 5:01
Richard Mancuso22-Aug-07 5:01 
AnswerRe: SSL on Production not Dev Pin
Vasudevan Deepak Kumar22-Aug-07 5:08
Vasudevan Deepak Kumar22-Aug-07 5:08 
GeneralRe: SSL on Production not Dev Pin
Richard Mancuso22-Aug-07 8:06
Richard Mancuso22-Aug-07 8:06 
QuestionSaving application configuration in database Pin
astv22-Aug-07 4:47
astv22-Aug-07 4:47 
QuestionExporting to Excel in ASP.Net Pin
meeram39522-Aug-07 4:19
meeram39522-Aug-07 4:19 
AnswerRe: Exporting to Excel in ASP.Net Pin
Vasudevan Deepak Kumar22-Aug-07 4:31
Vasudevan Deepak Kumar22-Aug-07 4:31 

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.