.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

ASP.net buttons not working in UpdatePanel....

Posted By:      Posted Date: October 25, 2010    Points: 0   Category :WPF

Any ideas as to why my 2 buttons aren't working?

<asp:UpdatePanel ID="UpdatePanel1" runat="Server">
      <asp:Timer ID="Timer1" runat="server" Interval="1000"></asp:Timer>
      <asp:Panel ID="Panel1" runat="server" Width="600px" ScrollBars="none" Font-Size="XX-Small">
       <asp:Repeater id="test" runat="server">
         <table width='100%' border='0' cellspacing='0' cellpadding='2' style='table-layout: fixed; overflow: hidden; border-collapse: collapse'> 
         <tr style="border-bottom: 1px solid #CCCCCC; vertical-align: top">

View Complete Post

More Related Resource Links

UpdateProgress with a dummy updatepanel not working


I have a Submit button and some functionality like updating DB and fetching next page in the button click event. This process takes a long time and I want to display a message saying "Progress...." right after clicking the botton. I want to do the same in 20 other pages. So, best way to do it wd be to put the modalpopup MPE or an Updateprogress in a usercontrol or in master page. I first tried putting both of these on the page itself to test and see and neither worked.

I tried using Update progress control with a dummy updatepanel and giving the Submit button as Asyntrigger to the dummy updatepanel. I have also tried using MPE but it didnt work either. Below is an example of what i did..

<asp:UpdatePanel ID="UpdatePanel1" runat=server><contenttemplate><triggers><asyntrigger ID= "Submit"> /> /> />

<asp:updateprogress ID="Progress1" unat=server AssociatedUpdatePanelID="UpdatePanel1"><Progresstemplate>Progress.... />/>

<asp:button ID= "Submit" runat=server >

I have nothing for updateprogress in code behind. Am i missing or doing somethign wrong here? Any help would be appreciated.

link buttons are not working in Blackberry bold (9650, 9700)



we have deveoped a mobile application . and have some link buttons  ,thease linkbuttons are working fine with blackberry curve but not working when we use Blackberry bold (9650, 9700)


Textwrapping with buttons not working as expected

Guys and Gals, Got a bit of a problem with my application. I am trying to get the text and buttons in a groupbox to wrap when the page size changes (i.e. gets too small to fit it all on the page.) I have inserted the TextWrapping="Wrap" into the TextBlock line but it refuses to wrap. I have tried everything I can think of for this. Am I doing something wrong or is it impossible to do? If someone could point me in the correct direction it would be greatly appreciated. I don't want to use a scroll viewer either. <Window x:Class="Test.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Width="Auto"> <StackPanel> <TextBlock >Load Data Mappings From File</TextBlock> <TextBlock TextWrapping="Wrap"> This task will truncate all existing data Maps and re-import from an excel spread sheet.<LineBreak/> </TextBlock> <GroupBox Header="File to Load" Name="groupBox1" Padding="10" Margin="10"> <StackPanel> <StackPanel Orientation="Horizontal"> <TextBlock DockPanel.Dock="Left" VerticalAlignment="Center" Width=&qu

Response.Redirect is not working with UpdatePanel

 Response.Redirect is not working with UpdatePanelafter migrating a web site to ASP.NET version 4.please help urgent

Image upload not working in updatepanel

Hi, in my update panel i need to upload a image.my Fileupload control within update panel.so when i check is it correct format or not in following code then it always take else part. Dim fileUpload1 As FileUpload = CType(Me.FindControl("FileUpload1"), FileUpload)            'Make sure a file has been successfully uploaded            If fileUpload1.PostedFile Is Nothing OrElse String.IsNullOrEmpty(fileUpload1.PostedFile.FileName) OrElse fileUpload1.PostedFile.InputStream Is Nothing Then                Label1.Text = "Please Upload Valid picture file"                Exit Sub            End If            'Make sure we are dealing with a JPG or GIF file            Dim extension As String = System.IO.Path.GetExtension(fileUpload1.PostedFile.FileName).ToLower()            Dim MIMEType As String = Nothing            Select Case exte

