Questions tagged [webmatrix-2]

Microsoft WebMatrix 2 is a basic development envirnoment for creating websites. It's bundled with a simple but powerful SQL server and a lightweight web server. Languages supported include VB, C# and even PHP. The native view engine uses the Razor syntax.

Microsoft WebMatrix 2 is a basic development envirnoment for creating websites. It's bundled with a simple but powerful SQL server and a lightweight web server. Languages supported include VB, C# and even PHP. The native view engine uses the Razor syntax.

104 questions
3
votes
3 answers

There was an error parsing the query

I need help.... I am not good at SQL I get this error when I try to apply a JOIN: [ Token line number = 1,Token line offset = 66,Token in error = JOIN ] This is My SQL: var query = "SELECT Team.TeamName, Fixtures.HomeTeam" + "FROM…
Dawood Awan
  • 7,051
  • 10
  • 56
  • 119
3
votes
1 answer

Migrate AspNetSqlMembershipProvider users to WebMatrix

I looking for a tool can migrate my users from AspNetSqlMembershipProvider user to WebMatrix.WebData.WebSecurity. I want to host my site on Azure and have a lot of trouble with the AspNet stored procedure. It seem easy to export data from one table…
Francis
  • 486
  • 3
  • 21
3
votes
2 answers

Stop inheriting from user agent

I am trying to create a styled h4. But my h4 keeps inheriting from some user agent? What is this user agent. How can I stop it from doing so. Its adding effects that I dont want.
Mcloving
  • 1,390
  • 1
  • 13
  • 30
2
votes
1 answer

How to call a class method in WebMatrix (oop)?

I have a class called "Cars.cs" and I need to access the method of the class. I'm doing the following: (razor WebMatrix project in c #) using System; using System.Collections.Generic; using System.Web; public class Cars { …
MauricioHz
  • 111
  • 2
  • 12
2
votes
1 answer

Simple JSON helper request - webmatrix/razor

I want to show the distances between two places on page using Google Maps. So I have found out how to write the URL, but I don't know how to decode the response and show on my website. Here's what I have so far: string distancematrix =…
Gavin5511
  • 791
  • 5
  • 31
2
votes
1 answer

Webmatrix/Razor SQL query - Websecurity variable

I am trying to write a query to show all records owned by the current logged on user but i am having issues inserting the "userid" variable into the string? @{ Layout = "~/_template1.cshtml"; var db = Database.Open("StayInFlorida"); var userid =…
Gavin5511
  • 791
  • 5
  • 31
2
votes
1 answer

Php doesn't create session in webmatrix

i'm started to use webmatrix and now iam using php starter site template. in this template you cant login. i searched all codes than i found it doesnt create session. maybe it creates but dont pass to other pages. if there is user(logon.php): if…
2
votes
1 answer

Webmatrix image uploader (change quality to 72dpi)

I am currently building a new website in WebMatrix, and have successfully added functionality to upload and resize images using the image helper. My question is, does this tool have the functionality to change resolution too? i'm concerned that…
Gavin5511
  • 791
  • 5
  • 31
2
votes
2 answers

My URL's query string does not work

Currently I'm using web matrix2 to build my php application. I was testing passing the query string to another php using GET Scenario 1: I have index.php and test.php in index.php: I have a php statement include("/test.php"); in test.php: i only…
WenHao
  • 1,183
  • 1
  • 15
  • 46
2
votes
1 answer

SQLite with WebMatrix.WebData.SimpleMembershipProvider Long to Int Cast Error

I'm trying to use the SimpleMembershipProvider with SQLite to enable authentication on my site. I have it initialized in my Global.aspx and can create users, however I can't log users in. I get the following error when I try to call…
2
votes
1 answer

VS2012 MVC 4.0 Intranet Project using WebMatrix.WebData Reference fails

I did the following: Create in VS 2012 a MVC 4.0 Application with the Intranet template, switch WindowsAuthentication on. Project can be started and shows Home page. Then I added under References WebMatrix.WebData and set Copy Local true. Starting…
2
votes
4 answers

Inserting HTML code to Database SQL using WebMatrix Razor

My Column in the DB are: nvarchar(MAX) I need to add HTML code into my Database: from CKEditor. I get the following Error. A potentially dangerous Request.Form value was detected from the client (Description="

Heding 1 
Dawood Awan
  • 7,051
  • 10
  • 56
  • 119

2
votes
1 answer

Webmatrix fails to publish SQL Server database to Azure

I've set up a free Azure account to test whether it's suitable for hosting a personal website of mine. I have the site running locally through Webmatrix - it's .NET with a SQL Server 2008 Express database. I've set up a 'Website' in the Azure portal…
Dan
  • 5,836
  • 22
  • 86
  • 140
2
votes
1 answer

C# razor in Webmatrix and JQgrid

I'd like to know if there is a way to use JQgrid in Webmatrix with C# and Razor instead of using the built in WebGrid helper. Any pointers are much appreciated. Thanks. Martin
Martin
  • 121
  • 1
  • 7
2
votes
1 answer

webmatrix 2: how to get intellisense for asp.net forms pages

Posted this as a request on the WebMatrix uservoice, but maybe I'm overlooking something. Is it possible to get intellisense working on ASP.NET forms pages?
Serge van den Oever
  • 4,340
  • 8
  • 45
  • 66