If given the choice, which path would you take?
ASP.NET Webforms + ASP.NET AJAX
or
ASP.NET MVC + JavaScript Framework of your Choice
Are there any limitations that ASP.NET Webforms / ASP.NET AJAX has vis-a-vis MVC?
...
Could you recommend me a way to place a coundown timer on ASP.NET page?
Now I use this code:
Default.aspx
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Label ID="Label1" runat="server">60</asp:Label>
<asp:Timer ID="Timer1" r...
The cascading dropdown control works great except that I am unable to figure out a way to reset the dropdown client-side (in Javascript)
My set up is something like this
DD1
DD2
DD3
DD4
each DD is dependent on the previous DD and uses webservice to load them.
On change of DD3 I need to reset DD4 but the previous selection stays.
C...
I have the .net framework 3.5 on my development machine and also am using the AJAX toolkit in my code. In order to publish this code to a server for my users, do I need anything on the server in order for my AJAX code to operate correctly?
...
Title says it all. I've got an angry boss that will beat me down if I waste another day on this :-P Many karma points to the ajax guru who can solve my dilemma.
But more detail: I want to have an AccordionPane that grabs a bunch of links from an XML source and populate itself from said source.
...
We are writing a search application that saves the search criteria to session state and executes the search inside of an asp.net updatepanel. Sometimes when we execute multiple searches successively the 2nd or 3rd search will sometimes return results from the first set of search criteria.
Example: our first search we do a look up on ...
I have a menu control inside of an updatepanel. When I hover over a selected item, and then move back off of it, the css class gets set to staticSubMenuItem instead of staticSubMenuItemSelected. Is there a fix for this?
<asp:UpdatePanel runat="server">
<ContentTemplate>
<asp:Menu ID="SubM...
I keep getting this error when trying to re-order items in my ReorderList control.
"Reorder failed, see details below.
Can't access data source. It does not a DataSource and does not implement IList."
I'm setting the datasource to a DataTable right now, and am currently trying to use an ArrayList datasource instead, but am discourage...
I have a user reporting that when they use the back button to return to a web page that they come back as a different person. It seems like they may be accessing a different users profile.
Here are the important parts of the code:
//here's the code on the web page
public static WebProfile p = null;
protected void Pag...
I have an ASP.NET web service which does some heavy lifting, like say,some file operations, or generating Excel Sheets from a bunch of crystal reports. I don't want to be blocked by calling this web service, so i want to make the web service call asynchronous. Also, I want to call this web service from a web page, and want some mechanism...
I've got an asp.net ajax style AccordionPane control that I am trying to get/set based on some user interactions. However it seems not let me do this with javascript:
function navPanelMove() {
var aPane = $get('ctl00_Accordion1_AccordionExtender_ClientState');
openPaneID = aPane.get_SelectedIndex(); // doesn't work
}
...
To start, I know there are two "kinds" of JSON serialization currently built into ASP.Net: you can either use the JavaScriptSerializer class to serialize your object to JSON or the new DataContractJsonSerializer class to convert a object to JSON.
If you use the JavaScriptSerializer() method, you must mark your class as Serializable() --...
What aspects of the UpdatePanel are sensitive to time?
I have an UpdatePanel that works fine. If I leave the page for a few minutes and come back, the UpdatePanel doesn't work. Looking at firebug, I see that it sends the Request and gets a Response back. However, the page itself doesn't update. I'm not seeing any script errors eithe...
I have a Button inside an UpdatePanel. The button is being used as the OK button for a ModalPopupExtender. For some reason, the button click event is not firing. Any ideas? Am I missing something?
<asp:updatepanel id="UpdatePanel1" runat="server">
<ContentTemplate>
<cc1:ModalPopupExtender ID="ModalDialog" runat="server"
...
I have an Panel control that I need to maintain position across postbacks. I am able to do this by maintaining a cookie which is read each time the page is loaded to get the position of the Panel before the page is loaded.
The problem is, the page is loaded, then repositioned which causes this brief flash where the control is at its de...
It seems that in some cases, if you end up with nested modalPopups wrapped with updatePanels (not ideal I know, and should probably be refactored, but that's what we're working with because of how some of the user controls we wanted to re-use were written), when you fire a postback that should open the nested modalPopup, instead it close...
I have report on my asp page and every time I change a filter and click view report, I get this error:
Microsoft JScript runtime error: 'this._postBackSettings.async' is null or not an object
I tried change the EnablePartialRendering="true" to EnablePartialRendering="false" but then people can't login on the site
...
Greetings!
I have a WebService that contains a WebMethod that does some work and returns a boolean value. The work that it does may or may not take some time, so I'd like to call it asynchronously.
[WebService(Namespace = "http://tempuri.com/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.ComponentModel.Toolb...
I've got a dropdown list that is being populated via a webservice using ASP>NET AJAX. On the success callback of the method in javascript, I'm populating the dropdown via a loop:
function populateDropDown(dropdownId, list, enable, showCount)
{
var dropdown = $get(dropdownId);
dropdown.options.length = 1;
for (var i = 0; ...
When I have a regular textbox in a UpdatePanel (not an ASP.NET control) with some JavaScript events on it, after the UpdatePanel updates my events are gone. Is there a way to re-attach my events after the update? (Preferably without putting my events inline).
...