The delete and edit buttons not working in gridview!

Hi everyone. I have problem with the buttons Edit and Delete in Gridview for very long time and i really need help about it.  So the when i click edit i get in edit mode and when click update the values in the row i was changing disappear but only in the gridview. When check in the Database nothing happens. The delete button not works at all, i mean when click on it only refresh the table. If see something wrong in my code please help. See how looks my page:Now here's my code in aspx:<%@ Page Language="C#" Title="Specific Search in Phone Directory" ... ... ... <asp:SqlDataSource ID="SqlDataSource7" runat="server" ConnectionString="<%$ ConnectionStrings:ThisIsMyConnection2 %>" OldValuesParameterFormatString="original_{0}" DeleteCommand="DELETE FROM [Resident] WHERE [MobileNum] = @MobileNum" InsertCommand="INSERT INTO [Resident] ([FNAME], [LNAME], [MobileNum], [HomeNum], [OfficeNum], [FaxNum]) VALUES (@FNAME, @LNAME, @MobileNum, @HomeNum, @OfficeNum, @FaxNum)" SelectCommand = "SELECT * FROM [Resident] WHERE (([FNAME] + ' ' + [LNAME] LIKE '%' + @FANDLNAME + '%'))" UpdateCommand=

Crystal Report viewer navigation buttons not working

Working in Visual Studio 2008 and using the packaged Cystal Reports (version 10.5). I have a couple pages that use the Crystal Reports Viewer to display the reports, and I use the CRV navigation buttons to page through large reports. Problem: The Next button only goes to page 2. The Previous button goes to Page 1 every time. I've read that this is because the binding of the report occurs in the Page_Load() and the CRV paging resets every time the report is rebinded. It was suggested to move this into Page_Init() which should only fire once, save the report in Session state, and then rebind on post backs. I've tried this, but my code never seems to reach the Page_Init(). In fact, I don't even see Page_Init() as an option. I've tried protected override OnInit(), but it fires every post back so that's no good. Does anyone have suggestions for a solution? Where is Page_Init() in Visual Studio 2008?  Thanks for any help.  -Robert    

ReportViewer inside UpdatePanel not working


Has anyone been able to get the ReportViewer to work correctly inside an UpdatePanel?

For me the report renders fine on the initial whole-page refresh, but when I click the next page button the next page renders but doesn't allow me to navigate through the pages anymore. The toolbar says "(blank) of 0" pages and the arrow toolbar buttons for navigating between pages are all disabled.

Link Buttons, Tab Navigation Not working in chrome


Hi forumians,

In my project i have tab navigations (like 4 tabs in a page) when i click on the tab i will get that corresponding tab fields.

for tab navigation

i use

Menu item

my code is below

<asp:MenuItem Text="Personal" Value="0"></asp:MenuItem>
<asp:MenuItem Text="Education" Value="1"></asp:MenuItem>
<asp:MenuItem Text="Experience" Value="2"></asp:MenuItem>
<asp:MenuItem Text="Awards" Value="3"></asp:MenuItem>


the tab control is working well IE, FIREFOX,

But not in chrome browser i cant do the tab navigation and link button clicks and Ajax calendar control also.


kindly tell some way to fix the problem








Working with an external UpdatePanel



I am still working on my simultaneous login. I have managed to have a user be logged in to our site when he logs in on our forum, now I'm working in the other direction.

The login page (.ascx) of the forum is integrated in an UpdatePanel. Is it possible to call upon this Panel from a file that is not directly associated with it (if not, how do I make an association?)? In other words: is it possible to use this UpdatePanel to do the login procedure in the background? The same login procedure that a user would normally do; this means filling in the "username" and "password" field and then sending that data by clicking on the "Login" button.

My file structure is as follows:

  • /MySite/
    • /Forum/
      • login.ascx
      • login.ascx.cs
    • login.aspx
    • login.aspx.cs

