Questions tagged [webmatrix]

Microsoft WebMatrix consists of a basic IDE bundled with a simple but powerful SQL database and a lightweight web server. WebMatrix is no longer recommended as an integrated development environment for ASP.NET Web Pages. Use Visual Studio or Visual Studio Code.

Microsoft WebMatrix is a basic development environment for creating websites. It's bundled with a simple but powerful SQL server (SQL Server Compact) and a lightweight web server (IIS Developer Express).

Languages supported include C#, VB.NET, and PHP. The native view engine uses Razor syntax optimized for HTML development. Although the full ASP.NET stack is available, developers can choose "Web Pages" which offer simplified web development.

It reached end of life in November 2017, so shouldn't be used any more.

Also see: , , ,

1222 questions
784
votes
11 answers

How do I import a namespace in Razor View Page?

How to import a namespace in Razor View Page?
Amitabh
  • 59,111
  • 42
  • 110
  • 159
35
votes
11 answers

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

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…
33
votes
9 answers

How to Kill A Session or Session ID (ASP.NET/C#)

How can I destroy a session (Session["Name"]) when the user clicks the logout button? I'm looking through the ASP.NET API Reference on MSDN and it doesn't seem to have much information. It seems rather limited. But I cannot find any other pages for…
anon271334
27
votes
2 answers

WebMatrix WebSecurity PasswordSalt

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"…
Stuart Clement
  • 541
  • 6
  • 14
26
votes
1 answer

Checking strings for a strong enough password

Possible Duplicate: Strong password regex Need RegEx for password strength? I was just wondering what the best way to search a string for certain criteria (password strength to be specific) could be accomplished. So far I have a…
VoidKing
  • 6,282
  • 9
  • 49
  • 81
21
votes
1 answer

The entry has already been added

All my Razors views have this error: The pre-application start initialization method Start on type WebMatrix.WebData.PreApplicationStartCode threw an exception with the following error message: The entry 'DefaultConnection' has already been…
Jorge
  • 17,896
  • 19
  • 80
  • 126
18
votes
3 answers

How do you set the content type for a WebMatrix/Razor Response?

I'd like to return some XML instead of HTML in my WebMatrix cshtml file? How do you change the content type header?
John Sheehan
  • 77,456
  • 30
  • 160
  • 194
17
votes
1 answer

How to disable Paging in WebGrid

I've searched the documentation (http://msdn.microsoft.com/en-us/library/system.web.helpers.webgrid.webgrid(v=vs.111).aspx), and found "canPage: false" - which does not work. Saying there is no parameter named 'canPage'. Other sites have said…
Protected Identity
  • 241
  • 1
  • 2
  • 11
15
votes
2 answers

How to convert a data reader to dynamic query results

I have a View that typically gets query results from a WebMatrix Query (IEnumerable data type), and displays the results in a table: @model MySite.Models.Entity @foreach(var row in Model.Data) { @foreach (var column in…
Travis Heeter
  • 13,002
  • 13
  • 87
  • 129
14
votes
1 answer

Can't Delete Webmatrix Site

From the "My Sites" view, one-by-one I selected several web sites I wanted to delete. For each I was given the option of "delete site" or "delete site and content". I chose "delete site and content." However, when afterward I chose to re-create…
Brent Arias
  • 29,277
  • 40
  • 133
  • 234
14
votes
7 answers

How to set the value of a select element's selected property

I am using webmatrix, razor syntax and cshtml file. I have an "edit" page for a database record which contains a select box(id="selStatus"). I am trying to set the "selected" value of the select box dynamically, based on the value of the current…
rusty coder
  • 157
  • 1
  • 1
  • 4
13
votes
2 answers

What to use to open an .mdf (SQL Database) file

I was hoping to be able to open .mdf file. I am using WebMatrix, I can view the queries there. I can read the schema too. But how can I read the file without using WebMatrix. Its SQL Server file not the Comptact edition. I have searched for web…
Afzaal Ahmad Zeeshan
  • 15,669
  • 12
  • 55
  • 103
12
votes
4 answers

sqlexpress local database administrator password

I'm trying to install some .Net eCommerce projects on my local machine (windows Vista) with Webmatrix. Some of them ask for a Database administrator username and password, but I have no idea what those are. Can anybody help me on this. See image…
Daniël Tulp
  • 1,745
  • 2
  • 22
  • 51
11
votes
7 answers

Developing in Visual Studio 2010 with the new IIS Express web server?

Although this question isn't directly about code it's related to programming and seems better put here than, say, serverfault or superuser. -- I'm a developer with Visual Studio 2010. Microsoft's newest web server offering for developers is IIS…
John K
  • 28,441
  • 31
  • 139
  • 229
11
votes
3 answers

Can we use Razor on an existing ASP.NET 4 website?

Is it possible to use Razor on an existing ASP.NET 4 website?
Amitabh
  • 59,111
  • 42
  • 110
  • 159
1
2 3
81 82