.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

Postback without refresh on dropdownlists (no AJAX)

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :Windows Application

hello! I need help on my school project

Autopostback works but when one dropdownlist is selected the page refreshes. When the user select one dropdownlist, another dropdownlist will then populate if not its empty. After submitting the form, selecting dropdownlist will remove all the validation message. What i want to achieve is to have javascript to manually postback instead of using autopostback so that the validation message will still remain after selecting from dropdownlist but without using of AJAX as server cannot support :D!! ty

View Complete Post

More Related Resource Links

jQuery $(document).ready() and ASP.NET Ajax asynchronous postback

Many call it the ASP.NET jQuery postback problem, but using the technique below should make it no problem anymore. $(document).ready() isn't called after an asynchronous postback. What this means? You lose the functionality that should be executed within $(document).ready() after an UpdatePanel rendered its contents after an asynchronous postback.

jQuery live() and ASP.NET Ajax asynchronous postback

The issue is that normally $(document).ready() is called when the DOM is ready to be manipulated. But this doens't happen after an ASP.NET Ajax asynch postback occurs.

This means that the initial jQuery bindings won't be automatically available after the asynchronous postback is over. I underline "automatically" here because my last post describes more possibilities, how this issue can be worked around.

re load javascripts and jquaries after ajax refresh


I use javascript hints for my textbox and when page loads I set that, but after submiting data for example in the case of error in input and need for inputing again the data it doesn't show the hints, which means that when ajax sends Httprequest and gets Httpresponse and refreshes the update panel , that panel doesn't accept loaded jscripts again, so they should be loaded again.

I do not know how to do that in asp.net, any tips or recomendations?

Ajax Refresh Panel

Hi, plz i want detailed explanation about  "Ajax Refresh Panel" like how to use it and what is the use of this control its urgent Thanx

Refresh Label on web page without postback

Hi , In my web page i got a button and when this button is clicked it will display message on the label. Example : label text changed from "Start" to "Processing to "Completed". Therefore I want to refresh the label text on my web page so from user site they are able to see the text on Label is changing.. Thanks Linoo  

Refresh Label on web page without postback

Hi , In my web page i got a button and when this button is clicked it will display message on the label. Example : label text changed from "Start" to "Processing to "Completed". Therefore I want to refresh the label text on my web page so from user site they are able to see the text on Label is changing.. Thanks LeNoo

Refresh with ajax an img src

