Click here to Skip to main content
15,914,452 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: stored procedure Pin
baselanfouqa20-Dec-09 1:36
baselanfouqa20-Dec-09 1:36 
QuestionAuto complete Extender in asp.net Pin
Any_India15-Dec-09 19:54
Any_India15-Dec-09 19:54 
AnswerRe: Auto complete Extender in asp.net Pin
Abhishek Sur15-Dec-09 21:38
professionalAbhishek Sur15-Dec-09 21:38 
GeneralRe: Auto complete Extender in asp.net [modified] Pin
Any_India15-Dec-09 22:22
Any_India15-Dec-09 22:22 
QuestionCompreValidator for Textbox and FileUpload Pin
anada888615-Dec-09 19:30
anada888615-Dec-09 19:30 
AnswerRe: CompreValidator for Textbox and FileUpload Pin
sashidhar15-Dec-09 20:18
sashidhar15-Dec-09 20:18 
GeneralRe: CompreValidator for Textbox and FileUpload Pin
anada888615-Dec-09 20:43
anada888615-Dec-09 20:43 
GeneralRe: CompreValidator for Textbox and FileUpload Pin
sashidhar15-Dec-09 21:46
sashidhar15-Dec-09 21:46 
anada8886 wrote:
I thought if it can be done using CompareValidator.

the answer is no ..!You cant do it with comparevalidator..!
the compare validator checks if both the values are identical or not ..! thts it..!
<script language ="javascript" type ="text/javascript" >
    function  CheckEmpty() {
        var fromaddress = document.getElementById('<%= TextBox1.ClientID %>').value;
        var fromaddress1 = document.getElementById('<%= FileUpload1.ClientID %>').value;
        if (fromaddress=="" && fromaddress1=="") {

            alert("Should not be empty");
        }
    
    }
    
    </script>
    <div>

<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
       <asp:FileUpload ID="FileUpload1" runat="server" />
       <asp:CustomValidator ID="CustomValidator1" runat="server"
           ErrorMessage="should not be blank..!"
           ClientValidationFunction="CheckEmpty"></asp:CustomValidator>

   </div>
   <asp:Button ID="Button1" runat="server" Text="Button" />
   </form>



LatestArticle :Log4Net

Why Do Some People Forget To Mark as Answer .If It Helps.

GeneralRe: CompreValidator for Textbox and FileUpload Pin
anada888615-Dec-09 22:24
anada888615-Dec-09 22:24 
GeneralRe: CompreValidator for Textbox and FileUpload Pin
sashidhar15-Dec-09 22:35
sashidhar15-Dec-09 22:35 
GeneralRe: CompreValidator for Textbox and FileUpload Pin
anada888615-Dec-09 22:44
anada888615-Dec-09 22:44 
GeneralRe: CompreValidator for Textbox and FileUpload Pin
sashidhar15-Dec-09 22:46
sashidhar15-Dec-09 22:46 
GeneralRe: CompreValidator for Textbox and FileUpload Pin
anada888615-Dec-09 22:55
anada888615-Dec-09 22:55 
QuestionGridview edit cell Pin
Nekkantidivya15-Dec-09 18:20
Nekkantidivya15-Dec-09 18:20 
AnswerRe: Gridview edit cell Pin
Abhijit Jana15-Dec-09 18:30
professionalAbhijit Jana15-Dec-09 18:30 
QuestionBest ASP.NET Forum software and ASP.NET CMS? Pin
Shahdat Hosain15-Dec-09 18:15
Shahdat Hosain15-Dec-09 18:15 
AnswerRe: Best ASP.NET Forum software and ASP.NET CMS? Pin
Abhijit Jana15-Dec-09 18:31
professionalAbhijit Jana15-Dec-09 18:31 
GeneralRe: Best ASP.NET Forum software and ASP.NET CMS? Pin
Shahdat Hosain15-Dec-09 19:14
Shahdat Hosain15-Dec-09 19:14 
GeneralRe: Best ASP.NET Forum software and ASP.NET CMS? Pin
Abhijit Jana15-Dec-09 19:24
professionalAbhijit Jana15-Dec-09 19:24 
GeneralRe: Best ASP.NET Forum software and ASP.NET CMS? Pin
Abhishek Sur15-Dec-09 21:25
professionalAbhishek Sur15-Dec-09 21:25 
GeneralRe: Best ASP.NET Forum software and ASP.NET CMS? Pin
Shahdat Hosain15-Dec-09 22:21
Shahdat Hosain15-Dec-09 22:21 
GeneralRe: Best ASP.NET Forum software and ASP.NET CMS? Pin
sashidhar15-Dec-09 22:43
sashidhar15-Dec-09 22:43 
GeneralRe: Best ASP.NET Forum software and ASP.NET CMS? Pin
Kentico18-Dec-09 1:47
Kentico18-Dec-09 1:47 
QuestionPaging in Panel.. Pin
Hema Bairavan15-Dec-09 18:00
Hema Bairavan15-Dec-09 18:00 
AnswerRe: Paging in Panel.. Pin
Deepak the Cool15-Dec-09 18:15
Deepak the Cool15-Dec-09 18:15 

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.