I have a Calendar Extender from the AJAX Control Toolkit attached to a textbox on my form. I have some CSS, that cannot be changed, that is causing the tags that are being used within the Calendar control to become larger then they would be with out the CSS. Is there away to expand the viewing area of the calendar control?
My popup is a usercontrol, which as datagrid , OK button and Cancel button. My ModalPopup Extender is in page(Page1.aspx)How do i close the popup without posting back. I cannot use CancelControlID because mymodalpopup extender is in page1.aspx and my Cancel button is in Usercontrol.
I've a parent page with a long form. I am opening ajax modal popup extender on the click of a radio button.
In child.aspx, I've another long form. When the submit button is clicked, I am doing some processing, after that need to close the modal popup window and refresh my parent page, without disturbing the values already entered in the parent page.
My questions are
1. How do close the modal popup?
2. How I do refresh the parent.aspx without disturbing existing values? My browser is IE, no firefox since it's in intranet.
I have an AJAX Modal Popup panel that contains a RadioButtonList, 2 labels and 2 DropDowns. I want to update the Labels and DropDowns when a radio button is selected. My attempt at this posts back which causes the ajax popup to disappear.
aspx called on image click: <asp:Panel ID="pnlModalContainer" runat="server"> <asp:RadioButtonList ID="rblTest" runat="server" RepeatDirection="Horizontal" OnSelectedIndexChanged="rblTest_SelectedIndexChanged"> [code]...
I am having trouble wiht my AJAX collapsible Panel Extender. I have the CPE opening a panel that contains the Table of Contents of a document being displayed on the page. A user clicks on the link for a certain part of the document, the event triggers a C# function that gets the file that particular section is contained in an displays the section. Right now you have to, of course, click on the TitlePanel to open and to close the CPE. What I want to do is have it close automatically whenever a link inside the content panel has been clicked. I have tried placing this.cpeTOC.Collapsed=true; in the functiion that gets the files but it does not work. I have also tried the autocollapse property of the CPE and it just collapses whenever someone moves thier mouse from the titlepanel.
I've an Admin area and I want only Admins to enter the area. I considered adding the Authorized attribute to every controller in the Admin area. Isn't there an elegant solution or is this feature not there in the framework itself?
I should to have mentioned this before. I'm using a custom AuthorizedAttribute derived from AuthorizeAttribute.
On a pager I use on my MVC site I create the page links as follows:
On a MVC 2 web site I have an area named CMS.For example, on "cms/article/list" the pager works fine.However, on my root views, for example in "article/index" the page 1 link become:[URL]On my Global.Asax I have the following:
I have been going around with this and I can't find a way to solve this problem.
I have the area Blog with controllers (Post and Blog) i want that when the user acess my site without one area, it should redirect him to the Blog area inthe blog controller and in the index action if i use:
I have a problem, that is in my asp.net page I am having a master page there are many derived pages are there. in the master page I kept login control and validation and signin done in the master page itself, also I am having a create user page, if I execute create user page, unable to login from this page. because create user text box validating as well in the same page if I click create user button its validating login. how to avoid this? a button & text box & validation should be respective area only.
I have a site (ex. test.com) which I am using MVC. I have created areas for my site, where each area represents a state. What I would like to do is specify some place in the web.config to when I deploy, I set a value and then the default route when I go to test.com would auto route to: test.com/california or test.com/oregon based on that value.
I've got a piece of code that I want to run one time when my website is first loaded.It is basically a static initialization of another module.Is there some event I can hook into that runs when the site is first served to a client?It doesn't even need to be per session, just on first load to any client.
i have been visiting alot of websites , and they have my area name which i did not told him(ofcourse). So just curious whats the trick behind this if i want to implant that how does can i achieve that?
I'm writting an application where I want to execute some code before a controller is invoked, even before the controller is created. I would like to somehow hook into the request processing as early as possible after the request is parsed and the RouteData is available. I've tried to hook in by handling the BeginRequest event but at this point there is no RouteData. Is there another place I can look for the area when BeginRequest delivered or is there another place in the request processing pipe that I can hook in to find the area before my controller is invoked.
I have an several controllers where I want every ActionResult to return the same viewdata. In this case, I know I will always need basic product and employee information.
Right now I've been doing something like this:
This is just pseudo-code so forgive any obvious errors, is there a better way to be doing this? I thought of having my controller inherit a class that pretty much does the same thing you see here, but I didn't see any great advantages to that. It feels like what I'm doing is wrong and unmaintable, what's the best way to go about this?