Hi All,How can I refresh an img src with ajax. I use the CAPTCHAImageController in my project.It returns an gif image.<img id="guvenlikKodu" alt="CAPTCHA Image" src="<%=Url.Action("Index","CAPTCHAImage") %>" />I want to refresh the image with a link.How can I do this?Kind regardsAysegülImage controller:(http://weblogs.asp.net/karlapudi/archive/2008/05/13/custom-captcha-image-action-result-for-asp-net-mvc.aspx)

Can't access dynamicly created textbox in AJAX postback.


I have a script which creates a dynamic textbox (and more) in an AJAX async post back. But when I try to acess the textbox I am told "Object reference not set to an  instance of an object". I have been strugleing with this for a long time and can not get it to work so please help me. This is written in C# .Net 4. The line causing the problem is the very last one where I have tbGameName.Text.Trim()

using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class GameInformation_AddUpcomingRelease : System.Web.UI.Page
    protected override void OnInit(EventArgs e)
        string v = this.Request.Params.Get(this.ddlAmountToAdd.UniqueID);

        string[] Regions = { "USA", "Japan", "Europe", "Other" }; //Create a string array of regions.
        string[] Platforms = { "PlayStation 3", "X-Box 360", "Wii", "Computer", "PSP", "Other" }; //Create a string array of platforms

        CreateControlSet(1, Regions, Platforms); //Generate the first Control Set

        if (!string.IsNullOrEmpty(v))
            for (byte i = 2; i <= Convert.ToByte(v); i++)
                //Add a

page inside update panel doesn't refresh the session object after postback of any control



I have many controls like dropdown, radiobuttonlist, etc on my page and I put all these controls inside the update panel so that the page doesn't look to be posting back when something is selected. Now the working on the page is very smooth. But the session object isn't getting refreshed even if I postback to the server and as a result even if the users are working on the page they are being sent to the login screen after 20 mins.

Is there anyway where I could put all the controls in update panel and still refresh the session after any postback(dropdown selection)

Any help is greatly appreciated.

Thanks in advance

Ajax update panel refresh and dropdown behaviour in firefox


I have found an odd bug in my application.  I have a dropdown status which is bound to my gridview. On selecting a status from the dropdown the selectedindex then fires and binds the results to the gridview.

Now the strange behaviour in firefox and not IE:

If I have a dropdown open and an ajax update fires on my gridview the option is selected from the dropdown (just by hovering my mouse over it rather than selecting it) and the results bound to the gridview. This does not happen in ie as you should have to physically select an item from the dropdown rather than firefox selecting it for you because you happened to hover over an option when the update event fires.

Anybody had the same problem or does anyone have a fix out there?

Your help would be appreciated.





avoid postback in multiple drodown list using ajax


i have 4 dropdownlist..state,district,place,product..where we have to select the product depend on state ,district ,place and product and there is search button for search particular product where iam using gridview to dipslay particular product deatails . i do not want to do auto past back eventfor page  when i select dropdownlist...i tried using ajax but still i cant get through..i tried this code but,,,,please helpme...how to use ajax for 4 dropdownlist & 1 button so that i can dispaly product deatails.....

<asp:scriptmanager id="ScriptManager1" runat="server">
                    <asp:updatepanel id="UpdatePanel1" runat="server">
                    <asp:label id="Label1" runat="server" stext="STATE:" style="display:inline " mce_style="display:inline ">STATE:</asp:label>
                    <asp:dropdownlist id="DDLSTATE" runat="server" height="18px" style="position :relative; top: 6px; left: 2px;" mce_style="/position :relative; top: 6px; left: 2px;" autopostback="True" datasourceid="SDSSTATE" datatextfield="PUSTA" datavaluefield="P

How to improve ajax asynchronous postback speed


hello everybody.

i am trying to increase my web based game movement system speed as much as possible.

i am using ajax asynchronous postbacks for moving on the map. (if you wanna check address http://www.pokemoncraft.com/gamepage.aspx )

so i am looking for all kind of tips to increase ajax asynchronous postback speed.

thank you

refresh listbox on updatepanel ajax control tool kit


Hi all, 

i have a dropdownlist and a listbox inside an update panel. I populate the listbox with a selected value of the dropdownlist and works ok. The problem is when delete an item from the listbox because does not the refresh of the listview and still to watch me the deleted item. 

how can i do the refresh?

pd: i am using framework 2.0

thx in advance!

ASP.NET AJAX : Collapsible Panel PostBack


Hi experts,

I have used CollapsiblePanel on my page, but when page is Post back, then it is redrawing all controls inside to it.


How to resolve it?

Please reply guys.


Flickering Problem while using a Ajax Timer Control to refresh a chart control in asp.net2010

Hi Everybody ,  

I am facing a flickering issue when i am trying to refresh a chart control on the tick of a timer .I am listing

below the code of my application ,Please help me remove this problem so that chart control get refreshed without any flickers on the specified time interval

Thanks in advance.

 C# code:

public partial class _Default : System.Web.UI.Page
    protected void Page_Load(object sender, EventArgs e)
        if (!Page.IsPostBack)
            MyLabel.Text = System.DateTime.Now.ToString();
            Txt1.Text = "Mohit";

    protected void Timer1_Tick(object sender, EventArgs e)

        Label1.Text = "Grid Refreshed at: " + DateTime.Now.ToLongTimeString();

    public void BindData()
        DateTime st = new DateTime(2010, 6, 1);
        int dys = 12;
        Dictionary<DateTime, long> dict = GetData(st, dys);

        foreach (DateTime d in dict.Keys)
            string xlab = d.ToString("M/d");

            DayOfWeek wd = d.DayOfWeek;
            if (wd == DayOfWeek.Sunday || wd == DayOfWeek.Saturday)
                Chart1.Series["weekends"].Points.AddXY(xlab, dict[d]);

Ajax redirect without postback ?


Hi all.

I'm beginner developer.

How to redirect without postback?

I do http://forums.asp.net/p/1099664/4180179.aspx#4180179

but get error

                         throw new Error('ASP.NET Ajax client-side framework failed to load.'

and use this

<meta http-equiv="Page-Enter" content="blendTrans(Duration=0.5)">
<meta http-equiv="Page-Exit" content="blendTrans(Duration=0.5)">

it's still postback.


<asp:HyperLink ID="HyperLink2" runat="server" CssClass="mainlink" NavigateUrl="~/Index.aspx">Home</asp:HyperLink>
<asp:LinkButton ID="LinkButton1" runat="server" CssClass="mainlink" PostBackUrl="~/Index.aspx">Index</asp:LinkButton>
<asp:HyperLink ID="HyperLink1&q

Using AJAX timer to refresh data


I am writing a ASP.NET C# application and using a AJAX timer in order to refresh some if the data every couple of seconds.

Whenever the timer function is called, it looks like the whole page is rendered again. For example, I have a list of tabs, the selected tab is not selected anymore.

I need to keep the selected tab 'selected' after refresh.

How can I achieve that?
I am attaching the relevant code.

my aspx:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="test.aspx.cs" Inherits="InternalMonitorTool.test" %>
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