Serve Shortcuts/.lnk From Web Servers?
Mar 25, 2010
without using a database i wanted a file to point to the newest revision of a file. Someone suggested using a shortcut. Knowing i can rewrite file.ext to file.ext.lnk i thought it was a great idea. Then i tried it, my server (VS 2010rc) serves the shortcut rather then the file. Not what i wanted...How do i serve the file the shortcut is pointing to? NOTE: I am planing to use windows 2008 as my server so a solution should work on that as well. The OS i am running is windows 7.
View 4 Replies
Similar Messages:
Nov 16, 2010
I am trying to set up my web site on a stand alone server using Windows Server 2003 with IIS 6 which will access SQL server database (2008) on windows 2008 R2 server (also not in the domain) I am using form authentication and I have configured a custom identity account in IIS6. The local account is on both servers with same password and I have registered the account using aspnet_regiis.exe -ga The application pool in my iis6 has the custom local account set as the identity and my web.config file has the appropriate tags in the system.web element <identity impersonate="true" />
The problem is the local account does not seem to get passed to the sql server. Right now my iis settings are anonymous access (using the local acct vs isr) and no authentication specified under that - I did try Integrated and basic but it prompts for the username and password which I do not want. One article I read stated this: windows authentication does not support delegation (passing credentials from one server to another) and is limited to the one hop rule, only a primary token can be passed to a second server. windows
authentication on iis (all versions) gives the thread a secondary(impersonation) token which can not be used to access any network resouce
View 1 Replies
Mar 5, 2011
I'm looking for a datepicker that support entering by the user 5y and it will return now + 5years.if possible if prefer to use jquery ui datepicker control, or if someone know about other control.The jquery control blocks entering non numeric characters.
View 2 Replies
Apr 6, 2010
I have a lot of data-entryists using my ASP.NET application and we have all been wondering if there are any keyboard keys or shortcuts that you can press to trigger:
Check a RadioButton
Uncheck a RadioButton
Check a Checkbox
Uncheck a Checkbox
I know that you can write Javascript and do it yourself, but do any keyboard keys/shortcuts already exist without using the mouse?
View 1 Replies
May 26, 2010
My customer would like to use short cut keys to navigate around a FormView control. specifically to add a new record, to edit or delete the the record displayed and to update or cancel an edit.
View 3 Replies
Jul 3, 2010
sometimes when i am writing my code, i am write the class name but without write "using ClassNameSpace..." in the top of the page, when i am clicking on that class name a small "red" rectangle appear at the bottom right of that class name word, when i am clicking again on that rectangle a popup appear in the place told me to include the name space for that class, so i can choose either to put the class name with "using ...." or to put the name space directly on the same line and before the class name.
any one know how to make that from the keybaord shortcuts (without clicking many times using mouse) .
View 6 Replies
Aug 21, 2012
I would like to know how could i code hotkeys/Shortcut keys in a VB.net web application,I have seen tutorials on it but all are for windows forms and not web apps..So i have a table in my web app , and i want the user when he hits the enter button or the add button (+) on the keyboard it should add a new record to the table.i have the code to add the record to my table i just need to know how to create the hotkeys/shortcuts keys function.
View 3 Replies
Jun 18, 2010
I'm referencing the css at the top of my CompositeControl
[assembly: WebResource("MyAssembly.styles.main.css", "text/css")]
...but how do I actually get that served down to the client?
View 2 Replies
Aug 17, 2010
I'm often experiencing that keyboard shortcuts stops working in WebMatrix. This is very annoying as CTRL-S, CTRL-C, CTRL-V, etc. stops working, all of which are heavily used when programming. It's obviously hard to explain how to reproduce this, but I waswondering if someone knows a quick-fix?
View 12 Replies
Mar 29, 2010
I have a MS SQL view that I want to make available as a CSV download in my ASPNET Web Forms app. I am using Entity Framework for other views and tables in the project. What's the best way to enable this download?I could add a LinkButton whose click handler iterates over the view, writes its CSV form to the disk, and then serves that file. However, I'd prefer not to write to the disk if it can be avoided, and that involves iteration code that may be avoided with some other solution.
View 4 Replies
Dec 17, 2010
I recently deployed a Windows 2008 R2 server with IIS.There was a problem with it and the hosting provider suggested a redployment of the image, which I relucantly did.Now all i getting back to wotking order except that no images/css are served (in fact all static content).Previously I set up my local machine to get images/css etc from static1.mydomain.co.uk which is a subdomain of mydomain.co.uk and this worked fine. I also had a test page on the live server with links to images on the static1 domain and all was good.Now neither the live site or my local site can access static content. I've also tried changing the live domain to itself rather than a subdomain (www.mydomain.co.uk)The pages serve correctly - just without any styling.I suspect its IIS - I've turned my firewall off as a test - the paths seem to be correct when viewed from the source code too.
View 1 Replies
Feb 18, 2010
How do you put views and content in a separate assembly that can be referenced from a MvcApplication?
View 3 Replies
Nov 3, 2010
I wanna serve my application in ISS to be accessed from many different URL's on my web server.
eg.
http://example.com/test1
http://example.com/test2
Both these URL's get served by the same application.
I do NOT however want to just create new virtual applications to the application, because it stuffs up the user membership roles. The users and their roles must exist accross the two URL's.
View 1 Replies
Dec 4, 2010
I'm building an Iphone application, which has to retrieve information from a database on a server.
I thought about building a C# web service on the server,so the Iphone app will send a http request to the web service and get the required data as a xml output. Are there any better alternatives? for instance: I never tried but heard about WCF, maybe it's better using it instead of the older xml web service technology?
View 2 Replies
Mar 28, 2011
Is there a way I can make a div runat server? So i can turn it into a control? In asp.net?
EDIt:
while (reader.Read())
{
System.Web.UI.HtmlControls.HtmlGenericControl div = new System.Web.UI.HtmlControls.HtmlGenericControl("div");
[code]...
View 4 Replies
Feb 11, 2010
A static web page (html) uses XHR calls to an ASP.NET page The .NET page retrieves information from a remote server using web services The .NET page returns an HTML "snippet" that is inserted into the static HTML page I'm getting hung up on how to deal with the HTML snippet generation on the .NET (2.0) page. I've thought about something like this in a generic .ashx page:
public void ProcessRequest (HttpContext context)
{
context.Response.Write("<ul>");
//assume "people" is a list of data coming from the external web service
foreach (string person in people)
{
context.Response.Write("<li>" + person + "</li>");
}
context.Response.Write("</ul>");
}
It just seems a big "ugly". Has anyone done this another - and possibly more efficient/elegant - way?
View 1 Replies
Mar 31, 2010
I would like to serve a custom 404 page from ASP.NET MVC. I have the route handler and all the infrastructure set up to ensure that nonexistent routes are handled by a single action:
public ActionResult Handle404()
{
Response.StatusCode = 404;
return View("NotFound");
}
Problem: IIS serves back its own content (some predefined message) when I set Response.StatusCode to 404 before returning the content.
On the VS development web server, this works as intended - the status code of the HTTP response is 404 while my content (the NotFound view) is served.
I believe that when the IIS processing pipeline sees that the application returns 404, it simply replaces the whole response with its own.
What setting in IIS affects this behavior?
I do not have access to the IIS installation so I can not investigate this - however, I can ask the hosting provider to tweak the configuration for me if I know what exactly needs to be changed.
View 1 Replies
Jun 4, 2010
I want my application to serve all of its web pages over SSL, so I added the lines...
<secureWebPages enabled="true">
<directory path="." />
</secureWebPages>
... to my Web.config and the resulting compiler error is:
Build (web): Unrecognized configuration section secureWebPages.
I am running Visual Studio 2008
View 3 Replies
Mar 29, 2010
I've been using OpenRasta to convert an old web application we have into something RESTful. IS it possible to serve up a resource (or
specifically a list of resources) as both .aspx and JSON? I have tried this but no matter what I try I keep getting the .aspx back .. Here's a sample configuration:
ResourceSpace.Has.ResourcesOfType<List<Valueset>>()
.AtUri("/valuesets")
.HandledBy<ValuesetHandler>()
.AsJsonDataContract()
.And.AsXmlDataContract()
.And.RenderedByAspx("~/Views/VauesetView.aspx")
View 1 Replies
Apr 30, 2010
For our application we provide users with file downloads that utilize handlers to serve the files. Currently, the way it is served to the user is through window.location. When using this, at times, it causes issues under IE8. When an error occurs, it cannot be caught under the page that called it.
A) Is there a way to serve an ashx file handler to the user where the page that called it can catch any exceptions made from thje handler
B) What is the correct way to serve the handler, eg. window.open, window.location, etc. Would return false at the end of the javascript solve this? Are there any other ways
View 2 Replies
Dec 28, 2010
I have IIS 7.5 with an ASP.NET application. The application must run with IIS Classic Mode.
I have one HttpHandler that serves all the Request:
<httpHandlers>
<add verb="*" path="*.aspx" type=".....HandlerFactory..." />
</httpHandlers>
The problem is that i can't establish a Default Document to an non phyisical file. I want that the Default Page be : Home.aspx (which is a non phyisical file).
So when I go: [URL] I get an error: HTTP Error 403.14 - Forbidden The Web server is configured to not list the contents of this directory.
I do not want to make a REDIRECT.
Is there any way to accomplish this without having to create a index.html to redirect to Home.aspx?
View 2 Replies
Jun 17, 2010
we're in the process of trying to speed up the performance of our website by serving static content from a cookieless domain. That seems to be going well, but I have a new question:
I know that it's "static content" that we're talking about when serving it from a cookieless domain, but we also have static content being served by ASPX pages, specifically images. For example:
domain.com/resizeImages.aspx?src=images/image123.jpg&width=400&height=400
How can I serve the resizeImages.aspx image without ASP.NET setting a cookie on my browser? (At present it sets an ASPXANONYMOUS cookie.)
View 1 Replies
Feb 5, 2010
I created a Virtual Application in IIS 7 to host my app so I could test it on other machines on the local network, since the development web server will not respond to requests from machines other than the local machine. I had to allow IIS to login as me to get into My Documents, and enabled ASP.NET impersonation through the IIS. That worked fine, but...
Now the ASP.NET Development Webserver won't serve anything at all. I hit debug in VS2008, the dev webserver starts up seemingly fine, but then the IDE launches Chrome and the browser just sits there twiddling its thumbs. It never fails, but never loads. Nothing.
There are no errors from ASP.NET Development Webserver or Visual Studio or Chrome that I can find. I even looked in the Event Log. Nothing.
View 2 Replies
Feb 24, 2011
I have been struggling to get WebMatrix to serve any cshtml files. I performed a fresh install of WebMatrix, then started a tutorial which involves creating one small cshtml file. Whenever I try to run the site, I get the following error:
This type of page is not served.
Description: The type of page you have requested is not served because it has been explicitly forbidden. The extension '.cshtml' may be incorrect. review the URL below and make sure that it is spelled correctly.
Requested URL: /Home.cshtml
I tried reinstalling to no avail.
I am running Windows 7 Pro, with IIS 7 installed. (IIS Express is supposed to be able to run side-by-side no problemo)
View 8 Replies
Aug 10, 2010
When I serve an ASP.NET page, can I render the various controls on the page in parallel?
I have a few Telerik controls (RadGrids) on the page and when I step through the page being loaded, it seems as though the controls are databound and rendered serially.
Maybe this behavior is because I am hooked in with the debugger.
Is there anyway to load the page and have select controls build on separate threads? Is that even conceptually possible or must it be done sequentially?
View 2 Replies