.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Alert Popup only happening once

Posted By:      Posted Date: September 06, 2010    Points: 0   Category :ASP.Net
I have an alertbox that fires when btnCreateorEdit is clicked.The problem is it only seems to happen the first time. I put a breakpoint in the script and it dies break eachtime the button is pressed. Why doesn't the alert happen every time? <%@ Page Title="Deal Milestones" Language="VB" MasterPageFile="~/Protected/ThreeColLiquid.master" AutoEventWireup="false" EnableViewState="true" CodeFile="DealMilestones.aspx.vb" Inherits="Protected_DealMilestones" EnableTheming="true" Theme="PrimaryTheme" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> <%@ MasterType virtualPath="~/protected/ThreeColLiquid.master"%> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder_Head" Runat="Server"> <script type="text/javascript"> $(document).ready(function() { $('input[id$=btnCreateorEdit]').click(function() { alert('Milestone created/updated.'); }); }); </script> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder_Main" Runat="Server"> <asp:Label ID="lblMilestones" CssClass="lab

View Complete Post

More Related Resource Links

Alert popup on Gridview Textbox Click

Hi,I am trying to make a Javascript Alert appear when someone clicks on a textbox that is part of a Gridview. the textbox is an Item template and I have an onclick="NotePopup()" in the TextBox properties. I am having trouble grabbing the correct ID of the text box, because it is nested inside a gridview. I have been looking around on Google for a solution but none of the responses are working for me.  The gridview will have multiple rows, so each textbox that could potentially be clicked will have a different ID, is there any way to pass the correct ID to the Javascript, or have the Javascript function grab the correct ID?I did use var Control = '<%= GridView1.ClientID %>';then cut and paste the ID from ViewSource of a textbox and append it to the Control Variable,  to test out the popup and it does workThanks for your helpChris

putting new line character on alert popup


I am using the following piece of code for an alert popup. I want to insert some new line characters to make the alert better readable, but when I insert an \n in the sentence, the alert popup just does not show up.

Please suggest what is the best way to break line after the pariod.

if (CaseOrders.Count < 1)
            alertString = "alert('Tests ordered did not match any Tests/Panels in ET. "+" MessageControl ID=" + MessageControlID + "');";
            Page.ClientScript.RegisterStartupScript(Type.GetType("System.String"), "ALERT", alertString, true);

Thanks for your help.

Using ATLAS PopUp Control with Calendar inside the GridView Control

In this video tutorial Mohammad demonstrates how you can access the Calendar control which is displayed using the ATLAS PopUp control inside the GridView control.

Modal popup window in ASP.Net

A Masked div or modal popup window is a child window created from the parent window which prevents the user from interacting with parent window before he returns to the parent application.

replacing ok and cancel button of an alert message with YES an NO button in asp.net web application.


i want to replace ok and cancel button of an alert message with YES an NO button in asp.net web application.When a user will click yes the data will be saved in the database and if user clicks that will act as a reset button and do not save the data in database and the control will move with as usual to the redirect page.Any pointers will be highly appreciated.I am usin g C# language.

Open PopUp Window From Error httpModule


I would like to open a popup window from the assembly to present the information to the user. Does anyone know if this is possible, I am presently doing the following:

        WriteLine("body {font-family:""Verdana"";font-weight:normal;font-size: .7em;color:black; background-color:white;}")
        WriteLine("b {font-family:""Verdana"";font-weight:bold;color:black;margin-top: -5px}")
        WriteLine("H1 { font-family:""Verdana"";font-weight:normal;font-size:18pt;color:red }")
        WriteLine("H2 { font-family:""Verdana"";font-weight:normal;font-size:14pt;color:maroon }")
        WriteLine("pre {font-family:""Lucida Console"";font-size: .9em}")

What's happening with JScript.NET


Years ago I had an interest in this language (which I think is a cool achievement).

There was writing on the wall that it was not a first class citizen, it never got editing support in VS.

I haven't given it much thought for years.

There is a compiler for it in .NET 2.  (jsc.exe)

I see that it's slated be in .NET 4 (though the DLR language managed JScript isn't).

I used the language in .NET 1 for it's eval and I see that others are doing the same.  (I also see that there are at least a few commercial uses, like Sony in Sound Forge and Vegas.)

Does anybody here have a good handle on the spectrum of people who are using it, the attitude of management in MS and any IDE support for the language?

Stay Alert: Use Managed Code To Generate A Secure Audit Trail


