.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Working with an external UpdatePanel

Posted By:      Posted Date: September 26, 2010    Points: 0   Category :ASP.Net


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!


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.

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

CAML query on external list is not working

Hi, I have an external list, display data from SQLServer 2008. Table on SQL have an UniqueIdentifire (GUID) type column as a Primary key. It also has one identifier column, Its value is increased by 1, as the item is created. In share point server side code, I want to fetch single record against the primary key GUID value. I write down the CAML query on GUID column and run without any error. But all the external list data is returned instead of Single list item. I also try to filter on Auto Incremented column, but same problem is occurred.

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.

External content types are not working in SharePoint 2010 Web Front End in DMZ


I have discovered that my Web Front End server will try to connect directly to the SQL server I have listed in my external content type.  I am able to render the contenct properly on my SharePoint 2010 App server, but when I try to render the list on the DMZ server I receive Cannot connect to the LobSystem (External System).   Is there a way around this?  I would like my Web Front End to connect only to my SharePoint 2010 App tier which has access to all of the databases in my infrastructure.  The Web Front End only has access to the App tier.



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

SharePoint 2010 crawling external websites not working


I have a SharePoint 2010 Enterprise Installation on two Windows 2008 R2 Server with an additional SQL 2008 R2 Server also on a Windows 2008 R2 Server. My problem is now that I cannot crawl external websites. Local SharePoint sites and File share are working, only external websites are not working. I have a SharePoint 2007 and also a SharePoint 2008 Search Server Express running on which I can crawl the same websites without problems. I set the DisableLoopbackCheck DWORD on booth server in the registry but this didn’t help. The warring in the evenlog is changing it depends on the crawled URL. Here are the two warrings:

Source: SharePoint Server Search
Event ID: 14

The start address http://www.exampleurl1.ch cannot be crawled.

Context: Application 'Search_Service_Application_01', Catalog 'Portal_Content'

Access is denied. Verify that either the Default Content Access Account has access to this repository, or add a crawl rule to crawl this repository. If the repository being crawled is a SharePoint repository, verify that the account you are using has "Full Read" permissions on the SharePoint Web Application being crawled.   (0x80041205)


The start address http://www.exampleurl2.ch cannot be c

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

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


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">

Connect to Outlook not working for an External List in 64-bit Office 2010


I've used Business Connectivity Services in SharePoint 2010 to create an External Content Type with Office Item Type 'Contact'. I then created an External List in a SharePoint site to display the items in the External Content Type (after granting permissions on the ECT). When I click 'Connect to Outlook', a VSTO is created and installed. It says, the install is succesful. However, I do not see the contacts in my External List in Outlook. This is a 64-bit version of Outlook 2010. When I click 'Connect to Outlook' again, I get an error: "Cannot install or update this external list on client machine because another update is already in progress".

From another client machine where I installed the 32-bit version of Office 2010, this functionality works great. It seems the VSTO SharePoint BCS creates when you click 'Connecto to Outlook' on an external list, is not compatible with 64-bit versions of Office. Just to make sure there were no other differences between my two machines, I went back to the 64-bit Office client, uninstalled all Office software, then installed the 32-bit version of Office 2010. I then did my test again, and everything worked just great.

So, my conclusion is: Connect ot Outlook does not work on a SharePoint 2010 External List when you are running 64-bit Office 2010.

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?


Master page controls postback is not working with updatepanel


?Hi All,

I have a web page that contains an updatepanel, inside this there is a button with script in OnClick event.

While clicking the button am setting a text in the label control which is in the site.master

My problem is that label is not showing the text am setting (or postback for master control is not working).

Without updatepanel label is coming.


Thanks in advance



Working with SharePoint document libraries

Document libraries are collections of files that you can share with team members on a Web based on Microsoft Windows SharePoint Services. For example, you can create a library of common documents for a project, and team members can use their Web browsers to find the files, read them, and make comments. Users with Microsoft Office 2003 can check out and edit the files as if they resided on a local or network drive.

By default, your team Web site comes with a built-in document library named Shared Documents, which is listed on the Quick Launch bar as well as on the Documents and Lists page.
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