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
0
votes
1 answer

httpd.conf @ Windows

I've created PHP project with MS WebMatrix and copied the CakePHP into it. It promped: URL rewriting is not properly configured on your server. But, except that, everything is fine: Your version of PHP is 5.2.8 or higher. Your tmp directory is…
smsware
  • 429
  • 1
  • 13
  • 41
0
votes
1 answer

Umbraco Azure site gives 502

Very often when I publish my Umbraco site to Azure it will cause a 502 page to be returned when looking at the remote site. After reading some forum posts and following suggestions I believe it is the database that is the problem. When I delete it…
0
votes
1 answer

How to configure IIS7 so I can Upload from WebMatrix with Web Deploy?

How Would I configure IIS so I can upload a site from WebMatrix to a remote Windows server 2008 server? What would i put in on webmatrix in the boxes?
0
votes
3 answers

Cookies in asp.net error

I am a newbie in asp.net I am trying to create a cookie in web matrix here is my code <% Response.Cookies("ssn") = StudentNumber Response.Cookies("ssn").Expires = Date + 365 %> it shows an error at "%" why is that? error message…
Aya Abdelsalam
  • 502
  • 3
  • 8
  • 21
0
votes
1 answer

How to show custom error in asp.net razor view

I would like to display "No profile found" message, if the UserId doesn't exist in the database. How can i implement it. The code below does not work. UserId = Request.QueryString["UserId"]; var db = Database.Open("mystring"); …
ktm
  • 6,025
  • 24
  • 69
  • 95
0
votes
1 answer

How to authenticate a website member in a Metro-style App

I have a website that uses WebMatrix user authentication (login/register pages) and I am making an app in Windows 8 release preview and would like to know if it is possible to authenticate users of my app (let users of my app sign in to my app) if…
Arrow
  • 2,784
  • 8
  • 38
  • 61
0
votes
1 answer

Customizing WebMatrix.Security

On my MVC application I'm using some security features (OAuth) from WebMatrix. However, I needed some changes, so I've forked the project and added a few features to the WebMatrix.WebData assembly, using the code that is available on CodePlex. Now…
Nelson Reis
  • 4,780
  • 9
  • 43
  • 61
0
votes
0 answers

Jquery load and ajax on webmatrix

This is a huge challenge to my webmatrix layout. I have a site layout _sitelayout.cshtml, a renderbody page profilepage.cshtml and an independent page ajaxload.cshtml. The sitelayout's script library is updated using the Assets.GetScripts() from…
Ifeanyi Chukwu
  • 3,187
  • 3
  • 28
  • 32
0
votes
1 answer

Can webmatrix query an external odata web service like stackoverflow using razor

i was hoping i could capture external web service just the way i interact with my database e.g var data_websevice = Database.Open("http://www.stackoverflow.com/atom/tags"); is this a possibility? I actually need to return a json data to my client…
Ifeanyi Chukwu
  • 3,187
  • 3
  • 28
  • 32
0
votes
1 answer

json response format

I'm working on webmatrix with json helper and also jquery.form.js. After posting the data to the server, my response data look like this: "\u003cli\u003monster2010 is not a valid email.\u003c/li\u003e""\u003cli\u003eaclassgclass@yahoo.com is…
Ifeanyi Chukwu
  • 3,187
  • 3
  • 28
  • 32
0
votes
1 answer

How to select from WebMatrix-database in Visual Studio with Linq

How we select data from SDF (webmatrix) database in visual studio with Linq just like we can with northwind, like this:? // Northwnd inherits from System.Data.Linq.DataContext. Northwnd nw = new Northwnd(@"northwnd.mdf"); // or, if you are not using…
Arrow
  • 2,784
  • 8
  • 38
  • 61
0
votes
2 answers

Simple Authentication in .net WebPages

I am trying to authenticate through WebSecurity class. I have a form and when a user submits this is called: @{ if(IsPost) { var username = Request["username"]; var password = Request["password"]; …
hallizh
  • 150
  • 1
  • 10
0
votes
1 answer

ASP.NET WebPages Translation and Template concept

I just start playing with WebPages (Razor) and I figured out some basic concepts behind the wall. First of all I list my always-have-to things for each site I build: Friendly urls of course (WebPages do it for me) Translated urls (WebPages…
ggabor
  • 1,642
  • 4
  • 18
  • 23
0
votes
4 answers

Finding the right way to store data

I had planned on using a Dictionary or SortedList for this but as the project evolved while planning it, I'm not sure what to do. My site will load a bunch of results from a DB Query and I need to be able to store these results somewhere. Here's how…
Arrow
  • 2,784
  • 8
  • 38
  • 61
0
votes
1 answer

Inserting line by line into SQL Server CE database

I have a *.TXT file full of about 1 - 200 lines. Each line is just a name of a City/Suburb, and am trying to insert each line in this file into the database. I put it all in a Try/Catch block, because it didn't work, but nothing appears when I…
Arrow
  • 2,784
  • 8
  • 38
  • 61