.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 Disable Page

Posted By:      Posted Date: September 13, 2010    Points: 0   Category :ASP.Net
 Hello, we are working on an asp.net website that generates a report. The user selects various listboxes that customizes the report. WHen they click the "Run  Report" button, we want to "grey out" the page or either disable everything on the page so that they cannot click anythign while the report is generating. Originally, we tried this in ajax, but we could never get this to work because ajax doesn't allow round-trips?Anyone have any ideas on how to do this?  Thanks in advance!

View Complete Post

More Related Resource Links

TabControl - Disable/Enable tab page

I have a tabcontrol with 2 pages. OnLoad the 2nd Tabpage shall be disabled (grayed out and not selectable). Later with code I need to enable the 2nd tab. Any Ideas how this can be done? please./Morten

Disable Master Page Menu

Dear all, How can I disable the master page menu? The following line does not work. this.Master.findcontrol("menu1").visible=false;  Moreover, if this line is put before the function database processing (Code Behind) in the button click, would the menu bar become invisible during function database processing? I think it is different from web application and intranet application.

How can I disable hyperlinks of the sitemappath (page breadcrumb)

How can I disable hyperlinks of the sitemappath in the page breadcrumb   I do want to show the path, but without the links. I found     RenderCurrentNodeAsLink = False But this only applies on the last part of the path (current page). And there no such thing as   RenderParentNodeAsLink...   There has to be an easy way...

disable a button if the required page has no data


Hi all

I have the following scenario and I'm not sure how to go about in resolving it.  Any ideas would gratefully recieved.

I have a page(A) with a button that when selected opens a new page(B) with a populated gridView.

However if the gridview hasn't got any data to display, rather than use the  <EmptyDataTemplate> within the gridview, I'd rather use disable/lock the button on page(A) thus preventing access to page(B)

Is this possible?  How on earth would I go about such a task ?

Disable Page source


Hi friends,

        I have the requirement to protect the page source not only from right clicking but also View/page source.It must work in all browsers.

                   Ideas can also appreciated.

                                            Thanks in advance........

How to Disable Add all authenticated users link in Add user page of Sharepoint



I want to disable the link "Add all authenticated users " appearing on "Add user" page. Is there a way to disable or remove this link from the "add user" page.

I referred a blog http://sfguyalex.blogspot.com/2008/08/all-authenticated-users-please-stand-up.html where it mentions to remove the link by editing page in 12 hive AclInv.aspx.

Before doing that, is there any way thru configuration I stop users by clicking on this link?




disable button in page load click event using javascript



i have button its  enable false in aspx page, if i click the page load  click event  then button should enable

looking forward the reply.

Changing the graphics on the home page of a SharePoint site

When you create a site in Microsoft Windows SharePoint Services by using the default Team Site template, the home page includes two default graphics. A Windows SharePoint Services graphic appears in the body of the page, and a picture of a house in a circle appears near the site title. You can change these graphics to customize your site. Changing the smaller graphic requires a Windows SharePoint Services compatible Web page editor

Using jQuery to directly call ASP.NET AJAX page methods

Here I am looking to explain how to call page methods using jQuery. Using jQuery to directly call ASP.NET AJAX page methods

Reduce ASP.NET Page size and complexity using JQuery

This is my first post on asp.net blog. ASP.NET Ajax and JQuery are two different ajax framework. In this post I will show, how we can enhance gridview using ASP.NET Ajax and JQuery. I also compare the implementation of these frameworks. In next posts i will explain more about JQuery and ASP.NET Ajax and also tell you "How to combine the power of both framework". My Future post will related to ASP.NET and related frameworks.


I have 2 web pages. First page has a textbox and a button control.

when I enter test and click on the button , system goes to the second page. And in the second page I want to access the Textbox in the first page. When I try to do this I get the following error.

"Object reference not set to an instance of an object. Following is my code :

Dim txt As New TextBox

' Find the server name on the previous page
txt = CType(Page.PreviousPage.FindControl("TextBox2"), TextBox)
If Not IsNothing(txt) Then
Response.Write("[Name Not available]")
End If

I know I could do this with session, but I want to use the Page.PreviousPage.FindControl. Any help is greatly appreciated

Unique content within master page based on conditions met


 Hi all-

I would like to present users with unique content based on certain conditions being met as they land on the home page (default.aspx).  The condition logic will be in the VB code behind Page Load event. The content will go in a content placeholder as specificed from the master page. 

However, the content change wouldn't be something small (ie making a panel or label visible or not) but rather it will be different HTML,  Divs and databound gridview content.  The HTML content will be stored in the database.

Can someone point me in the right direction for best practices on how to accomplish this?


Launch CMD File From ASPX Page


My organization uses a CMD file to install updated files for a major enterprise application. Currently, we send out an email to users with a link to the file and instructions to run it, BUT inevitably users don't update their machines until their in field and try to start the app.


We're now liking the idea of using an ASPX page to prompt the users to run the updates and to capture the fact that the updates have been run. I realize that we can't capture the success or failure of the update. But we'd like to capture the user accessed the page.


Is it possible to embed into the markup for the page a link to the file on the local intranet that the users can click on to run the file?

The user accessing the page would capture that they did just that. We'd deal with wether or not the update was actually installed or if it failed later with them directly.

Handling 404 page not found with Error page



      How do i handle 404 page not found?

Setting the default start page in godaddy hosting?


 How do you set the start page with godaddy hosting? I can see no way of doing this! You do not seem to have access to the IIS settings that allow you to change it!

Need help redirecting users to personalized page


 Hi, first timer here so be gentle.


I've been able to create a cool little website, it's up and running with users logging in and out, I created roles so my administrative team can see sensitive data that's not available to regular and anonymous users.

Now they would like me to create a page specific to each user.  For instance when user A logs in they are redirected to a page that has information that pertains to user A only (like a list of their benefits/ their remaining vacation time). This page needs to be accessible only to user A. 

I've watched a ton of the videos but have yet to see one that covers this topic, any help would be great!!!





Building Re-Usable ASP.NET User Control and Page Libraries with VS 2008


I am having problems with a user control. I want my solution to have a separate project for holding my user controls.

The main project can get a reference to this user control project and can import this user control dll into my main project. 

Thanks in advance,

Dheeraj Mittal


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