In today's security-conscious environments, a reliable audit trail is a valuable forensic tool The Windows Server 2003 operating system provides features that let you enable a wide range of applications to make use of auditing functionality. This article looks at auditing from the operating system perspective and describes a sample managed code implementation that will allow you to add auditing to your own server applications.

Mark Novak

MSDN Magazine October 2005

Open different page using Ajax Modal PopUp Extender Control

The article Open different page using Ajax Modal PopUp Extender Control was added by Chintan Dave on Thursday, July 15, 2010.

You May use Modal Popup Extender to open some part of the page as Popup. But there we don't have any property to open other html or aspx page in Popup window.We can do it using IFrame control. What we have to do, just add IFrame control in Panel that

Ajax Popup Extender: Crashing the Browser



    I am using Ajax Popup extender as confirmation window. In my page, I am having multiple post backs for different cases. If I display ajax Popup extender, first few times it is working fine. After that, It is crashing the browser and i have to close the browser or it is closing the browser automatically.

Any Idea why it is happening? Did i miss anything?

My App details

IE Version : 6.0

.Net version: 3.5

Ajax version: 3.0.30512.20315



Problem when displaying a popup window

Hi all,
I am working on a project in which when I clicked a hyperlink a pop up window has to be displayed for 2 pages.
But at first when i did this in javascript it worked, later after i finished the whole coding suddenly an error box displayed that there is an error in webpage and want to debug

want to launch modal Popup from created User Event handler




I have a create user wizard on my page and in the event handler (Created User) I get extra information from the user

via textboxes within the aspx etc.


I then do a response.redirect to another page.

What I want to happen is this


When the CreatedUser Event is fired, I  want a Modal Popup to show up with a message Processing your registration.

once the registration code is processed it will close and the users get redirected.


On my ASPX I have the Modal PopUp and a Panel.

In the code behind in the handler I put ModalPop.show()


but this does not work.


thanks for any suggestions



Conditional alert box in view


When a view is shown, base on a simple conition in the model (Model.RenewalDate < DateTime.Today), I need to pop up an alert box saying 'Membership renewal is overdue'. There's no process required beyond that. Just a simply popup information box, then continue as normal.

I know the java to create an alert, or I could use the jquery modal, not bothered, but I can't work out the code in the view (yeah, I know logic doesn't belong in a view, but this really is a view concern as there's no functionality required beyond the message).

Sharepoint alert error



Something strange is happening here. I have a list whose itens alerts are not sending, but iclusion or permissions alerts for the same list are ok.

The strange is: I search for a fix, then I restarted the Windons Sharepoint services Timer, reset the alerts by stsadm tool (stsadm -o setproperty). the timer job status is ok too. and I just receive this error for this list, ONLY for this list...the other list I can receive the e-mails normally.

Can someone help me?



Documents becoming "locked for editing" by self, when no other edits are happening


On our SharePoint 2007 SP1 farm, intermittently, when a user opens a Microsoft Office document (usually Excel) for editing by single-clicking its name in IE, the following error dialog mysteriously occurs when Office opens:

File in Use
myfile.xlsm is locked for editing
by 'domainname\yourname'
Open 'Read-Only' or click 'Notify' to open read-only and receive notification
when the document is no longer in use.

The problem is, nobody else is editing this document, and the identified user ('domainname\yourname') is the name of the current user (the person opening the document right now)!

This is not "user error", e.g., the same user editing the file from two different computers, or the file being checked out. This is a real, intermittent problem. If the same user opens the same file again 1 minute later, the problem might be gone, even though nothing changed.

It's almost as if some kind of intermittent race condition is happening, where the document gets locked too early...?

We are completely stumped. Any ideas?

Other details:
- SharePoint servers (1 front-end, 1 query, 1 indexing) are all Windows 2003 Server
- SQL Server 2008 on database server
- Clients are mostly Windows XP
- Our versioning model is:
--- Content approval: not required

Modal Popup disappears after showing in IE7


Currently having problems with a modal popup. When you click its target control it will show up the hide itself again.  Thanks. Will try to add some more details later.

Size of jQuery datepicker popup


I have several mvc applications all using the jquery datepicker. One of them the popup appears double size (height and width), obvously it's something I've inadvertantly changed, probably in the css, but I can't figure out what it is. I have tried/applied a few themes and css/site master from the mvc code templates on codeplex, but I just can't figure out what did this one.

Any ideas ?

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend