I'm developing an ASP.NET application with C# and Visual Studio 2008 SP1. I'm using WebForms.
I have an ASPX page with two UpdatePanels, one on the left that holds a TreeView and other on the right where I load dynamically user controls.
On the left panel I also have buttons to load user controls on the right. I have a ModalPopupExtender in a button that show I div with radiobuttons to select a type. When I choose an option and click ok it do a postback to load dynamically a user control but instead of dissapear these modal panel it appers on the bottom left corner of the page.
What's happening? I think it is about dynamic load.
It is a bug on AjaxControlToolkit. I've decided to use the following answer: jQuery UI's Dialog doesn't work on ASP.NET
Related
I want to Apply a theme to all my forms in c#. how can i do it?
i have too many forms. and they should all have the same style( orange background and a logo on top right) It is very time consuming. I would do it only once and it apply to all my forms.
For ASP.NET WEBForms
You can use MasterPage and than add Content Pages inside it.
Add a Master Page in your project do all the designing in this back color logo and menus. Than add Content Pages which will have this MasterPage. So all your forms will have the same theme.
Right Click on your website from Solution Explorer.
Click Add New Item.
Select Master Page from the popup which appears.
For details see https://msdn.microsoft.com/en-us/library/wtxbf3hh(v=vs.140).aspx
For Windows Forms
You can use MDI Parent.
See this on how to use MDI Parent.
Am creating WPF windows form application.
There are bout 7-8 usercontrols. Each user control has back and next button. When I click Next button, second form will appear and on Back previous form will appear. (You can image this with any installer)
Am able to show/hide forms. I want to add animation. As soon as I click Next button, control 1 must slide to left and control2 must come in from right (Imagine VS2012 setup)
I am using storyboard and able to slide controls but issue is control2 comes only after control1 disappear.
Please help me or provide code to achieve something like Visual Studio 2012 setup screens animation.
Am using this link (Page Transition Control) for reference.
The functionality I'm looking for is similar to a web browser with tabs.
The main site navigation would consist of typical links. When a link is clicked, a tab is dynamically loaded with that pages content. The user can add multiple tabs by clicking navigation links.
If they begin filling out a form on one tab, then switch tabs and come back, the form data should still be there.
The tab controls I've looked at (DevExpress, AJAX tab control) don't allow this, or don't maintain tab data when switching from tab to tab. The tab control is regenerated with every post back.
Maybe I am over thinking this and there is a simple solution. Any ideas? I can use DevExpress controls, jquery, or regular asp.net controls.
Thanks!
Kevin
I am currently testing a menu in ASP.NET I've recently made using asp:menu control.
The menu is just as I want it to be right now, but whenever there is a postback that updates the whole page, it moves a little downwards (only once, a second postback won't move it a little bit more).
It's not CSS - > I've removed all CSS from this menu)
It's not any property -> I've commented out everything related to customizing the menu
It's not any other element above it enlarging -> I've specially put it inside a table, in which the only content is the asp:menu control
It moves a lot downwards in IE6, a little in IE8, and it doesn't move at all in Firefox 4.
What could I do ? Are there any alternatives ? Is there any property I can use, or any outer element I could put it inside in order for it to stay still ?
And yes, every single machine this is going to run in is using Internet Explorer. The nightmare of any web developer.
---[update]-----
I've built a menu in a separate project, and the effect wasn't there! I've copied the exact same files into my project, and ran it, and the issue was there.
Could it be a difference in the asp.net version ?
Did you check using IE web developer toolbar to see what's the html looks like in that area before and after the postback? It seems more like a browser issue so the toolbar would give you details as what is coming in the gap or may be what's pushing it down.
If the app is in asp.net 4.0, look at the source code of the page after it renders the first time, and then after the postback. Make sure it renders as divs on both or tables on both.
I currently have a similar issue where my menu "spreads out" on the postback. Before the postback, it renders divs. After the postback, it renders tables.
There is specifically a property on the menu "RenderingMode" which is suppose to control this, but it is not working for me.
I had the same problem. My navigation menu sits in an UpdatePanel, and I changed the UpdateMode from Always to Conditional - problem solved. This was in my master page.
Is there TAB control and how to open page2 from button click ?
On asp.net ?
I work with C# and Visual Studio 2008 and ASP.NET
Thanks in advance
The standard ASP.NET controls that ship with the .NET Framework do not include a tab control. However you can find a number of implementations on the internet, I would suggest you look the jQuery UI.
As for the button click redirecting to page2 you can handle the button click event on the server side and use a Response.Redirect("page2.aspx") to redirect the users browser to the desired page. Other alternatives exist like using an anchor (link) which will request the second page directly.
Set the SelectedTab property to the index of the tab you want to display in the click event of your button.