webmatrix

Launching Visual Studio from WebMatrix 2 opens wrong version

你说的曾经没有我的故事 提交于 2019-12-21 03:47:26
问题 I'm using Microsoft WebMatrix 2 to work on a simple ASP.NET WebPages site. When you are in the Files view, there is a Visual Studio Launch button that should open up the site Solution in Visual Studio 2012 . On my machine I also have Visual Studio 2010 installed and that is the version that gets opened when I click on the button. How can I make sure that Visual Studio 2012 is opened? I'm working on Windows 8 but I am pretty sure this applies to Windows 7 and XP as well. I suspect I may have

“Remember Me” with asp.net web pages

无人久伴 提交于 2019-12-20 12:47:05
问题 I realize that this question may have been asked before, but I can't find anything that matches my situation exactly. I created a website using the WebMail helper in ASP.Net web pages ( not web forms) and WebMatrix. Users are required to login to the website, and there is a "Remember me" box that (in theory) will keep the user logged in until he/she chooses to log out. The website does keep users logged in if they close the browser and reopen it within 20-30 minutes. However, after 20-30

SimpleMemership CreateUserAndAccount Customization

两盒软妹~` 提交于 2019-12-20 10:23:15
问题 I am trying to add a new property to the UserProfile class in my model public class UserProfile { [Key] [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)] public int UserId { get; set; } public string UserName { get; set; } [Required] [DataType(DataType.EmailAddress)] [Display(Name = "Email Address")] public string Email { get; set; } \\this is the new property public virtual IList<Game> Games { get; set; } } I am trying to add it to my seed method in my Configurations.cs file

Problems Deploying web application to iis

主宰稳场 提交于 2019-12-20 05:12:26
问题 Built a web application with webmatrix, try to deploy locally to iis 5.1 for testing purposes so i added it to my wwwroot folder didnt work then i created a virtual directory. the home page works with this but my login created with web helper doesnt work...when i click login all i see is the browser sending login? and nothing happens....and my web deploy that i installed doesnt work either so i can deploy the site with dependencies to iis... also can it be deployed to windows server2003...

Counting records by year and month including zero counts

社会主义新天地 提交于 2019-12-20 03:15:23
问题 I am using an SQL Server Compact Edition server and I want to count the number of comments per month that correspond to a certain tutorial within a range of dates and include months which have a count of zero. I know I need to join a "calendar" table to my table to account for the missing months, but I need help with correct implementation of this. I have a table of all the comments from different tutorials. This table is called Comments and the columns I need are [Tutorial] ( nvarchar ) and

Extension Method and Razor Page

喜你入骨 提交于 2019-12-19 09:00:10
问题 I have defined an extension method in app_code like below. public static class Extensions { public static string Hi(this object obj) { return "hi"; } } In the razor page, anything can say Hi :) @Html.Hi(); @Request.Hi(); @this.Hi(); But @Hi() doesn't work. Is there a way to make @Hi() work? 回答1: C# only allows you to call extension methods qualified by an object instance. If you have an extension method that extends your type, you can't call it "directly"; you need to write this

How do I get JavaScript Intellisense from vsdoc file references in WebMatrix 2 Beta?

时光怂恿深爱的人放手 提交于 2019-12-18 17:31:07
问题 I copied a JavaScript file over from Visual Studio to a new WebMatrix 2 Beta project only to find out the vsdoc file wasn't being used for JavaScript Intellisense. /// <reference path="jquery-1.6.4-vsdoc.js" /> JavaScript's core functions do show up in Intellisense, but it doesn't appear to pull additional data from vsdoc files. Spoiler alert: I will be answering this myself to bring the answer from its current webmatrix.uservoice.com location to StackOverflow for anyone else with this issue.

Error running node app in WebMatrix

邮差的信 提交于 2019-12-17 20:15:16
问题 I installed WebMatrix and followed these instructions to install IIS 7 on my Windows 7 machine. When I click 'Run' to run my express node app, the browser pops up and tells me The iisnode module is unable to start the node.exe process. Make sure the node.exe executable is available at the location specified in the system.webServer/iisnode/@nodeProcessCommandLine element of web.config. By default node.exe is expected to be installed in %ProgramFiles%\nodejs folder on x86 systems and

WebMatrix WebSecurity PasswordSalt

故事扮演 提交于 2019-12-17 16:33:24
问题 I am using WebMatrix and have built a website based on the "StarterSite". In this starter site you get a nice basic layout - including registration, login, forgot password pages etc... I've noticed that in the database that the "webpages_Membership" table has a column named "PasswordSalt". After creating a few new user accounts, this column always remains blank. So I'm assuming that no password salt (not even a default one) is in use. Obviously this is not the best practice, however I cannot

No Entity Data Model (EDMX) Template with Visual Studio 2010 SP1 & ADO.NET Entity Framework 4.1

こ雲淡風輕ζ 提交于 2019-12-17 10:27:09
问题 I'm having a lot of issues with the templates of Visual Studio 2010 SP1 & ADO.NET Entity Framework 4.1 I noticed that other people had these problems, and asked similar questions, but I don't think they gave enough information to make it solve-able. The Problem: ADO.NET Entity Data Model Templates are not appearing whatsoever Screenshot: http://c0848462.cdn.cloudfiles.rackspacecloud.com/f067439f6e8f25d5fd36761fd1efc88a74fd765ff1.png Solution File Microsoft Visual Studio Solution File, Format