Click here to Skip to main content
15,900,725 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHow to close a webform while opening another webform?? Pin
biswa477-Apr-08 19:59
biswa477-Apr-08 19:59 
GeneralRe: How to close a webform while opening another webform?? Pin
Christian Graus7-Apr-08 20:28
protectorChristian Graus7-Apr-08 20:28 
GeneralRe: How to close a webform while opening another webform?? Pin
Ashish Sehajpal7-Apr-08 21:05
Ashish Sehajpal7-Apr-08 21:05 
Questionhow an app.config connection string tag or we.config file connection string tag can be locked. Pin
lakshmichawala7-Apr-08 19:56
lakshmichawala7-Apr-08 19:56 
AnswerRe: how an app.config connection string tag or we.config file connection string tag can be locked. Pin
N a v a n e e t h7-Apr-08 20:06
N a v a n e e t h7-Apr-08 20:06 
GeneralRe: how an app.config connection string tag or we.config file connection string tag can be locked. Pin
lakshmichawala7-Apr-08 20:12
lakshmichawala7-Apr-08 20:12 
GeneralRe: how an app.config connection string tag or we.config file connection string tag can be locked. Pin
Christian Graus7-Apr-08 20:29
protectorChristian Graus7-Apr-08 20:29 
GeneralIssue with Validator control Pin
Vipul Mehta7-Apr-08 19:56
Vipul Mehta7-Apr-08 19:56 
Hi,

I am facing certain issues with ASP.NET validator control (to be specific RangeFieldValidator - RFV & CustomFieldValidator CFV)

I have implemented RFV on a text box which checks that the value entered in the text box should not be less that 0 & the CFV check if the selected value on a particular drop down (ddlChannel) is either "A" OR "B" the value must be selected in another drop down (ddlLocation) related to that drop

But when my page gets loaded for the first time & I click the "Save" button, these validators dont get triggered & then if there is any post pack on that page the validators start working as expected.

Below is my RFV & CFV logic:
RFV Logic
========
<asp:RangeValidator ID="vldMarginRange" ControlToValidate="txtMargin"
Type="Integer" MinimumValue="1" MaximumValue="99" Enabled="True" runat="server">* You must enter a whole number between 1 and 99</asp:RangeValidator>

CFV Logic
========
<asp:CustomValidator id="CustomValidator1" runat="server" ControlToValidate="ddlWBSLocation"
CssClass="ms-descriptiontext" ClientValidationFunction="CheckWBSLocation"
Display="Dynamic">
* You must select a Location for the Contract Template "A" or "B"
</asp:CustomValidator>

function CheckWBSLocation(source, arguments)
{
var channel = document.forms[0].elements.<%= ddlChannel.ClientID %>;
var WBSLocation = document.forms[0].elements.<%= ddlWBSLocation.ClientID %>;

if(channel.value == 'A' || channel.value == 'B')
{
if (WBSLocation.selectedIndex == 0)
{
arguments.IsValid = false;
return;
}
}
arguments.IsValid = true;
}

Is there setting that I might be missing?

Regards,
Vipul Mehta

GeneralRe: Issue with Validator control Pin
Christian Graus7-Apr-08 20:30
protectorChristian Graus7-Apr-08 20:30 
GeneralRe: Issue with Validator control Pin
Vipul Mehta7-Apr-08 21:08
Vipul Mehta7-Apr-08 21:08 
GeneralRe: Issue with Validator control Pin
Christian Graus7-Apr-08 21:15
protectorChristian Graus7-Apr-08 21:15 
GeneralRe: Issue with Validator control Pin
Vipul Mehta7-Apr-08 21:31
Vipul Mehta7-Apr-08 21:31 
GeneralRe: Issue with Validator control Pin
Christian Graus7-Apr-08 21:34
protectorChristian Graus7-Apr-08 21:34 
GeneralRe: Issue with Validator control Pin
eyeseetee7-Apr-08 21:36
eyeseetee7-Apr-08 21:36 
GeneralRe: Issue with Validator control Pin
Vipul Mehta7-Apr-08 21:56
Vipul Mehta7-Apr-08 21:56 
GeneralRe: Issue with Validator control Pin
eyeseetee7-Apr-08 22:00
eyeseetee7-Apr-08 22:00 
GeneralRe: Issue with Validator control Pin
Vipul Mehta7-Apr-08 22:03
Vipul Mehta7-Apr-08 22:03 
QuestionHow to get Virtual Path of Web Service [modified] Pin
samrat.net7-Apr-08 18:19
samrat.net7-Apr-08 18:19 
AnswerRe: How to get Virtual Path of Web Service Pin
Christopher Duncan8-Apr-08 17:55
Christopher Duncan8-Apr-08 17:55 
GeneralCannot get IIS pickup directory Pin
Piyush Vardhan Singh7-Apr-08 18:18
Piyush Vardhan Singh7-Apr-08 18:18 
GeneralRe: Cannot get IIS pickup directory Pin
N a v a n e e t h7-Apr-08 18:38
N a v a n e e t h7-Apr-08 18:38 
GeneralRe: Cannot get IIS pickup directory Pin
Piyush Vardhan Singh7-Apr-08 19:10
Piyush Vardhan Singh7-Apr-08 19:10 
GeneralRe: Cannot get IIS pickup directory Pin
N a v a n e e t h7-Apr-08 19:21
N a v a n e e t h7-Apr-08 19:21 
QuestionDynamically added controls don't appear in View's control collection. (VB) Pin
WebMaster7-Apr-08 15:08
WebMaster7-Apr-08 15:08 
GeneralRe: Dynamically added controls don't appear in View's control collection. (VB) Pin
Christian Graus7-Apr-08 18:03
protectorChristian Graus7-Apr-08 18:03 

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.