Click here to Skip to main content
15,303,522 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: inserting data in an excel file using ASP.NET (VB) Pin
John_Reese12-Jan-15 5:29
MemberJohn_Reese12-Jan-15 5:29 
QuestionChanging Resource files programmatically in ASP.Net 4.5 Pin
meeram3912-Jan-15 0:48
professionalmeeram3912-Jan-15 0:48 
AnswerRe: Changing Resource files programmatically in ASP.Net 4.5 Pin
Afzaal Ahmad Zeeshan12-Jan-15 4:26
mveAfzaal Ahmad Zeeshan12-Jan-15 4:26 
QuestionNeed to understand a signalr chatting code Pin
Tridip Bhattacharjee11-Jan-15 23:49
professionalTridip Bhattacharjee11-Jan-15 23:49 
AnswerRe: Need to understand a signalr chatting code Pin
deepankarbhatnagar12-Jan-15 1:13
professionaldeepankarbhatnagar12-Jan-15 1:13 
GeneralRe: Need to understand a signalr chatting code Pin
Tridip Bhattacharjee12-Jan-15 20:40
professionalTridip Bhattacharjee12-Jan-15 20:40 
AnswerRe: Need to understand a signalr chatting code Pin
Dar Brett13-Jan-15 3:06
MemberDar Brett13-Jan-15 3:06 
QuestionGIF image as progressbar using AJAX modalpopupExtender Pin
sudevsu8-Jan-15 5:17
Membersudevsu8-Jan-15 5:17 
My GIF image doesn't stop rotating. It continues just like that. Also If there is some txtbox empty and is required still it shows up Progress and keeps on rotating.
Here is my Code. Can anyone in here help me with this
<script language="javascript" type="text/javascript">
    function StartProgressBar() {
        var myExtender = $find('ProgressBarModalPopupExtender');
        myExtender.show();
        return true;
    }
    function StopProgressBar() {
        var myExtender = $find('ProgressBarModalPopupExtender');
        myExtender.hide();
        return true;
    }

    function Valid() {
        if (Page_ClientValidate("Required") == true) {
            StartProgressBar()
        }
        else {
            alert("Please fill the Required fields");
        }

    }
</script>

XML
<asp:Button ID="btnSubmit" runat="server" Text="Submit" CssClass="Button" OnClientClick="Valid()" />

 <div>
             <cc1:ModalPopupExtender ID="ProgressBarModalPopupExtender" runat="server" BackgroundCssClass="ModalBackground" behaviorID="ProgressBarModalPopupExtender"  TargetControlID="hiddenField" PopupControlID="Panel1" />
             <asp:Panel ID="Panel1" runat="server" Style="display: none; background-color: #C0C0C0;">

                    <asp:Image ID="Image3" ImageUrl="~/Images/712Blue.GIF" runat="server" AlternateText="" />

                </asp:Panel>

                <asp:HiddenField ID="hiddenField" runat="server" />
 </div>


VB
Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSubmit.Click
    If Page.IsValid Then
     Thread.Sleep(300)
     ProgressBarModalPopupExtender.Hide()
     ClearAll()
    End If
 End Sub

Your help is much appreciated.
Thanks
Happy Coding!

AnswerRe: GIF image as progressbar using AJAX modalpopupExtender Pin
jkirkerx8-Jan-15 7:30
professionaljkirkerx8-Jan-15 7:30 
GeneralRe: GIF image as progressbar using AJAX modalpopupExtender Pin
sudevsu8-Jan-15 10:21
Membersudevsu8-Jan-15 10:21 
GeneralRe: GIF image as progressbar using AJAX modalpopupExtender Pin
jkirkerx8-Jan-15 11:49
professionaljkirkerx8-Jan-15 11:49 
AnswerRe: GIF image as progressbar using AJAX modalpopupExtender Pin
Vimalsoft(Pty) Ltd12-Jan-15 20:51
professionalVimalsoft(Pty) Ltd12-Jan-15 20:51 
QuestionIf else condition fails, in VB.net Pin
sudevsu7-Jan-15 8:33
Membersudevsu7-Jan-15 8:33 
GeneralRe: If else condition fails, in VB.net Pin
PIEBALDconsult7-Jan-15 9:00
professionalPIEBALDconsult7-Jan-15 9:00 
GeneralRe: If else condition fails, in VB.net Pin
sudevsu7-Jan-15 9:14
Membersudevsu7-Jan-15 9:14 
GeneralRe: If else condition fails, in VB.net Pin
sudevsu7-Jan-15 9:42
Membersudevsu7-Jan-15 9:42 
GeneralRe: If else condition fails, in VB.net Pin
PIEBALDconsult7-Jan-15 9:44
professionalPIEBALDconsult7-Jan-15 9:44 
AnswerRe: If else condition fails, in VB.net Pin
sudevsu7-Jan-15 10:05
Membersudevsu7-Jan-15 10:05 
GeneralRe: If else condition fails, in VB.net Pin
Vimalsoft(Pty) Ltd12-Jan-15 0:29
professionalVimalsoft(Pty) Ltd12-Jan-15 0:29 
GeneralRe: If else condition fails, in VB.net Pin
sudevsu12-Jan-15 2:38
Membersudevsu12-Jan-15 2:38 
GeneralRe: If else condition fails, in VB.net Pin
Vimalsoft(Pty) Ltd12-Jan-15 3:42
professionalVimalsoft(Pty) Ltd12-Jan-15 3:42 
GeneralRe: If else condition fails, in VB.net Pin
sudevsu12-Jan-15 4:32
Membersudevsu12-Jan-15 4:32 
GeneralRe: If else condition fails, in VB.net Pin
Vimalsoft(Pty) Ltd12-Jan-15 5:12
professionalVimalsoft(Pty) Ltd12-Jan-15 5:12 
AnswerRe: If else condition fails, in VB.net Pin
ZurdoDev7-Jan-15 9:11
professionalZurdoDev7-Jan-15 9:11 
QuestionError on clicking Linkbutton of Gridview Pin
sudevsu7-Jan-15 6:47
Membersudevsu7-Jan-15 6:47 

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.