So the file /MySite/login.aspx.cs would call the file /MySite/Forum/login.ascx.

Many, many thanks in advance!


IE 9 Beta & InfoPath 2007 Form Radio Buttons Not Working



Has anyone else come across the IE9 bug that causes the radio buttons in the InfoPath 2007 forms to stop working (i.e. unselectable)?

Did you find a workaround (other than not to use IE9!)?



overflow:auto not working inside updatepanel


Hi all:
I have a div and a css class that gives overflow. but when i add this div inside updatepanel. overflow:auto doesnt work any solution ?
 <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                <div id="mycontent" runat="server">

Radiobuttonlist triggers updatepanel only a few times adn stops working


I have a radiobutton that triggers the updatepanel to display or not..

when the page loads, i can select yes adn it displays, i can select no and it disappears.. i hit yes it reappears.. but after like the 3rd time going back and fourth testing the functionality, it stops displaying all together.

Is there something i need to look at to find out what is going on?

Here is my code on the page and code behind

            <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional" >
            <div id="camDL" runat="server" visible="false">
                  CONTENT GOES HERE
                    <asp:AsyncPostBackTrigger ControlID="rblEnableCamDL" EventName="SelectedIndexChanged" />

        protected void rblEnableCamDL_SelectedIndexChanged(object sender, EventArgs e)
            if (rblEnableCamDL.SelectedValue == "1")
                camDL.Visible = true;
            if (rblEnableCamDL.SelectedValue == &qu

Crystal Report Export and Print button not working inside UpdatePanel



Iuse UpdatePanel for my pages, clients requested to view pages without flickering.

So, I put all component in update panel, but after that, export and printing for Crystal Reports stoped to work. If I put report viewer outside of updatepanel its working.

Have anyone this problem? There's some solution for this?

Thanks, Paul

Javascript allert inside AJAX UpdatePanel not working


I am having problems with alert box not popup when I'm using AJAX UpdatePanel. The following is what I have and it's not working.

1    ClientScriptManager csm = Page.ClientScript;
3    if(!csm.IsStartupScriptRegistered(this.GetType(), "winPop"))
4    {
5    	csm.RegisterStartupScript(this.GetType(), "winPop", "alert('Update is successful');", true);
6    }

I have to stress that the reason why it does not work is because I'm using AJAX UpdatePanel. If I turned off the AJAX UpdatePanel then it works perfectly. So does anyone have solution to go around this AJAX UpdatePanel issue?

Response.Redirect not working on an UpdatePanel if redirecting to a ClickOnce application (in some c



I have a strange issue. I am using the AjaxControlToolkit 3.0.30930 (the most recent). I have a very simple page with an UpdatePanel. A button on the UpdatePanel invokes Response.Redirect and passes the URL of a Click Once application on the same server. This works well if I run the website on my local system (Windows 7, IIS 7.5).

If I run the website on a remote system (Windows Server 2008, IIS 7.5, same settings) the redirect simply does not work when invoking the page from remote (using the IP address). Instead a postback is executed. Even if I use the IP address of the webserver to invoke the website locally on the webserver, the redirect does not work. Using http://localhost on the webserver the redirect works well.

I tried another test page with no UpdatePanel: The redirect works well in all scenarios.

I tried out to invoke the ClickOnce application using a link instead of Response.Redirect: The redirect works well in all scenarios, even with an UpdatePanel.

Does anyone have a clue what the problem might be?


Here is the ASPX:


<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TestWithUpdatePanel.aspx.cs" Inherits="TestWithUpdatePanel" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//E

SharePoint PeopleEditor control is not working properly inside UpdatePanel


WSS 3.0

I have a page with UpdatePanel and PeopleEditor control inside it. PeopleEditor control does not restore selected user(s) after post back.
Searching over support forums gave me some answered questions but page with solution http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopmentprerelease/thread/b4756f6b-0940-4c2c-9c09-3d7dd7646fef is not found now.

Where else can I find the solution for this issue?


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