Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I knew, we can set the master page dynamically using Page_PreInit method of each page... but if i want to set the master page dynamically for more than 10 pages, changing the code in each page is not good idea....Did anyone tried using ASP.NET Http Handler?
Or you can use a base class/page which inherits from asp.net Page and have your 10 pages inherit from that base class. You can set the masterpage in the overloaded PreInit event on the base class.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I am creating a Microsoft access application, and I designed a login form, where the user inputs username and password. I want the form view of the form to be showing above the access window, as a pop-up... how do I achieve that?
Set the Popup property for the form to Yes. You probably also want to set the Modal property to Yes, which will disable the application window until the form is closed or hidden.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
i have designed a form using required validation that have two buttons Save and reset. save button are working properly but when i clicked on reset button it also checks the validation but not doing the another task. how can i solve this problem.
You can make the button skip validation by adding the attribute CausesValidation="false" to your .aspx page on the button markup.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I am using masterpages in my aspnet website. .
Whenever I refresh or reload or redirect to another page of same application , the complete page is getting reloaded which taking lot of time in binding header and footers. ....
Is there any other way keep header and footer constant and only content inside it get reloaded........
That is not something MasterPages is going to solve for you.
MasterPages are intended to easily reuse the framework of your site.
Picture from MSDN explaining the behavior of MasterPages:
As you see, it's just A+B.
If you want to prevent reloading it every time, use AJAX.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I'm creating a web page which has DataList. All Items in DataList have Checkboxes front of them. User checks some files, or all files, maybe just one file to download them. How can i make it happen? I'm using ASP.NET 4.5 Web Forms. Thanks :)
there are two ways doing it
1). Open multiple window with javascript with new name, call your aspx page in that new window.
2).First zip all selected files and then download that single zip file
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I just want to inform the user that the page is busy when it is loading or the action is being carried in the background or when the postback occurs by just changing the mouse cursor to busy.
The cursor should turn to normal pointer when the page is completely loaded in ASP.Net.
try this from setHourglass
With ASP.NET pages this is a bit more of a problem to do. You need to employ a little JavaScript.
Add this JavaScript between the tags on your ASP.NET web page:
Code:
function setHourglass()
{
document.body.style.cursor = 'wait';
}
Now you have to tell the web form to run the JavaScript funciton when a post back happens.
Add this to your tag:
Code:
<body onbeforeunload="setHourglass();" onunload="setHourglass();">
Also try this Hourglass-cursor-for-Web-ASP-NET-pages
Now to set it back to normal do this
document.body.style.cursor='default';
This helped me. However, it was for the ajax updatePanel. It may give you some ideas.
http://encosia.com/improved-progress-indication-with-aspnet-ajax/