Click here to Skip to main content
15,888,984 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Problem to access localhost(Email sending) Pin
N a v a n e e t h6-Apr-09 15:44
N a v a n e e t h6-Apr-09 15:44 
QuestionJavascript not being able to access a web service. Pin
Steve Holdorf6-Apr-09 12:06
Steve Holdorf6-Apr-09 12:06 
AnswerRe: Javascript not being able to access a web service. Pin
Christian Graus6-Apr-09 16:56
protectorChristian Graus6-Apr-09 16:56 
AnswerRe: Javascript not being able to access a web service. Pin
Steve Holdorf7-Apr-09 3:39
Steve Holdorf7-Apr-09 3:39 
QuestionI want my content be opened below my title link Pin
Saba026-Apr-09 10:18
Saba026-Apr-09 10:18 
AnswerRe: I want my content be opened below my title link Pin
Christian Graus6-Apr-09 11:10
protectorChristian Graus6-Apr-09 11:10 
GeneralForms Authentication - Login Page From Subdirectory Pin
tjg05246-Apr-09 9:39
tjg05246-Apr-09 9:39 
QuestionWhy the Custom Validation is firing wrongly Pin
meeram3956-Apr-09 4:44
meeram3956-Apr-09 4:44 
I have two FileUpload button in my form which I put two custom validators. The issue is, when I click on first upload button, the second one also fires and says that it is required field or the similar message. Any idea what is going on?

I need to fire only those custom validator belonging to that particualr control. Here is the code:
<asp:FileUpload ID="MPNCPNFileUpload" runat="server" />
                   <asp:Button ID="MPNCPNFileUploadButton" runat="server" OnClick="TabFileUploadButton_Click"
                       Text="Upload" /></td></tr>
                   <tr><td><asp:CustomValidator ID="TabFileUploadErrorCustomValidator" runat="server" Display="Dynamic"
                       ErrorMessage="CustomValidator"
                       OnServerValidate="TabFileUploadedCustomValidator_ServerValidate">TextFile with MPN-CPN Details should
                       be uploaded</asp:CustomValidator>


<asp:FileUpload ID="DocumentFileUpload" runat="server" />
                    <asp:Button ID="DocumentUploadButton" runat="server" OnClick="DocumentUploadButton_Click" 
                        Text="Upload" /></td></tr>                 
                    <tr><td><asp:CustomValidator ID="DocumentUploadedCustomValidator" runat="server" Display="Dynamic"
                        ErrorMessage="CustomValidator" 
                        OnServerValidate="DocumentUploadedCustomValidator_ServerValidate">Document 
                    must be uploaded</asp:CustomValidator>


protected void TabFileUploadedCustomValidator_ServerValidate(object source, ServerValidateEventArgs args)
    {
        CustomValidator cv = (CustomValidator)source;
        args.IsValid = !String.IsNullOrEmpty(System.Convert.ToString(ViewState["PartsDetailFileName"]));
        
    }


protected void DocumentUploadedCustomValidator_ServerValidate(object source, ServerValidateEventArgs args)
    {
        CustomValidator cv = (CustomValidator)source;
        args.IsValid = !String.IsNullOrEmpty(System.Convert.ToString(ViewState["DocumentFileId"]));
    }


pls help.

Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.

AnswerRe: Why the Custom Validation is firing wrongly Pin
RyanMorris6-Apr-09 6:29
RyanMorris6-Apr-09 6:29 
GeneralRe: Why the Custom Validation is firing wrongly Pin
meeram3956-Apr-09 6:44
meeram3956-Apr-09 6:44 
GeneralRe: Why the Custom Validation is firing wrongly Pin
RyanMorris6-Apr-09 7:18
RyanMorris6-Apr-09 7:18 
GeneralRe: Why the Custom Validation is firing wrongly Pin
meeram3957-Apr-09 22:19
meeram3957-Apr-09 22:19 
AnswerRe: Why the Custom Validation is firing wrongly Pin
Jain Vijay6-Apr-09 19:02
Jain Vijay6-Apr-09 19:02 
GeneralRe: Why the Custom Validation is firing wrongly Pin
meeram3957-Apr-09 22:19
meeram3957-Apr-09 22:19 
AnswerRe: Why the Custom Validation is firing wrongly Pin
Hajab6-Apr-09 19:45
Hajab6-Apr-09 19:45 
GeneralRe: Why the Custom Validation is firing wrongly Pin
meeram3957-Apr-09 22:18
meeram3957-Apr-09 22:18 
QuestionCan't send mail on localhost Pin
Yosh_6-Apr-09 4:21
professionalYosh_6-Apr-09 4:21 
AnswerRe: Can't send mail on localhost Pin
Yusuf6-Apr-09 4:33
Yusuf6-Apr-09 4:33 
GeneralRe: Can't send mail on localhost Pin
Yosh_6-Apr-09 4:38
professionalYosh_6-Apr-09 4:38 
GeneralRe: Can't send mail on localhost Pin
Yusuf6-Apr-09 4:49
Yusuf6-Apr-09 4:49 
AnswerRe: Can't send mail on localhost Pin
PauloCastilho6-Apr-09 5:00
PauloCastilho6-Apr-09 5:00 
AnswerRe: Can't send mail on localhost Pin
Christian Graus6-Apr-09 11:11
protectorChristian Graus6-Apr-09 11:11 
AnswerRe: Can't send mail on localhost Pin
nithydurai6-Apr-09 19:56
nithydurai6-Apr-09 19:56 
GeneralRe: Can't send mail on localhost Pin
archit300020-Apr-09 0:24
archit300020-Apr-09 0:24 
QuestionDate Conversion Problem Pin
specialdreamsin6-Apr-09 3:12
specialdreamsin6-Apr-09 3:12 

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.