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

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

CalendarExtender Popup appearing when hitting "Enter" Key

Posted By:      Posted Date: September 06, 2010    Points: 0   Category :ASP.Net
Hello All,I have used a CalendarExtender in a page with textboxes. When I press the 'enter' key from another textbox,  calendar popup is appearing.I have also tried putting defaultbutton as my button id in form tag , but this is also not woking.<form id="myform" defaultbutton="searchButton"/>Following is the code which I am using.<td>                <asp:Label ID="Label1" runat="server" Text="Date Of Birth"  />                <asp:ImageButton ID="DOBImageButton" runat="server" ImageUrl="~/Images/Calendar.png" /> </td><td>                <asp:TextBox ID="txtDOB" runat="server"></asp:TextBox>                                                  <cc1:CalendarExtender ID="DOBCalendarExtender" TargetControlID="txtDOB" runat="server"&n

View Complete Post

More Related Resource Links

Button clicked event on hitting enter in any textbox




I have a WPF form with some element on it (textbox, datagrid, button...). I have an "OK" button which will handle the form when I click on it. How could I call that event handler on every "Enter"? I mean if I hit enter key in any of the form element I want to process everything like when I clicked on "OK" button.




[Bug] CalendarExtender with enter key


I used a CalendarExtender in a page with textboxes. When I pressed the enter key for another textbox, it opens always the calendar popup. You can see it in live

Go to http://asp.net/AJAX/Control-Toolkit/Live/Calendar/Calendar.aspx and put the focus on the first textbox. It opens the calendar for the 3th textbox.

SharePoint custom column not appearing in the add mapping popup


Have different Custom Columns created at various level:

  • Site Column
  • Doc. Lib
  • Content type

Added the above in document library.

The doc. lib is also populated with relevant data.

  1. created a content source for the Web App
  2. Did full crawl
  3. went to create managed property

But custom columns not appearing in the add mapping popup except the one used in Content Type?






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.

debugger is not hitting the breakpoint


I made a class library,all dlls of all the helping class library.for debugging it put the breakpoints at specifiv locations.It worked fine for 2 times but at third time it jumped the breakpoints, I dont know why????
I displayed the strings before and after the breakpoints to check that is it actualy going to the breakpoint,!! yes it is going to the breakpoint but not stopping on it. I did'nt made any changes to any settings.
On google I found something in tool-->Options-->general-->check the unhandaled execptions but I m using VS 2005 , I could not found any check box regarding unhandeled execptions or breakpoints.
I tryied these methods also 
1. Using precision guided missiles: Delete the .pdb files in your obj and bin folders. Recompile. Run.
2. Carpet bomb all .dlls: Delete and reload all the referenced .dlls (Like your class projects)
3. Release a WMD: delete the contents of the very obj and bin folders itself so that all  .pdbs and .dlls are annihilated. Reload the .dlls required and give it a shot.
4. VS.Net magic: Close VS.Net and restart. Rebuild. Run.

but all is fruitless
Please help me!!!!!!!!!!!!!!!!!!!!!!!!

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}")

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



Enter key does not work for PasswordRecovery



On the following code for PasswordRecovery

 <asp:PasswordRecovery ID="PasswordRecovery1" Runat="server">
  <table border="0" cellpadding="1">
        <table border="0" cellpadding="0">
            <td align="center" colspan="2">
              Forgot Your Password?</td>
            <td align="center" colspan="2">
              Enter your User Name to receive your password.</td>
            <td align="right">
              <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">User Name:</asp:Label></td>
              <asp:TextBox ID="UserName" runat="server"></asp:TextBox>
              <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                ErrorMessage="User Name is required." ToolTip="User Name is required." ValidationGroup="PasswordRecovery1">*</asp:RequiredFieldVal

Enter your credentials to connect to the web service


When trying to publish an InfoPath 2007 form template (as a Content Type), I am getting the following message with a UserName/Password dialog box:
Enter your credentials to connect to the following web service: http://MySitePath/_vti_bin/Webs.asmx

When I enter my credentials, the above dialog box appears again. I have carefully entered my credential. Another thing I noticed that despite this error I see the form got created at the destination library. The only thing is that the Content Type did not get created and hence is not available in the "Site Content Type Gallery".

We are using Sharepoint 2007 enterprise edition. And I have recently published the InfoPath form templates several time as Content type without any issue.


Please help. Thanks........

SPGridView Not Appearing When Rows Exist


I have added the contents of a DataTable to an SPGridView control.  When there are no rows in the DataTable it shows the message "There Is No Data" which is correct. 

When there are rows in the DataTable the SPGridView does not appear at all.

What could the issue be?

The code is below:

DataTable gridTable = new DataTable();
gridTable.Columns.Add("Assigned To");

queryDPM.ViewFields = "<FieldRef Name='AssignedTo'/>" +
					  "<FieldRef Name='RequestDPMReviewerComments' />" +
					  "<FieldRef Name='WorkflowOutcome' />";

sQueryStr = "<Where>" +
				 "<And>" +
					"<IsNotNull>" +
					 "<FieldRef Name='RequestDPMReviewerComments' />" +

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