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.
Related
I have page where i have button which makes ajax-request to server and load simple modal form. I have one input and one button in form.
How i can test it on C# ?
I need just navigate to link -> click -> load form. Then just input text and click button.
I dont want use selenium for it.
Thx, it really only selenium. So i just need to use it.
I want to apply the keyboard shortcut Ctrl+W (closes a browser tab) on an asp.net button. When I click on the asp.net button, it should work like the above controls. Is it possible? And if it is, from where can I get the code for Ctrl+W(close a browser tab).
window.close() won't work to close a browser's tab.
Simply put: it won't work, because you cannot close the current page with JavaScript (well, you can do it from your own developer console, but not from a script). Please take a look at this question for details: window.close and self.close do not close the window in Chrome
I have web application in that i am using tabbed interface control in this i have create 4 tabs in each tab having a .aspx application,so each application having the
"required field validators" when i click a button in tab2 page it check the validations all the tabbed apllication.How can i solve this problem please help me..
The reason this is happening is because your tab is submitting your form, causing the javascript to fire on the validators. A simple fix would be to have the link not submit anything and simply redirect to a new page.
I'm working on an ASP app and I have an asp menu item
It shows the menu sub-items when the mouse is over but i'd like it to show the sub-items with a mouse click
What can I do?
It might be possible, but it is an extremely bad idea to do. You would have to modify the javascript completely.
Instead I highly recommend you to create your own menu control. You can get the SiteMap through the SiteMapDataSource.
SiteMap class
SiteMapDataSource class
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