AJAX :: AJAX Modal Error - Microsoft JScript Runtime Error: Sys.ArgumentNullException: Value Cannot Be...


Modal not showing up when show is called, also error on loading page. Attaching code below, can anyone help me discover my syntax / logic issues here? NOTE: Did some research on this before posting, some claimed it can be an issue of where the modal is placed on the page in relation to the update panel I am using. I have tried different placements of the modal extender and I also tried removing the update panel all together in hopes to at least see the modal show, no go...same issue. So with that, the issue shouldnt be around the use of the update panel... Here is the error: icrosoft JScript runtime error: Sys.ArgumentNullException: Value cannot be null. Parameter name: elements and the code...

View Answers
Very similar questions
AJAX :: "Invalid Argument." Error When Programmatically Changing Tabs forums.asp.net

I have a TabContainer that has a button in one of the tabs. When i click on the button, I need to save a few items to the database and then select a different tab. I have tried coding this tab change like this: this.tcItems.ActiveTabIndex = 1; And like this: AjaxControlToolkit.TabPanel tabTwo = (AjaxControlToolkit.TabPanel)this.tcItems.FindControl("tabName"); this.tcItems.ActiveTab = tabTwo; In both instances, I receive a scripting error message "Invalid argument." from the file "ScriptResource.axd". After continuing or ignoring these errors (ussually three of them), the page finishes refreshing and the correct tab is selected. I'm just not sure how to get rid of these error messages or why I get them.

AJAX :: Show Content Pages Loading Progress Using Ajax Updateprogress forums.asp.net

I have a master page, nested master page, and content pages.I'm trying to resolve a task adding an animated gif to show it when content pages are loaded. I put it on a nested master page inside UpdateProgress having ContentPlaceHolder inside UpdatePanel assuming my gif appear during content pages loading. However, it appears only above login page and not always and never on/or above other content pages. The content pages: <%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/MenuNestedMaster.master" CodeBehind="Default.aspx.vb" Inherits="AIS._Default7" %> [code]....

AJAX :: Installing AJAX In Visual Studio 2005 Professional? forums.asp.net

I'm trying to learn how to use AJAX and I've hit my first roadblock: installing it on my machine. I've poked around all over the place for installation instructions, and the ones I could find all reference some sort of msi file that I can't find anywhere on the Downloads section of this site.

ADO.NET :: Error - Cannot Insert The Value NULL Into Column 'Cid forums.asp.net

