.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

Trigger UpdateProgress by clicking on HTML link

Posted By:      Posted Date: October 01, 2010    Points: 0   Category :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?

View Complete Post

More Related Resource Links

Html Link Button


Hi All,

I would like to create a html link button(in aspx page) so that the page could not post back and some controls to display on clicking link button.

Can any one of you help me regarding this issue?

Let me know if you have any queries.



Clicking on "Shared Documents" gives link to download instead of opening document library

Hi, I hope someone can help! All of a sudden (I don't know if someone has changed something!), whenever anone clicks on a link to open the "shared documents" document library in a specific site within our sharepoint site, instead of opening the document library, it instead gives a download dialog for a zip "AllItems.aspx" as a zip file. Anyone got any iteas what could have gone wrong and how to correct the issue?   Many thanks for any help!

open pdf from html link

 Hiiii Coders, I want that  whenever user click on html link of my website, it will open my pdf file. How can i achieve this? plz rep as soon as poss thanx znd regards  

unexpected error while clicking on document link

Hi, To upload 50 MB file, execution time has been changed, and large size document can be uploaded. but, while clicking on the document link to open , it shows 'unexpected error has occured"  and no log entries. Please help me in this.Thanks in advance.

Ajax - literal not updated after adding a regular html link

Hi,Took me a while to track this down and a number of hours trying to figure it out, but at this point I just do not get it. I have a master page and a content placeholder in it encompassed in UpdatePanel like this:...<aspUpdatePanel...>    <asp:ContentPlaceHolder...>    </asp:ContentPlaceHolder...></asp:UpdatePanel>...<asp:UpdateProgress...>...</asp:UpdateProgress>And then a page like this:...<asp:Register ... MyControl...><asp:Content...>    ...        <ctl:MyControl ID="myControl"... />    ...        <asp:Literal ID="literalError"... />        <asp:Button ID="ButtonSubmit" OnClick="ButtonSubmit_Click"... /></asp:Content>Now, the control's .aspx is like this:...some .net controls here...And the code-behind is like this:protected override void ValidateForm(){     ... some validation here ... this.error = "some error"...}The control inherits from a custom control that looks like this:public abstract class MyCustomControl : UserControl{    ...    private string error;    ...    protected abstract void ValidateForm(

How to count the download done through a html link


I have two types of downloads at our site. One is from our server and rendered using server side code, which I record the number of downloads whenever the code is executed. Another is from our parterner's site and offerred with a regular html link, like <a href="http://www.partnersite.com/download/filename.zip>download</a>. How can I count the number of downloads for this link?

Error when clicking on servers in farm link unders Operations in Central Adminstration


Hi All,

I have below error message when click on servers in farm. Any idea how to resolve this. Thanks in advance! This is in WSS3.0

Object reference not set to an instance of an object.   at Microsoft.SharePoint.Administration.SPDatabase.get_Server()
   at Microsoft.SharePoint.ApplicationPages.FarmServersPage.get_ConfigurationDatabaseServer()
   at ASP._admin_farmservers_aspx.__Render__control8(HtmlTextWriter __w, Control parameterContainer) in c:\Program Files\Common Files\microsoft shared\Web Server Extensions\12\TEMPLATE\ADMIN\FarmServers.aspx:line 27
   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
   at System.Web.UI.Control.Render(HtmlTextWriter writer)
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
   at System.Web.UI.Contro

HyperLinkField Javascript DispEx: clicking link shows Read Only/Edit dialog


I have a web part that uses an SPGridView to display the documents that match previously selected criteria.

The user needs to see the 'Read Only / Edit' dialog that is displayed when a document is selected directly from the document library.

My research shows that I need to call the Javascript DispEx function somehow. How do I do this in the HyperLinkField setup? Can I somehow call it in the DataNavigateURLFormatString? This code is my latest attempt (which doesn't work). The 'onclick=' appears in the hyperlink.

 Dim hfTitle As New HyperLinkField()
            hfTitle.DataTextField = "name"
            hfTitle.DataNavigateUrlFields = URL
            hfTitle.DataNavigateUrlFormatString = _
"<a onclick=" & Chr(34) & "return DispEx(this,event,'TRUE','FALSE','FALSE','SharePoint.OpenDocuments.2','0','SharePoint.OpenDocuments','','','','1','1','0','0x7fffffffffffffff')" & _
Chr(34) & "href={0}"

            hfTitle.HeaderText = "Name"

Make validation controls trigger only not clicking on submit button and not on other navigational bu


I have required validation controls on a page.  If the user got to this page by mistake and wants to go to a different section of the website using the navigational buttons; required validators are triggered and it will not let the user navigate away.  How do I get validators to trigger only when a submit button is clicked?


Thanks in advance!

How to avoid page flicker when clicking on a link


Hi I have noticed that many new modern websites (and templates like themforest templates) are being built without any page flicker.

What I mean by page flicker is that when you click on a link the hole screen flicker and then the new page is retrieved and viewed.  

Here are some examples of these new sites (templates) that do not have any page flicker.

I would like to know to make a website like above.

I do realize that it must be ajax or javascript. However what I would like is some code.

Thanks for reading.

Keep user from clicking verification link again


I'm using the following code to send an email verification link (from the security tutorials).  How would I modify the code below so that if the user has already clicke the verification link, it will display "account already verified" and redirect them to the login page?

  1. using System;  
  2. using System.Web.Security;  
  4. public partial class Verification : System.Web.UI.Page  
  5. {  
  6.     protected void Page_Load(object sender, EventArgs e)  
  7.     {  
  8.         if (string.IsNullOrEmpty(Request.QueryString["ID"]))  
  9.             StatusMessage.Text = "The UserId was not included

ASP.NET, HTML, JavaScript Snippet Support (VS 2010 and .NET 4.0 Series)

This post covers another useful improvement in VS 2010 - HTML/ASP.NET/JavaScript snippet support. Snippets allow you to be more productive within source view by allowing you to create chunks of code and markup that you can quickly apply and use in your application with a minimum of character typing.

Visual Studio has supported the concept of "snippets" for VB and C# in previous releases - but not for HTML, ASP.NET markup and JavaScript. With VS 2010 we now support snippets for these content types as well.

Maintain HTML Radio Button Selection Inside GridView After Postback

Long time ago I wrote an article about getting the value of the selected RadioButtons inside the GridView control. The code did not addresssed the postback issue which means that the selected radio button was cleared after the postback occurs.

Rendering ASP.NET Script References into the Html Header

One thing that I've come to appreciate in control development in ASP.NET that use JavaScript is the ability to have more control over script and script include placement than ASP.NET provides natively. Specifically in ASP.NET you can use either the ClientScriptManager or ScriptManager to embed scripts and script references into pages via code.

MSDN Abstract Classes Link

MSDN Reference For Abstract Clases

Getting value of Html.TextBoxFor(m => m.name)


Hi All,

I am new to Asp.net MVC 2. I am unable to get value for Html.TextBoxFor(m = > m.name) in view. I can get this value in Controller.

How to get this value in view.

Please help.

Embed Youtube inside Ajax Html Editor- problem



When inserting a simple embed of youtube inside the ajax editor, on firefox and chrome problems occur. On the other hand on internet explorer 8 everything works fine. I found this solution http://www.nopcommerce.com/boards/t/4228/bug-in-ajax-html-editor.aspx . 

My question is where do I find the DesignPanel.pre.js ?


Roderick Vella

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