asp.net

ASP.NET MVC 2 VirtualPathProvider GetFile every time for every request

Hi, I am fresh in ASP.NET MVC framework. This is may be a silly question for you. Sorry about that. I have implemented a VirtualPathProvider. The VirtualPathProvider reads the view from File system. However my problem is the method GetFile(string virtualPath) is not executed every time for every request. I think it is related to the ca...

Learning my way thru ASP.Net 4 basic web app

I am trying to learn asp.net 4 web app but playing around the web page template shipped in VS 2010. I clicked New Project --> (Web) ASP.Net Web Application I click ok. So now I am trying to manipulate the color of the blue header and the font color or the header text. But I am cant do it thru the css. Any ideas what is going on in ...

Telerik radlistbox fires both OnClientItemChecked and OnClientSelectedIndexChanged when an item is checked

Telerik radlistbox fires both OnClientItemChecked and OnClientSelectedIndexChanged when an item is checked in Firefox and IE but not in Chrome. Chrome seems to have the proper behavior. Is there a reason for this? Can I make IE and Firefox behave accordingly as well? Some more context; This radlistbox gets loaded in an ascx panel. ...

Response.redirect url encodes spaces to %20 in querystrings

Hi all, When i do this: Response.Redirect("./blah.aspx?key=my value with spaces"); It sends the browser to: mysite/blah.aspx?key=my%20value%20with%20spaces Now i understand why it's doing this - for the sake of ancient browsers that would choke on the spaces. But really, what i want is to have a nice-looking url with spaces instead...

Visual Studio 2010 Does not allow F5 debugging when pointed to an IIS 7 web site when an IP address is specified on the website

I have two custoerms I work on. I have one development machine (Win 7 Ultimate and Visual Studio 2010 Ultimate). For both customers I have developed websites using ASP.NET MVC. All that is cool until I try to have both website set up in IIS 7 and want to have them both F5 debuggable. Oh and did I mention both sites require that I develop...

how to access a namespace inside app code folder from another folder

I have a class file stored in the app code folder. A certain page that I want to access is inside its own folder within the root and it is using the namespace within the class file in the app code folder. How do I tell the application where the file is? I'm sure I could put the code in a file inside my folder, but I'd rather not have du...

Update A Partial View From Another Partial View - ASP.NET MVC2

I want to have two partial views, one for SEARCH and one for SEARCHRESULTS. I want to update SEARCHRESULTS when the "Search" Button is clicked on the SEARCH partial view form. SEARCHRESULTS needs to have the form data fed to it from the SEARCH partial view. I'm not totally sure how to go about this. Can I update the SEARCHRESULTS par...

creating a whole site using asp.net 2.0

i am new programmer i am using visual studio 2005 i am making a project it is a e commerce site 1. what guideline should i follow ? 2. what r de step i must take before creating de site ? 3. where can i take help if i may get stuck ? 4. any pdf file that can help me out ? ...

Quick Question About IIS 7 Asp.Net Setup...

I have been trying to configure a small website on a Windows Server 2008 running IIS 7. Unfortunately, when trying to load the website I keep getting the error: Server Error 401 - Unauthorized: Access is denied due to invalid credentials. The permissions on the website folder include read, write, and execute for user ASP.NET v4.0. I ev...

How to switch IIS Developer Express to "Classic Mode"

I know how to switch to "Classic Mode" (from "Integrated Mode") in the full IIS via application pool settings. But I can't find how to do it in the current IIS Developer Express beta. The MS Developer Express FAQ says it can be done, but not how. It's not in the WebMatrix GUI, as far as I can tell. Maybe customization of the Developer ...

Copying the entire telerik docklayout from one page to another page

Hello I'm trying to copy the docklayout from one page and try to recreate it in another page. Here is my code- Default.aspx <div> <telerik:RadDockLayout ID="dockLayout" runat="server" OnSaveDockLayout="dockLayout_SaveDockLayout"> <telerik:RadDockZone ID="dockZone" runat="server"> <telerik:RadDock ID="dock" runat="server" UniqueName="d...

Android C2DM getting (401) Unauthorized

I have an Android application with an ASP.NET backend. I have the registration_id for the phone as well as an auth token from google for the application server that is performing a push. When I make the http post request to C2DM so that the phone gets a message I keep getting the 401 Unauthorized. Here is how I'm making the request ...

Controlling the FormsAuthentication createPersistentCookie expiration

In an ASP.NET MVC2 app, we have the standard login action... if (ValidateUser(model.Email, model.Password) { FormsAuthentication.SetAuthCookie(model.Email, model.RememberMe); ... where the second parameter to SetAuthCookie is createPersistentCookie with the following documentation: createPersistentCookie Type: System.Boolean ...

Display menu within the multiple frame set

i have used multiple frame set in a page.in which when two is available then menu is showing but when inject a page which have more than two frame then menu is not show. this is main page. but when inject a page in MainFrame set which have three frame then menu is not displaly this insert into frame set mainframe . ...

I want to Authenticate in a Web Application & use the Same Credentials for Desktop Application. How do I do that ?

I want to invoke a Desktop Application. Before invoking that Desktop App the user should login to the Web Application & the same credentials to be used in Desktop App. The Web Application is ASP.NET & Desktop App is a SWING based Java Application. Is it possible to authenticate in that case ? ...

Getting list of controls inside a specific div in .NET

How to Get list of controls inside a specific div in ASP.NET ...

Modal Popup Extender Not Working

I've looked at every problem associated with the Modal Popup Extender to no avail. I'm using Visual Studio 2008 with the latest Ajax Toolkit. And I've tested it on all the major browsers and it doesn't work on any. I've poured over numerous examples and they all look like mine but it still doesn't work. As of right now, everything is...

ASP.NET - Have settings in the Web.config (and access them using ConfigurationSection) or in a separate XML file

I have few settings which I could place in a separate XML file and have them accessed in the Web app. Then I thought (thinking of one additional file to deploy), why not have them in the web.config itself. However, just because I need to have custom nodes, I can not have the settings under . So, I am thinking of creating a custom config ...

Disabling ASP.Net Request.Path Validation

We're running a site with roughly 6000-7000 visitors online concurrently (this is to indicate the size) Having switched from ASP.Net 3.5 to 4.0 we suddenly face a mass of these: A potentially dangerous Request.Path value was detected from the client (>). They're all corrupted URLs, and seem to contain some sort of HTML or javascri...

hidden field usage

hi, what are the possible usage of hiddden field control of VWD in asp.net page ...