I have a table called category that has tow attribute (Cid,Name)  what can i do to insert  category name only without allow user to insert category id in my webpage, I use view detail control and make the wizard link but when run the error message appear (Cannot insert the value NULL into column 'Cid) note the identity properties is not pass.

Error - Cannot Insert The Value NULL Into Column 'Vid' forums.asp.net

I have two table with a one to many relation. 1- voteChoose has (Choid PK,Choose,Vid) 2-VoteQuestion has(Vid PK,Vquestion,Action) so when insert a question and answer in a page this error message (  Cannot insert the value NULL into column 'Vid') appears i use this function to add vote  public void AddVote(string VQuestion, string[] Choose)

Parsing - Flex 3: Getting Error Of "Parse Error At '<mx:ComboBox>'> stackoverflow.com

<mx:List columnCount="5" rowCount="11" width="100%" height="100%" dataProvider="{parentDocument.crewPositionsAC}" useRollOver="false" alternatingItemColors="[0xffffff, 0xe5e5e5]" borderStyle="none"> <mx:itemRenderer> <mx:Component> <mx:Text text="{data}" color="#840021" selectable="false" /> <mx:ComboBox id="studentType"> [Code]... Anybody able to see what's causing the error?

Flex :: Adobe Air: Drag Application Crash - Error #3200: Cannot Perform Operation On Closed Window stackoverflow.com

Now I set dragEnabled="true", dropEnabled="true" and dragMoveEnabled="true" to archive the ability to reorder my Items via Drag and Drop. But as soon as I start to Drag an Item the whole Application crashes with: [Code]....

MVC :: Display Errors Or Variable Values? forums.asp.net

Working through the tutorial [URL] I want to output the value of the 'caught' exception as all the database queries are wrapped in try catches. How would I do this? I have added a label to my form but not sure how to get a value in it! (Still thinking old ASP.NET)

ADO.NET :: Getting Error As Failed To Convert Parameter Value From A String To Date Time forums.asp.net

data.MakeInParam( "@DOB",SqlDbType.DateTime,10,cust.DateOfBirth), im new to .net,  reponse grt intput for me to get in to it.

AJAX :: Modalpopup As Usercontrol - Cannot Close Popup forums.asp.net

My popup is a usercontrol, which as datagrid , OK button and Cancel button. My ModalPopup Extender is in page(Page1.aspx)How do i close the popup without posting back. I cannot use CancelControlID because mymodalpopup extender is in page1.aspx and my Cancel button is in Usercontrol.

Sql - Why Causing A Runtime Error stackoverflow.com

I am trying to connect to a database on my local server. The database is called "dbtest." Of course, I have left off my actual password and replaced it with "password." This is the typical code I see on every tutorial, but it doesn't work at all. Please help. <% Dim con, rs con = Server.CreateObject("ADODB.Connection") 'I think it is something to do with this line con.Open "Provider=sqloledb;SERVER=localhost;DATABASE=dbtest;UID=administrator; PWD=password;" rs = Server.CreateObject("ADODB.Recordset") %>

AJAX :: Use Hidden Value With Autocompleteextender? forums.asp.net

I am using autocompleteextender to receive list of projects. Is there any way that, given list of projects can hold a hidden values like a dropdownlist? I need project ID as hidden value...so that when I select a project from the list, I can retrieve the ID using C#/ASP.Net.

AJAX :: AutoCompleteExtender Key Value In Text Box? forums.asp.net

I am using ASP.NET 3.5...I have a text box where I am using the AutoCompleteExtender for search. When user enter the key the serach shows the "ProjectNumber-ProjectName" in the search result....after selecting any of this...only ProjectNumber is entered in the textbox (I am using hidden control to store key values)...everything works fine till here.Now I have a problem with values stored in the hidden control...for example in the text box there are three ProjectNumbers ..A,B,C....now I go ahead and delete all these three and enter the key word again...the search work fine but when I select any value the Text box is populated with old value (coming from hidden control) like A,B,C and then new value D Please suggest me how I can assign the hidden text box value with the new text box values after the selection is done... function KeySelected(source, eventArgs) {             var labelVal = document.getElementById('<%=this.Hidden1.ClientID%>').value;           var userValues = ""; [code]...

AJAX :: AutoCompleteExtender Selected Value Feature forums.asp.net

I've been using the AJAX Control Toolkit for a while now and I wanted to use it as a "sophisticated" dropdownlist, instead of just using it as a hint box. I know that many people asked for that kind of functionality, but it seemed way too far from the origin idea for the extender.  So, I decided to "mod" the original autocompleteextender code and implemented a few extra features like Selected Value, AutoPostback for Item Selected Event, The Item Selected Event on Code Behind, Async Postback for Update Panels and, for that purpose, changed the web service / page method to use "string[][]" instead of "string[]", so you can pass the item's text in the first column and the value in the second column. Now for the questions: is this the correct way to do it?

AJAX :: Null Or No Value Parameter? forums.asp.net

I have a simple web-service and want to invoke it from a client. this service has a parameter but when I invoke it from client and send to it a parameter , in server side service run successfully but always parameter has no value and is null ( depend on parameter's type ex if it's string , value will be string and if it's int , value will be zero ) here is server and client code:  [Code].... there was server and cliend ( proxy class  code ) but when I run it and trace in server side always parameter that I send to it has no value.

Cannot Send Session Cookie Error Message www.phpbuilder.com

An error occurred in script 'C:xampphtdocsgofasterincludesheader.php' on line 10: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:xampphtdocsgofasterincludesconfig.inc.php:68) line 10 of header.php reads: session_start(); I was wondering why i keep getting this message and what it means so that i can fix it. I am just building a login for a music community site i am building!

Ajax :: Modify Default Values Of Options For Function? stackoverflow.com

How can I modify the default values of options for the $.ajax() function? Ideally to do something similar to code...

AJAX :: Getting Selected Value From Ajax ComboBox - Through JS? forums.asp.net

i have this code:[Code].... I saw headbanger's (  ) thread where he added a dummy field to associate the items, but since i'm binding to an ObjectDataSource I don't have a dummy column. http://forums.asp.net/t/1484104.aspx  I added a watch and i cannot find the value anywhere and the li list has 0 items?

AJAX :: HTML Editor - Link Button Pop Up? forums.asp.net

how to style/position the pop up that appears when the 'new link' button is clicked. the pop up at the moment is showing at the far right of the screen - nowhere near the editor. A previous post mentioned that this was a problem with a div with the style of position:relative - I do not have this, so this is not causing the problem.

AJAX :: Trigger UpdateProgress By Clicking On HTML Link? forums.asp.net

I have a UpdateProgress that trigger fine when I click on stuff inside my UpdatePanel.  However I have some regular HTML link ("<a href>") outside of the panel.  How can I reuse the UpdateProgress so when I click on those link, it will show my loading screen?

Decode Json On Ajax Request stackoverflow.com

I'd like to build a simple json looking like this: {"Count" : "55", "total" : "125,55"}On my vb method i'm doing this to encode it:Dim json As String = "{""Count"" : "" " & intCount & " "", ""total"" : "" " & intTotal & " "" }"But I think Im missing something to escape the quotes, when my browser received it, it looks like this: {"d":"{"Count" : " 5 ", "total" : " 55 " }"}making it unreadable for jQuery.

JQuery - Ajax - Json - Javascriptserialize - Writes Out The Contents Of A Datatable stackoverflow.com

I am having a heck of a time with some very simple json. I have a very basic VB.NET webform which which writes out the contents of a datatable serizlized with JavaScriptSerializer. CODE: On the jquery side I am doing this. CODE: This is returning "invalid json" Here is the output CODE:

Php :: Json_decode - Malformed JSON From AJAX Request? stackoverflow.com

I am building a request in Flash that contains a JSON encoded Array of Objects. This is encoded using as3corelib. The request is then passed to JavaScript via ExternalInterface and a jquery ajax call sends the request off to the server.In PHP, the incoming data is parsed, but the json_decode returns null, giving a Malformed JSON error. var_dump results in comments: <?php (isset($_POST['gdata']) && !empty($_POST['gdata'])) ? $gamedata = $_POST['gdata'] : returnError("game data not specified"); var_dump($gamedata);[code]............ What I don't understand is that attempting to decode the variable returns null, but the same text decoded from a literal string works fine. What can I do to clean up the incoming data and make it readable for json_decode? Edit: php_info() says that magic_quotes_gpc is enabled. Could that be the issue?

AJAX :: MaskedEditExtender Mask Not Working Properly After Turning Off Readonly forums.asp.net

I ran into a strange issue with the AJAX MaskedEditExtender control, the extender is used with the Mask="99/99/9999" and MaskType="Date". Initially when the page loads the textbox was set to readonly using textbox.Attributes.Add("readonly", "readonly") in the codebehind. After the page loads if the user clicks on a certain button it would change the textbox to editable using javascript code: textbox.readOnly = false. The strange thing is after that if you start typing in the textbox you can see the entire mask (__/__/____) shifting to the right as you type. For example it looks something like this: 09__/__/____ instead of the normal 09/__/____. If the textbox was never set to readonly in the first place this behavior won't happen. So it seems something got messed up when changing from readonly to not. I was able to reproduce this in a barebone aspx page with just the textbox, the mask extender, and a button that when clicked turning off the textbox's readonly. Anyone knows how I can fix this? I'm using Ajax toolkit v3.0.30512

AJAX :: Dynamically Adding A Link Button To An Updatepanel forums.asp.net

I have gone through several posts on this forum about adding a linkbutton to an updatepanel dynamically. A lot of them say just give it a unique ID and some say you have to register add an AsyncPostBackTrigger to the triggers collection. I have tried both and neither work. I have this simple test that I created - the code is below - there is nothing else in this project but the code you see so I know nothing else is interfering with it. I have also seem people complaining that the linkbutton causes the entire page to postback - in my case nothing happens... I have seen people talk about having to add the triggers on the page init however I can't do that - I am dynamically creating menus based on a selection in a listbox... (not in this simple test but in a larger project) I am using Visual web developer express 2010 if that makes any difference. [Code]....

AJAX :: Using UpdateProgress As A ModalPopup / Disabling Webform While UpdateProgress Is Running forums.asp.net

I have a webform that works the following way: 1. Button_openPanel will display panel Step2Panel through ModalPopupExtenderStep2. 2. Button_runThread (inside Step2Panel) will close Step2Panel and will then run a lengthy process server-side. This lengthy server-side process will cause the UpdateProgress control to be displayed. Similar to the ModalPopup, I want to disable the whole page while the UpdateProgress control (with its animation gif) is running. Currently, the UpdateProgress is displayed, but I can click Button_openPanel (or anything else) which will cause the application to break. Is this possible? This is basically all the code. I stripped anything that was unneeded: [Code].... The code-behind is basically this: [Code].... Everything's working pretty good now, but I need to disable everything while the time-consuming process is running and UpdateProgress is displayed. I was thinking of displaying the UpdateProgress control as a a sort of ModalPopup, but I'm not sure if it's possible. If not, then the alternative would be to disable Button_openPanel while the time-consuming process is running and UpdateProgress is displayed.

AJAX :: Changing Default Link Target In HTML Editor? forums.asp.net

 I would like to change the default "target" for Link in HTML Editor. By default it is set to "Current Window", but I want to set it to "New Window" by default. Is it possible for HTMLEditor Control?

AJAX :: Use In UpdateProgress Tag? forums.asp.net

how to use <iFrame> tag in <UpdateProgress>. I want my whole screen in opacity when i press a button like the screenshot below. I tried in this way [Code]....

AJAX :: Trying To Use The UpdateProgress Control? forums.asp.net

Hi, I have just started using AJAX and I'm trying to use the UpdateProgress control.  I added a ScriptManager to the page and then an UpdatePanel. I put my button in the UpdatePanel, and then added the UpdateProgress control.   When I try to view the page I keep getting this error:  Cannot unregister UpdatePanel with ID 'UpdatePanel1' since it was not registered with the ScriptManager. This might occur if the UpdatePanel was removed from the control tree and later added again, which is not supported. Parameter name: updatePanel

AJAX :: Updateprogress In A Gridview Row? forums.asp.net

I have put a updateprogress ajax nested in a gridview template.  However, when I click a button inside the gridview row, all of the rows in the gridview display the updateprogress gif at the same time.  When the user click a button on one row, how can I get the updateprogress to display itself only on that row index? here is my code:  <itemtemplate> <asp:Label ID="lblPriceQty" runat="server"></asp:Label> <div>........

AJAX :: UpdateProgress Not Dispalying? forums.asp.net

Normally I google search to try and solve my issues but in this case I have no idea what is wrong. I'm trying to get an UpdateProgress to show some text while the panel is updating, but it just doesn't show up. I'm not seeing any visible errors and nothing seems to be rendering incorrectly other than the text just not displaying on the update. Here is a look at my code: [Code].... I know it has to be some really simple that I am just overlooking but I am stumped.

MVC :: How To Redirect To New Page After Jquery Ajax Call forums.asp.net

1- I have an Ajax link that call an action and that action returns a view , that view open in a specific Div (consider it as a menu that update the div with the corresponding view) 2- if session timeout the returned my logon view so if i click on the link and session is timeout , the log on view open in the div not in the whole page what i should do so if the session timeout it return logon view in new page in on my div?

AJAX :: How To Mark The Selected Region With Color / Image forums.asp.net

Is there a way to give the selected range of a SliderControl a differrent color/image? heres an example from Telerik. [URL] As fare as I have worked with the Slider and MultiHandleSlider i dident find a way to create a slider looking like the one above (again: i need the selected range in a different color then the rest) I tryed creating a MultiHandleSlider with only one slider, but as an effect the style for the part between the sliders is not used. The normal Slider control has no option to create the wanted look So how to create a slider with marked selected rang using the ASP Toolkit?

Web Method Syntax For Jquery Ajax In Asp stackoverflow.com

$.ajax({ type: "POST", url: "jquerychat.aspx/SendMessage", data: "{msg:'Hello',userId:1}", contentType: "application/json; charset=utf-8", dataType: "json", success: function (msg) { // Replace the div's content with the page method's return. // $("#txtMessages").val(msg.d);msg:'Hello', }, error: function(){ alert('failure'); } }); }); [WebMethod] public static string SendMessage(string msg,int userId ) { NameValueCollection nvc = HttpContext.Current.Request.Form;...................

Sending JQuery Ajax Request To Web Method? stackoverflow.com

I am trying to send data to my code behind method. It works except when I add to the data param. [code].... UPDATE: After seeing what client side errors were being thrown it seems that the ID is undefined. Is my method of getting the elements ID incorrect? Keep in mind I am using jsTree and ca I possibly use (obj)?

AJAX :: What Is The Best Method To Use ICallback Or PageMethods With JQuery forums.asp.net

I am creating a website in asp.net its a very big site about 250 pages and with a big sql database. I am confused as which ajax method i should follow. There are three options. 1. ASP.NET UpdatePanels -: Simple to use but causes a lots of uneccessary request and viewstate. I want my pages to open as quick as possible. 2.ICallback-: Causes less request and renders the page quickly. But security concerns and viewstate are there. 3.Page Methods with jQuery-: No Security anyone can quickly hack the parameters passed using "POST" mehtod.

Difference Between MVC And AJAX? forums.asp.net

the difference between MVC and AJAX ? What elements should be considered by me when choosing one of them for system development ? 

Browser Not Handling Exception From AJAX Panel - C# stackoverflow.com

i am having trouble catching errors in an AJAX panel. Even when i throw an exception in the c# code behind the front end completely ignores it. Here is the code i have setup, can anyone see why? I ideally want to show a js alert window on error. protected void btnX_Click(object sender, EventArgs e) { throw new ApplicationException("test"); } protected void ScriptManager_AsyncPostBackError(object sender, AsyncPostBackErrorEventArgs e) { ScriptManager.AsyncPostBackErrorMessage = e.Exception.Message; } Markup: <script type="text/javascript" language="javascript"> Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler); function EndRequestHandler(sender, e) { window.alert(e.get_error().name); } </script> <asp:ScriptManager ID="ScriptManager" runat="server" AllowCustomErrorsRedirect="true" OnAsyncPostBackError="ScriptManager_AsyncPostBackError" />

AJAX :: Exception Handling And Script Manager forums.asp.net

I'm a new bie in ajax controls and need your help. I've used Ajax control toolkit controls and update panel in one of the asp .net web application. The application works fine with no problem as such but, now I have to implement exception handling in it. I found that whenever an exception occurs in code behind the exception details shown in firefox or IE is: "Error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500" What I want to achieve is to rediect user to another page say SendError.aspx with actual details of exception. This way user can send the error to web admin via email. Ps: I'm not looking for cause of error 500 just looking for "how to handle expections gracefully and redirect to another page"

AJAX :: Custom Exception Handling In Webservice? forums.asp.net

I am trying to write a webservice that's going to be used through ASP.Net Ajax. In this webservice I have to add exception handling so that in case of any error, I could log them to some central place and then throw. In my other areas of code (like aspx pages), i have been using a basepage which Overrides System.Web.UI.Page class's OnError by adding a custom event handler. I want to do the same for my webservice as well. Basically I do not want to decorate each webservice method with a Try Catch block. Instead if there is a clean way like to override the on error method, i want to go for that. Unfortunately the WebService class does not seem to have any functionality for this.

AJAX :: ModalPopupExtender With OutputCache forums.asp.net

I have a user control with OutputCache set to vary by any param (*). This user control has a LinkButton, which when clicked, causes a postback, and displays a ModalPopupExtender (the extender's TargetControlID is a dummy link). The user control is included on an aspx page. The LinkButton is displaying the popup just fine. But if I open another browser tab/window/type, the LinkButton fails to generate the popup. I've tried (all separately): moving the popup extender and its associated control to the main aspx page use OutputCache Location="None" on main page dynamically create the Popup extender and its associated control in Page_Init of both ascx and aspx

AJAX :: Use In Visual Web Developer 2010? forums.asp.net

I installed ajax control toolkit  in visual web developer 2010 express, When I drag Ajax control on design area, its unable work .Otherwords I unable drag the Ajax controls I need walkthrough for ajax enable webiste

AJAX :: Installing Control Toolkit For .net2? forums.asp.net

I'm having a bit of trouble with this - I've got the correct version of the toolkit, and I've installed the ajax extensions and templates, but when I go to install the toolkit, I select the dll in the Choose Items and I get the error message that there are no coomponents in the dll. Frantic googling for all I'm worth will only point to helpful folks highlighting the link: [URL] however that seems to be a dud, now, and results in an error page. I got the Ajax build from: [URL] I downloaded the NoSource version, and I've run the VSI included so that I can now create apps that (in theory) use the toolkit, but I'm a bit flummoxed as to how to get the toolbox in the toolbar so that I can get at the controls within Visual Studio. The environment is Web Developer 2008 Express edition

Visual Studio :: To Set Up Ajax Toolkit Component? forums.asp.net

just start to use vs.net 2010,try to set up ajax toolkit compenent,couldnt do it.Is there any article or video?

Visual Studio :: Ajax Toolkit Not Working In 2010 forums.asp.net

I have VS2010 ultimate on my win7 64bit system installed. I can't get any of the ajax extensions or toolkit controls rendering on my designer in VS2010. When i try to drag a toolkit control onto the designer surface it just creates <p> xml nodes. This is a similar problem that this person had: [URL]

Visual Studio :: Adding AJAX Toolkit Controls? forums.asp.net

My group has been working on Visual Basic Web application for a very long time. Everytime a new Visual Studio Release comes out we upgraded this application to the current release of visual studio and ASP.NET. Right now we have this application working in visual studio 8 and ASP.NET 2.0. Recently I downloaded the AJAX tool kit to my system.I was successful loading the AJAX tool kit controls to a newly created ASP.NET Web Application and performed some experiments developing Web pages using AJAX.Now I want perform experiments that test the AJAX script manager to this old application. When I clicked on the visual studio 8 project file to this application the AJAX Extenter Controls and the AJX Toolkit controls are not listed in the visual studio toolkit. In fact the Visual Studio Control Tool kit does not show the tabs where the AJAX Extender and AJAX toolkit controls were loaded. I tried to add a new AJAX Extender and AJAX Toolkit Tab Pages to the Visualo Studio web control toolkit but visua studio reports back that the AJAX Extender and AJAX Toolkit tab Pages are loaded. However these tab pages are not displayed in the Visual Studio Tool Kit To add AJAX  Extender and Toolkit tab pages I must click the Choose Items application and press the reset button on the Choose Items Dialog Box. After this action I can add the Ajax Extender and AJAX Toolkit Control Tab Pages to the Visual studio Control Toolkit. However I cannot add AJAX Extender controls found in the System.Web.Ajax.dll file into the toolkit. After I select the System.Web.Ajax.dll file and press the choose Item OK button none of the controls foun in the System.Web.Ajax.dll file. Same is true with the controls found in the AJAXControlToolkit.dll file too

Visual Studio :: Can't Get Ajax Control Toolkit To Install forums.asp.net

I have the extensions install but I can't figure out how to use the toolkit. The instructions link on the toolkit page is a dead link. See below. To start using the Toolkit in your own web sites, please follow the instructions on this page: [URL]

How To Handle Single Quote In $.ajax POST (JQuery) stackoverflow.com

.ajax({ type: 'POST', url: '..serverices/ajaxserver.asmx', data: 'lname='+ $('#lastname').val() }); return false; if #lastname has a single quote, it throws an error. How to handle it?

How To Create ASP.NET AJAX-Enabled Web Site In Visual Web Developer Express Edition forums.asp.net

I've upgraded from Visual Web Developer Express Edition 2005 to the 2008 version.. What's the equivalent of "ASP.NET AJAX-Enabled Web Site" in the File > New web site dialog..

AJAX :: Get Accordion Selected Index? forums.asp.net

I have used an accordian extender in my page as <cc1:Accordion ID="Accordion1" runat="server" AutoSize="None" FadeTransitions="true" FramesPerSecond="40" SelectedIndex="1" TransitionDuration="250"  CssClass="accord"> <Panes> [Code].... In normal case both header texts (More search options and less search options) are visible.I want only one header text is visible at a time.ie;either more search options or less search options. can we write code in accordian selected index changed?

AJAX :: Detect Which Tab Is Selected In JavaScript? forums.asp.net

I use in my Webapplication the Tab-Control. How can I detect which tab is selected in JavaScript?

AJAX :: Updates On User Control Not Available On Housing Page forums.asp.net

I have a user control that I am explicitely calling from an aspx page. In page_load of hte aspx page I have the following, myControl = (DynamicTable)Page.LoadControl("../inc/DynamicTable.ascx"); Then in my code where I want it to execute the control, I have this pnlESDDEnrolled.Controls.Add(myControl); where pnlESDDEnrolled is the panel I am loading it into for display. So, I execute the aspx page, it links off to the user control, populates the control, returns back to the aspx page and the page dispalys with the user control in the middle of it. All is well. The problem comes in when updates are made on the user control. Keep in mind, that other data is updated on the page as well, and the update button resides on the page, not the control. Anyway, when the update button is pushed, the button_click event is fired on the page, but the updates that I made on the user control are lost. Since the page loaded the user control and then the usercontrol executed the page unload method, the page has no knowledge of the user control anymore. Thus, when the update button on the page is pushed, I guess I am not really sure what happens with the updated data on the user control. All's I know, it is lost.

AJAX :: RegisterStartupScript No Longer Working For Partial Updates forums.asp.net

In previous release, I used RegisterStartupScript method to run JavaScript when UpdatePanel would finish updating.  That would work for both Partial and Full-page updates.  With BETA 1 - javascript doesn't execute  for partial updates. Is there a new model for triggering javascript when UpdatePanel returns new content? I am really thinking of going back to last CTP before any new surprises come up. 

Ajax - Long Process And Sending Updates To Browser stackoverflow.com

I've asked this before but I was hoping for another answer and perhaps some code samples because I've been having a difficult time with this. I have an asp.net page. The user hits the "Run" button and I have code IN AN ASSEMBLY, not in the APP_CODE folder that is called and runs a long process that moves product info from a file into the database. While the user waits, I would like them to see status updates like what product the import process in on and status info. I'm assuming I'd break off into another thread and use Ajax but I have no idea how to do this.

AJAX :: ListSearchExtender But In A Textbox? forums.asp.net

the AJAX ListSearchExtender will manipulate listboxes,dropdownlist etc.In another discussion here i presented a filter that does this exactly as i want(and better imo).What i need to know is, if there is some mechanism that you can type in a textbox and bellow you get the data that you want(p.e. typing a will present "aardvark","afoul","ant" ,typing an "f" after the "a" will only show "afoul", you get the point) not in a predefined listbox with data but possibly in some other sort of(ajax?) control.So in sort the data will be shown when you start typing.A simple example is a forum that you go to the search option and you want to find posts by a user.When you start typing you get a list below with matching user names.So this is doable at least with php sites using JS.SoP.S. This filter is for future usage so i don't need a fast "alternative".And i think it's JS time again (

AJAX :: ListSearchExtender [Duplicate Post]? forums.asp.net

Probably a stupid question, but I cannot figure out why the prompt text is something like  '..h' instead of 'Type to Search' or whatever the default is. Also, when I try searching for a value   I only see the last character I typed  and dots before it ie   sen would be '..n'.  Do you guys know why this would be the case? The ListSearchExtender works fine in the showcase page.. 

AJAX :: Modal Popup During DataGrid Update? forums.asp.net

trying to achieve the following 1) When a user click a button 2) Display modalpopup which preevent user from any interaction with the rest of controls in page 3) In the page a data grid displays with current task completed 4) once all task completed, close the modal dialog Ok i have put all the controls within the update panel, the modalpopup is working fine, but when i use a timer to datagrid databind, it closes the modal popup. I tried to use modalpopup.Show() within the Tick event of timer but it started displaying one modalpupwindow for each tick.

AJAX :: Web Services (learning), How To Call Web Method Without [ScriptService] forums.asp.net

This thread is more about learning, actually I have a web service which just returns string. I have been calling this service from code behind and updating lable with the string received from the web service. Now I want to call web service using JavaScript. As far as I know, I have to add <asp:ScriptManager..../>. Second I have to add [ScriptService] to the web service. But I don't wat to add <asp:ScriptManager..../> and [ScriptService]. Is there any way to call web service using javascript without adding <asp:ScriptManager..../> and [ScriptService] Also, I am kind of lost in SOAP, JSON. I am not getting where I actually use SOAP, JSON. Using <asp:ScripManager../> and [ScriptService], I actually didn't see use of SOAP, JSON.

AJAX :: Call Viewstate In AutoCompleteExtender's GetAutoCompletionList Method? forums.asp.net

I am using VS 2008. I am using Ajax Autocomplete extender to populate a textbox. usually there is a webservice method which populates data into the autocompletion list... but in my case, the data is coming via an instance method... At the time of doing the autocomplete, the autocomplete calls the method, the data is getting lost in the page postback..My situation is such that I cannot use a static method to get data from database, since there is already a public instance method.I am using the technique of calling GetAutocompletionList without using a WebService method.  [System.Web.Services.WebMethodAttribute(), System.Web.Script.Services.ScriptMethodAttribute()]     public static string[] GetAutoCompletionList(string prefixText, int count, string contextKey)     { // want to use static viewstate here ..

MVC :: Trying To Use Ajax.BeginForm() To POST? forums.asp.net

I'm trying to use Ajax.BeginForm() to POST A Json result from my controller (I'm using MVC3). When the Json result is called it should be sent to a javascript function and extract the object using: [Code].... View  [Code].... The strange thing is that the exactly same code works in MVC2 - Is this a bug, or have I forgot something?

MVC :: Ajax.BeginForm: OnFailure? forums.asp.net

I'm using Ajax.Begin form with MVC validation.  When I'm in the server code and there's a validation error then ModelState.IsValid is false and that's good.If I have OnSuccess defined in my AjaxOptions why does my OnSuccess function get called when the ModelState is not valid?In my parital view: using (Ajax.BeginForm("ProfileEdit", new { controller = "Account", action = "ProfileEdit", id = ViewData["ProfileID"] }, new AjaxOptions { UpdateTargetId = "profileEdit", OnSuccess = "OnSuccess" })) In my controller I always just return PartialView(); I just want to display a success message in the view but OnSuccess gets called even if there is a modelstate error.  If I try to throw a HttpException then I lose my ValidationSummary and other error messages. To work around, I'm setting a ViewData["Success"] and displaying the message div in the .ascx if ViewData["Success"] != null.

MVC :: Use The  Ajax.BeginForm () - Looking For Ajax Reference In Code? forums.asp.net

i was trying to use the  Ajax.BeginForm() and instead of updating my targetId it would return a new page with just the data. The problem was i didn't have the ajax reference in my code. however, it took a while  to figure that out because it would flash the error too quickly in firebug for me to see. is there another way to get this error to show up?

File Upload Using Ajax.beginform ? stackoverflow.com

is there a way i can file upload using ajax.beginform as i am using jquery dialog and can't use html.beginform Basically i am implmenting a sort of wizard for initializing website on jquery dialog which need to have ajax there

MVC :: Ajax.BeginForm And TempData / ViewData? forums.asp.net

I've noticed that when I change from Html.BeginForm to Ajax.Begin form, I don't have access to TempData or ViewData. I'd like to show a message such as "You created x records" or similar after POSTing. I realize I can use the AjaxOptions.OnSuccess to maybe hit the server again, but is there a way to do this with one request?

MVC :: Ajax.BeginForm() Posting Back Only Once? forums.asp.net

[Code].... I have the above code, on the get method I do the following. [Code].... It only hits the index once after loading the page. It never goes to the index method.

MVC :: File Upload Using AJAX.BeginForm? forums.asp.net

I am new to ASP.NET 3.5 MVC, I want to upload file using AJAX form. When I am using html form then I am able to upload files but my requirement is that I am using user control for edit profile, I am using tabs for the same where in we are having multiple tabs for edit profile, change password, etc. While using AJAX form having enctype = "multipart/form-data" then following statement did not get the files foreach (string filename in Request.Files)

MVC :: Ajax.BeginForm With Multiple Buttons? forums.asp.net

can i have more than one AjaxOptions in Ajax.BeginForm targetting different controls?Actually I want to exchange data between two listboxes placed in a single ajax.beginform.

MVC :: Ajax.BeginForm Opening New Page? forums.asp.net

I've got problem with Ajax.BeginForm in ASP.MVC 3. I want to search textbox for my database. So I've got this code in my Index view: [Code].... Which calls this method in controller, which return detail partial view of patient public ActionResult GetPatientByRC(string RC)  { IPatientService svc = new PatientService(_PacientRepository);[code].... after clicking on submit button, I'll get partial view open in new webpage (not in GetPatientByRC div). Does somebody know what is wrong?

Ajax.BeginForm Switches From Async To Sync? stackoverflow.com

I'm running into an issue with an async call to the server that only works one time, then it appears to become a synchronous call. Let me try to explain. It's an MVC 2.0 site, using ASP.NET and Ajax. I'm using the Ajax.BeginForm helper, like so: <% using (Ajax.BeginForm("Start", null, new { virtualMachineId = xyz }, new AjaxOptions { UpdateTargetId = "VirtualMachineForm", OnBegin="OnStartingVm" } )){ [Code].... Within the updateStartingStatus function, the first part runs every second, every time. However, within the Ajax call, the success result works every second on the first time only. Then on the second time I click on the start button all of the requests queue up. After the starting has completed, about 20 seconds later, I get a bunch of alert windows back to back. So, I can tell that updateStartingStatus runs every second every time, but the ajax call appears to switch to become a sync call after the first time. I have to fully close it and open it again. The same occurs in IE and Chrome. One more thing to note is that the updated div (VirtualMachineForm) contains most of the page, including the button being pressed. So it basically replaces the page from under itself. Not sure if that would cause any issues. Additionally, if I debug in Visual Studio 2010, the call isn't made to the controller action when the issue occurs. So, it appears to be something client-side. I've ruled out any issues server-side.

Accept An Out Parameter In Ajax? stackoverflow.com

I have a static function in the aspx page with this signature: public static bool UserNeedsToBeAlertedPwdReset(out DateTime dtExpires) { DateTime dt = DateTime.MivValue; return true; } So I want to call this function from the client side, using the jQuery Ajax. How do I get a hold of the out value? Edit Alternatevly I could check for nulls if this is possible with Ajax + jQuery like that: ublic static DateTime? UserNeedsToBeAlertedPwdReset() { if(blah) return null; return DateTime.Now; }

AJAX :: How To Configure WCF To Accept & Reply To JQuery Post forums.asp.net

I have a WCF web service and jQuery AJAX implementation that appears to be working perfectly, save for a single line of code: the AJAX calls to the WCF service only have the correct HTTP header & content information if I use GET in my AJAX calls.  Once I choose to use POST, the WCF service response with "Method Not Allowed".  The calls are coming from domains such as sub1.domain.com, and calling svc.domain.com.  How can I configure WCF to allow the cross domain AJAX POSTs? [Code].... Here's the relevant section of the web.config: [Code].... Here's the AJAX code: [Code].... I have indeed tried these changes to my interface: [Code]....

AJAX :: Collision Between Alwaysvisiblecontrol And ClientScript.RegisterStartupScript? forums.asp.net

I use AlwaysVisibleControl in a page and show a result of data access in popup with ClientScript(or ScriptManager). RegisterStartupScript. ScriptManager.RegisterStartupScript(this, this.GetType(), "error", "<script language=javascript> alert('* Saved well.');</script>", true); When popup window appears after postback, alwaysvisiblecontrol is on wrong location. (Initial html coded place not the alwaysvisible targeted place) After I click OK button of poput, alwaysvisiblecontrol locates at target place. I want this popup locates target place before popup window popups up.

AJAX :: Return Complex Type In Json Format? forums.asp.net

I was using Extjs to send a json object to my asp.net webservice/Update method , but I find the following error in firebug reseponse. [Code]....

Silverlight Or Jquery Ajax For Complex Data Form? stackoverflow.com

So part of my web app centers around this very important form which is used to create a form. Its like google docs form. The user keys in a type (checkbox, textfield, numericfield) and a label and slaps it into the system, and it generates a form somewhere. Its a little more complex than google forms, the field types are complex and theres a lot more to that form (It happens to be a form generator for a finance plan) The app is asp.net, I was thinking of using jquery and jquery's own ajax methods to post the data, but I think it would just turn into a very hairy situation, I then thought silverlight, but Ive never done silverlight before but I am an experienced .net guy. So what do you guys think, will silverlight be too tough for a first timer for this kinda thing? Or should I stick to jquery. Plus points for silverlight is its an inhouse lan app and this particular page will be used by people with very high bandwidth. Also I'm on .net 4 btw.

AJAX :: Cascading Dropdown List Multiple Parameter Passing To Web Service forums.asp.net

I have a problem when trying to refactor old code that uses JavaScript callbacks to populate multiple drop down lists to using the new Cascading Drop Down List Extender on a user control (.ascx file) that is used by several .aspx pages. The way it worked before was for the primary drop down list to make JavaScript callbacks to a webservice that contained multiple parameters and populated the following drop down list and so and so forth. JavaScript contained all the logic for this on the .ascx file and the web method accepted multiple parameters. I'm refactoring this to use the ASP.NET Cascading drop down list without changing the logic in the current web method, as all the JavaScript callbacks should be replaced by the cascading drop down list control. The problem is that the web method for the cascading drop down list takes only the "known category values" and "category" parameter and nothing else. I need to pass a whole lot more into the web method in order to populate the drop down lists in context. I've also read about a third "context key" parameter but unsure of what it actually does. In any case, I must have an older version of the toolkit because my Cascading Drop Down List control doesn't have the context key property. What version of the AJAX Toolkit does this property exist on for the Cascading Drop Down List control? How do I pass a lot of required parameters into my web method in order to populate my drop down lists using the cascading drop down list control?

AJAX :: Passing Arguments Between Two Forms Using Jquery? forums.asp.net

I tried using Ajax & Jquery for the following need, but not able to do... I have Two Forms StringMain.aspx & Returner.aspx.... I have created 4 Divs at StringMain.aspx and a sample text "ToCheck" at First Div.. In the Returner.aspx form page load, i placed a label like this protected void Page_Load(object sender, EventArgs e) { Label1.Text = "hello"; } I have set StringMain.aspx as default running page. So When i run StringMain.Aspx page, the text i placed in the First Div "To Check" should concat with the label Text "hello" of Returner.aspx and display it together in the First Div of StringMain.aspx like this "To Check hello".. The Technique i used is $("div#First-Div").load(" Returner.aspx");--But dint work...

MVC :: How To Use Ajax Or Jquery For Partial Post forums.asp.net

I have a form with three filed name  city and relation.relation filed is a dropdown and on the selection of relation i have to display list of users in grid.I want  here to use  Ajax or Jquery so that when i select relation not whole page will post to server but only relation and could display list of users in grid. inside  Html Table  i have all these fileds( Name,City and Relation).

MVC :: Jquery Ajax Post Data Not Visible? forums.asp.net

I haven't used Jquery to post Json data to mvc before, so this maybe a Noob issue.  I've got a really simple form, and am trying to post this data async to an mvc action. Within firefox I can see the data being posted, but I can't see it within the MVC action.  This code all runs through correctly, but  putting a debug point in the action method will always show the form collection as empty. Form.. <script type="text/javascript">

Jquery - Mvc File Upload Ajax Post? stackoverflow.com

I was just wondering if its possible to do an ajax post a file in asp.net mvc,basically i have a form with two buttons, one of the buttons extracts images for the selected document and displays them for the user to choose thumbnails for the document he is about to upload. The usee then fills out the rest of the form and then saves the document.With the image extraction, I was owndering if it was possible to do that as an ajax post. The other submit button can work as a normal http post

How To Process Results From A JQuery Ajax Post stackoverflow.com

I am making a jQuery ajax post in a javascript function used by a asp:CustomValidator control. The web method returns a boolean. How do I convert the result make the validation script function correctly. Client side code [code].... Web service code [code]....

Passing Object To Server With JQuery.Ajax()? stackoverflow.com

I am trying to implement the same code that was mentioned in this questionCurrently I have the following code: var pagePath = window.location.pathname; var paramList = ''; if (paramArray.length > 0) { [code]...

MVC :: Javascript Not Executing After Ajax Post? forums.asp.net

I'm working on a prototype that makes heavy use of partial views and jQuery. When I use jQuery to do the post and updates to the page my javascript fires as I would expect. If i let Ajax.BeginForm handle it the javascript doesn't execute. An example partial view would be [Code].... The form is initially loaded using jQuery and the masks work. When the partial view is updated after the post, the ready function doesn't get executed. If I create an OnComplete handler and update the page using jQuery it works. Not sure if I'm doing something wrong or if it is a bug/feature of MVC Ajax.

AJAX :: Change Image With Out Page Post? forums.asp.net

my problem is that i m doing somany tasks in one timer. i want to display one by one status of tasks. through images. like process1 xxxxxxxxxxxxxxxxxxxxx      image right sign. process2 xxxxxxxxxxxxxxxxxxxxxxxxxx    image cross sign. right for work done and cross for process fail. in these processes after one process complete i want to display staus of proces work done or not. by changing the image. how can i do this.

AJAX :: Passing The Parameters In Sql Datasource? forums.asp.net

I have used a sql data source to connect to ORACLE. Select command is working fine, as soon as I try to provide a parameter, it doesn;t work. Getting following error " ORA-01036: illegal variable name/number" Tried searching for error message -- but It says the parameters name has to be less then 32 characters, which is what I have. <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:DevConnection %>"  ProviderName="<%$ ConnectionStrings:DevConnection.ProviderName %>" SelectCommand="Select ID, Name from Employee where state = @stateid"> <SelectParameters> <asp:ControlParameter Name ="stateid"  ControlID = "drdState" PropertyName = "SelectedValue" /> </SelectParameters>

AJAX :: How To Add Background Image To The Tab Panel forums.asp.net

We had a custom gradient image we were using on our previous version of tabs, but now that we are trying to use the tabcontrol in ajax, is there any way to apply that background image to the tab panels? 

AJAX :: Add A Common Link In Tab Container? forums.asp.net

In my application I am having a tab container contents three tabs. The design is like this: tab1  tab2  tab3 Now I want to add a link in such a way that the link button should visible from any tab and also it should be in extreme right of tab header. tab1  tab2  tab3    

AJAX :: Display Modal Popup In Front Of A Java Applet forums.asp.net

I cannot find a solution to display the Modal PopUp  control above a java applet. I have tried to set the z-index but no luck.

ADO.NET :: Could Not Find Stored Procedure (but It's There)? forums.asp.net

I have stored procedure in my database but its give error "Could not find stored procedure"Is this error occuring when maked error in permision,sp code or connection code

How To Make Use Of AJAX 4.0 New Feature Of ClientIDMode forums.asp.net

I wanted to make use of AJAX 4.0 new feature of ClientIDMode.I have a dropdownList inside updatePanel. I defined a unique ID for this control and set the ClientIDMode to be static.The problem is , when I select the dropdown list, the page jumps(postbacks). However this does not happen if I remove the Static setting for CleintIDMode. I have also downloaded a new ajax 4.0 dll from the codeplex library

AJAX :: Does Static ClientIDMode Always Defeat UpdatePanel forums.asp.net

I have a GridView in an UpdatePanel. As long as the ClientIDMode of the GridView is not Static, the updating behavior is what expected - any change of the GridView does not affect any area outside the UpdatePanel. As soon as the ClientIDMode of the GridView is changed to Static, the UpdatePanel behaves as if it did not exist - any of the GridView will refresh the entire page.

AJAX :: Display Of ModalPopupExtender? forums.asp.net

I've been prototyping the use of the ModalPopUpExtender but find that the BackgroundcssClass fills the entire screen even though I have defined the width and height.  So when I click on link button the popup fills the entire window and the X/Y positioning has no effect.  Other than that the content displays fine.  Any thoughts on this issue? [Code].... [Code]....

AJAX :: Unable To Display ModalPopUpExtender? forums.asp.net

I have 2 panels and one modalPopUpExtender- < asp:Button runat="server" i m showing modalpopupextender explicitly based on my requirement. protected void OkButton_Click(object[code]... but sometimes it is working and sometimes it is not working means it is not displaying modalpopupextender.

AJAX :: AsyncFileUpload Doesn't Display In ModalPopupExtender forums.asp.net

As far as I can see, the following code should make an AsyncFileUpload display in ModalPopupExtender. The MPE shows fine but the AsyncFileUpload doesn't load inside it. I also tried removing the update panel and putting the divs both inside and outside of the update panel, all with the same (lack of) results. And the AsyncFileUpload displays and works outside of the MPE. In ListView EditItemTemplate: [Code].... After ListView closing tag: [Code]....

AJAX :: Dynamic Div Display Position When Use It Inside ModalPopupExtender forums.asp.net

n one of my page. Inside the popup, when user click on a button say "Show Details", i want to display a div in which details text will be shown.  On client click of Show Details button, i retrive Show Details button's left and top position from java script and set details div's display = block. This works fine in a normal page and detail div shown exactly at the position of link button, but when i use this inside a ModalPopupExtender(see below code, i have put link button inside the  ModalPopupExtender's panel), the detail div not displayed at the postion of link button. Instead, it shows at some other position out of the popup. How can i display the detail div inside the popup and at exact position of the link button?  See the code below. [code]....

AJAX :: Using Modalpopupextender With Web User Control? forums.asp.net

I want to show a modal popup when the record is inserted successfully, and i want to show this message on multiple pages, So i thought of creating a 'Web-user control'.But i am  not sure, how to use this control with Modalpop up( How should i give Ok control ID , Cancel control id) [Code].... and my Modal popup code is: [Code].... Error Is : Microsoft JScript runtime error: Sys.ArgumentNullException: Value cannot be null. Parameter name: element

AJAX :: Using ModalPopupExtender With User Control? forums.asp.net

I have a simple question but I could not find the answer after hours of searching on the internet.How do I refer OkControlID and CancelControlID that is inside of my user control?For example, my user control is and input form with OK and Cancel buttons. How do I refer to it in the ModalPopupExtender?Here's my code: <asp:Button ID="ShowPopup" runat="server" Text="Button"/><uc1:MyControl ID="MyControl1" runat="server" /><cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server"            TargetControlID="ShowPopup"  PopupControlID="MyControl1"   OkControlID="MyControl1.OK" CancelControlID="MyControl1.Cancel"           BackgroundCssClass="modalBackground"/> I have made OK and Cancel public property inside my user control which return the corresponding button, but ti still does not work.

AJAX :: Using Modalpopupextender Within A Custom User Control? forums.asp.net

I have a modalpopupextender inside a custom user control and when the user clicks on a imagebutton in the custom user control, this modalpopup has to be displayed to the user for inputs. The problem that I am facing is that nothhing is getting displyed even after clicking the image button. i am using master pages and this custom user control is being added dynamically to one of the child pages. I have added the scriptmanager as a part of the child page rather than as a part of the user control because there are multiple custom user controls present in this page. Lemme go to the code: This is the snippet present in the custom user control: [Code]....

AJAX :: AutocompleteExtender Does Not Work? forums.asp.net

I have aproblem with autocomplete extender in Vb website , it does not work at all never call the webservice here is the code for the page [code]....

AJAX :: Getting AutoCompleteExtender To Work? forums.asp.net

Followed all the instructions I could get on the net with several variations.  Not sure why I can't get it to work. Here's my code: This is WebService1.asmx [Code].... Here's my Default.aspx: [Code]....