ASP.NET AJAX Forum Posts

Ajax.net not working on mozilla firefox
Im implementing a simple form with ajax to warn the user if email has been used or not for registration, and it looks to be working fine with IE but mozilla does a full page postback and refreshes the whole page. I already tried changing to updatemode to conditional, all the triggers are set as async, etc but mozilla keeps doing the same, Im sure it is a known problem I may not be the first one facing this problem so i guess there is a simple workaround for this. Somebody knows? Read More...
Opening show ModalDialog from button click in update panel
Hi all, I'm trying to show "Progress" Image...on click of a button with in the Update panel, the image is getting displayed, but the modal dialog is not opening... the aspx is posted below... <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> </head> <body> <form id="form1" runat="server"> <asp:ScriptManager ID="ScriptManager1" runat="server" /> <div> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <asp:Button ID="Button1" runat="server" OnClick ="Button1_Click" Text="Button" Read...
dispalaying alert box while using with update panel
Hi, I have used Response.Write("<script language='javascript'>alert('Enter correct Email and Password');</script>"); } code in code behind for displaying an alert box.But this code is not work when i have added an update panel.I have also tried usin registerclientscript.but same .How can i display an alert box when using an update panel? Read More...
Getting Microsoft JScript runtime error
I used the following function in my ASP.Net Project (which contains ajax controls ) Protected Sub btnExport_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnExport.Click 'ExportToExcel() Response.Clear() Response.AddHeader("content-disposition", "attachment;filename=FileName.xls") Response.Charset = "" ' If you want the option to open the Excel file without saving then ' comment out the line below Response.Cache.SetCacheability(HttpCacheability.NoCache) Response.ContentType = "application/vnd.xls" Dim stringWrite As New System.IO.StringWriter() Dim htmlWrite As System.Web.UI.HtmlTextWriter = New HtmlTextWriter(stringWrite) gvDisplay.RenderControl(htmlWrite) Response.Write(stringWrite...
Failed to create designer Systems.web.ui.scriptmanager version 1.0.61025
Hi, I migrated a project from vs 2005 to vs 2008, in the vs 2008 project we will continue to use framework 2.0 only so i didnt migrated to 3.5 When I open a page in 2008 I got this problem in the scriptmanager, can you please help me to solve it? I found this on the web.config <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> Read More...
ScriptManager.RegisterStartupScript, window.open
In my login page, after login, open default.aspx page with ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "_opener", "window.open('Default.aspx');", true); but in default.aspx. on button click event ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "_opener", "window.open('Default2.aspx');", true); not running. How to run window.open from my file which is opened with ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "_opener", "window.open('Default.aspx');", true); Thank you, Read More...
aps.net - web app - c# - jquery - Call A method inside code behind using jquery Problem witht static
hi my dear friends My Pages on vs 2008 are Base on Master And Content Pages And In Content Pages I have multiviews And inside Multiviews I have RadComboBoxes. two of my radcomboboxes are parent and child like country and city dropdowns... therefore in codebehind i put some codes in the OnSelectedIndexChange event of Parent RadComboBox for filling it's child - I used a hidden field for country id and sql datasources(stored Procedures)... meantime parent and child combo boxes are in an update panel for doing this job i set the autopostback property of parent combobox to true... but i do not want that autopostback=ture because of some focus problems that i coded with jquery so i want convert OnSelectedIndexChange event in codebehind to a method...
Can't select anything from auto suggest with modal popup
The modal popup works fine, but whenever I add the background-color to #000, I'm not able to select anything from the autosuggest textbox. Any ideas? I've tried changing the z-index's but no luck so far. < asp : Button ID ="btnCreateNewMailbox" runat ="server" Text ="Create New" /> < cc1 : ModalPopupExtender ID ="mpebtnCreate_ModalPopupExtender" BackgroundCssClass ="modalBackground" runat ="server" TargetControlID ="btnCreateNewMailbox" PopupControlID ="TestPanel1" PopupDragHandleControlID ="TestPanel1"> </ cc1 : ModalPopupExtender > < asp : Panel ID ="TestPanel1" runat ="server" Width ="400px">...
How to dynamically add ScriptManager to a WebUserControl
Hello I had this problem: I created a WebUserControl that used som Ajax stuff - hence it needed a ScriptManager. The problem was that I couldn't add it to the WebUserControls html code (the .ascx file) since the WebUserControl sometimes was placed into a parent page that already had a ScriptManager, and I couldn't add a ScriptManagerProxy since the parent page sometimes didn't had a ScriptManager. Alot of people suggested to just use a ScriptManager on the MasterPage, but this fails if: one doesn't use a MasterPage or one uses iFrames etc. that uses stand alone aspx pages, like Thickbox might do... Here's the solution: in the WebUserControls code behind (.cs file), put this: protected override void OnInit(EventArgs e) { if...
Tabcontainer set_enabled issue
I have a tabcontainer with a bunch of tabs... When I disable a tab and then re-enable it using set_enabled all the fields on the tabs remain disabled. I can't find a solution anywhere. Any thoughts on what I'm doing wrong? Seems pretty boilerplate code to me... In case it helps here's the js code I'm using to do the work. function DisableEnableTab(boolVal, tabIndex) { var tab = $find('TabContainer1'); tab.get_tabs()[tabIndex].set_enabled(boolVal); } Thanks in advance, Chris Edit: The last post in this thread sums it up: http://forums.asp.net/p/1121737/1983604.aspx#1983604 Read More...
More Posts Next page »