Web Forms :: Disable The Whole Page?
May 10, 2010
I am going to put the whole page controls within one updatepanel and use updateprogress to show the processing image.
Would I click the button which will lock the whole page from editing??
Does it need code behind?
View 3 Replies
Similar Messages:
Sep 25, 2012
am creating a web application in using c# with asp.net.
in that am using login page only as normal aspx page. other pages are using masterpage.
when i click logout button in masterpage. page will redirect to login page. after that if i click browser back button it was moving to previous page. how can i prevent this.
am using this following code in master page aspx page. And My log out button code is below.
<%if (!Page.User.Identity.IsAuthenticated)
{ %>
<script type = "text/javascript" >
function preventBack() { window.history.forward(); }
setTimeout("preventBack()", 0);
window.onunload = function() { null };
</script>
<%} %>
But exactly what i need is once if login page loaded or logged out then it wont go to previous page.
View 1 Replies
Dec 16, 2010
I have asp:Menu on Master page like:
[code]
On content page (Login.aspx), I got Uesr Type. For Admin type only, I need to show the above bold menu item. No problem for getting User Type as "Admin". Just problem is that, how to visible/in-visible or enabled/disabled above bold text menu item?
View 3 Replies
Mar 21, 2011
I Have a login page and I want to disable the menu options from my master page.
I have come across the following code:
[Code]....
But when I put this into the page load it gives me syntax errors stating menu is a type and cannot be used as an expression.
View 2 Replies
Feb 2, 2011
I am just trying to set it so that when textbox1 is active on the form, all the other textboxes are disabled but for some reason the page still lets the user enter information into the other textboxes? I have tried this so far
[Code]....
View 2 Replies
Dec 3, 2010
my page has two part.one part for inserting room information and anothe part is for inserting apartment information.foreach part i have some validations.i want when click in roominsert button validation in apartment part disable.
View 3 Replies
Feb 28, 2011
How to disable postback on page..
View 2 Replies
Jul 2, 2010
I am working with the master pages which contain the Manu control. I want to disable the few menuItems from the master page's Menu control in the child form. I have tried so many times but I only succeded to disable the whole menu of master page, but my sanerio is different. I have to disable only few MenuItems from Menu and also want to disable few Items of Submenu
View 2 Replies
Mar 27, 2011
I have pages with lot of controls (datagrid, treeview, listview, checkboxes itd...). Each control have event usually SelectedIndexChanged and that is ok. On page load, I read default values from database and set controls selected or not. Problem is that in this case fires every damn event of each control and causes problem with loading page. I want to completely turn of runing of all events while triggered from page.load event? Is there nice solution for this? I dont want to mess with RemoveHandler and AddHandler in page.load procedure (although I tried to remove handler, change selected index and then add handler, all in same page.load procedure but it doesnt work).
Is there possibility to turn all events for load procedure, or to use another procedures (init, preinit, loadcomplete, prerender...) to store default values readed from database?
Or can I somehow figure out from witch procedure is called event, then I can implement something like this to skip executing event:
if sender.fromprocedure = me.load than exit sub
View 2 Replies
Dec 30, 2010
I have read that you can not disable the back button on page load but I can clear the cashe on page load so the back button would then be greyed out. I have read a few articles on this and I am unable to get it working. I am using MS visual web developer 2010.
View 2 Replies
May 15, 2010
I have an application that uses ASP.NET Forms Authentication. For the most part, it's working great, but I'm trying to add support for a simple API via an .ashx file. I want the ashx file to have optional authentication (i.e. if you don't supply an Authentication header, then it just works anonymously). But, depending on what you do, I want to require authentication under certain conditions.
I thought it would be a simple matter of responding with status code 401 if the required authentication was not supplied, but it seems like the Forms Authentcation module is intercepting that and responding with a redirect to the login page instead. What I mean is, if my ProcessRequest method looks like this:
[code]....
Then instead of getting a 401 error code on the client, like I expect, I'm actually getting a 302 redirect to the login page.
For nornal HTTP traffic, I can see how that would be useful, but for my API page, I want the 401 to go through unmodified so that the client-side caller can respond to it programmatically instead.
View 6 Replies
Jun 30, 2010
I have a page that I need to disable, or re-direct to another page if a different type of user logs in.
The application has this page for one type of user but another type of user is not allowed access it.
How would you do this type of thing?
View 3 Replies
Jan 20, 2011
I have a webform where I have validators and submit buttons.WhatI am looking for one of my button is1. When its clicked, if all the validators are satisfied, 2. If all the validators are ok, It should disable the button for postback so that user cannot click it again during its process ( means during postback )3. it should enable back after postback if possible otherwise I can do it from code behind at the end of my process,
View 3 Replies
Apr 19, 2010
I am working on a web app that displays customer orders.When the app runs in IE 8, some of my transaction ID and invoice numbers are getting converted into a graphic. When you hover of it, It says to "click here to call this Skype number in Namibia". In Firefox, it displays correctly.Here is a screen shot:This app is going to be used by external customers, so I don't have control over their browser settings. I need to programmatically prevent it, somehow.Is there any code I can put into my web form to prevent third party DLLs from doing this?Is this related to IE 8 or is something that Skype is doing?
View 2 Replies
Oct 7, 2010
I have a user control in my Master page and need to be able to Enable/Disable it from ANY page. How is this done? My user control has a few TextBox fields and a button. I was hoping to set a public property and simply Enable/Disable, but public properties seem to only work on the Master page code behind and not other pages.
View 4 Replies
Jan 19, 2011
How to disable default button feature at page level in asp.netin this i have usercontrol and master page
View 2 Replies
Jun 24, 2010
The following code works fine for disabling content page controls, but how do I disable master page controls?
public void DisableControls(Control control,bool isEnable)
{
if (control.HasControls())
{
foreach (Control c in control.Controls)
{
DisableControls(c, isEnable);
}
}
else
{
if (control is IPostBackDataHandler && !(control is IPostBackEventHandler))
{
if (control is WebControl)
{
((WebControl)control).Enabled = isEnable;
}
else if (control is HtmlControl)
{
((HtmlControl)control).Disabled = !isEnable;
}
}
}
}
View 2 Replies
Jun 3, 2010
I am using AJAX TabContainer control with following settings. When I change a tab the postback happens and whole page refreshes. Because AutoPostBack="true"> . To AJAxify the behavior, I added UpdatePanel around it but still the page is refreshing. The control need to go to server because user controls contains some grids which need to be populated.
[Code]....
How can I disable the page refresh and at the same time server side operation happens in this case?
View 3 Replies
Dec 21, 2010
I built a simple application that is used to manage photos for an image gallery on my employer's website. A user can add, edit, or delete items which are stored in an XML file. I've set up Up/Down buttons so that I can move pictures up and down in the order.On the first page, I've disabled the Up button of the first item on the RowDataBound event... since it's already first
[Code]....
I'm trying to do the same for the Down button on the last item of the last
[Code]...
View 5 Replies
Jul 27, 2010
I have a Master Page for all my ASP.NET pages. It works fine for 95% of pages... Except that it also includes unwanted attributes that are included in the other 5% of pages. This causes application problems. Is it possible for Content Pages to somehow select to enable/disable a feature available in the master page? One option I can think of is for the Master Page to look at the page name and then decide what to do, but that's a bit clunky in the long run.
View 4 Replies
Aug 27, 2010
I am having 2 web formsand will have a drop down list on those web forms. If i select a value from drop down and click on ok i will get tranfer to next page. In that page i will have a drop down with the same values in the previous form . What i need is i would like to disable the selected value in the previos form and would like to display the remaining normal.
View 3 Replies
Aug 20, 2010
disable back button on my asp.net application. I Should not be able to go back to my previous page after I logout.
View 2 Replies
Mar 4, 2010
Is there any other way to disable the caching of the page? cause i have a page where in the background image in a DIV that keep on changing for every refresh. the problem is when a post back is trigger the background image wont refresh bec. it is cache in the browser. I've tried using this commands in server side
Response.ExpiresAbsolute = DateTime.Now.AddDays(-1d);
View 5 Replies
May 13, 2010
Is there a quick and easy way to essentially disable the Enter key on a page so that the user has to click a button?
View 3 Replies
Feb 15, 2011
I am looking for a way to prevent multiple submits on a page. I have a table that is displayed on a submit or href click in jquery. How do I have everything behind the table grey opacity and disabled?
[Code]....
View 4 Replies