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 7 years ago.
Improve this question
I'm trying to make one menu and using it on every web page I have instead of copying the same code in every file. This way I can change the menu in one file instead of 5.
I'm using ASP.NET Web Forms application (aspx-files).
I've tried googling it but the only result I get is PHP related, isn't there a way to do it with aspx/html files?
I think you're looking for master pages: https://msdn.microsoft.com/en-us/library/wtxbf3hh%28v=vs.140%29.aspx
You can create your menu in Web user control and then include it where ever you need
This link can show you how to add Menu bar in Master page, If Menu bar is in master page then you don't need to change the code in every page.
Master Page with Menu bar
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 5 years ago.
Improve this question
What can I use to view all the controls on a form if everything is overlapping each other etc. Don't want to touch it yet, just view, make sure they're there.
You could use the "Document Outline" window (view ==> other windows ==> Document Outline) to see all control inside the form and select them from there.
Try to use Document outline in visual studio.
View - Other Windows - Document outline or ctrl + alt + t. It should show you win form controls structure.
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 5 years ago.
Improve this question
I'm developing a program in C# & XAML where my MainPage has two frames, one of which is an entire page.
I want to load another page inside the Inner frame of MainPage, which has a number of buttons. By pressing one of them, I want to load the Third Page in my Whole Page Frame (bigger frame).
Any suggestions to make this happen?
"frame" being the name of the frame you want your page to appear on and "ThirdPage" a page item of your project, you could add the code below to the button click event you are talking about:
frame.NavigationService.Navigate(new ThirdPage());
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 7 years ago.
Improve this question
I would like to know how to create an custom user interface for a program I am making.
What I want to add besides the default buttons and text boxes is an raster image frame inside of the application and some raster image buttons that change their animation/image.
And also learn how to draw additional items on the screen (buttons, input boxes) after pressing the desired selector button (for input types).
All in all - I would appreciate it if some one pointed me to a tutorial for this or code examples I can learn from.
You have http://www.wpftutorial.net/ to learn how to create WPF interfaces (Windows Presentation Foundation) for Windows / Phone.
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 8 years ago.
Improve this question
I need to dynamically switch between weeks of year to show some tasks stored in DB in a similar way which is used in Windows Phone 8.1 Calendar app. But I can´t find the best xaml UserControl to get this behavior. I tried to use Hub with three sections, but I can´t figure out how to find out which section is currently showed(which eventHandler from section2 is raised when you move from section1 to section2) to dynamically change displayed section titles.
Any help wold be appreciated.
In the calendar App of Windows Phone 8.1 they're using a Pivot control to show the weeks and switch between them using swipe or clicking the item's inactive header.
Check this out: http://msdn.microsoft.com/en-US/library/windows/apps/xaml/windows.ui.xaml.controls.pivot.aspx
If you want to know which HubSection is currently in the view check this: How can I tell which HubSection is selected
//Nady
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/