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
1
vote
1 answer

Trigger dialog buttons on IWebMatrixHost ShowDialog method

I have created a custom XAML UserControl class that I pass to the ShowDialog method. I would like to be able to trigger clicking the OK button on the dialog through other events generated in my UserControl - for example double clicking a ListItem. I…
Goyuix
  • 23,614
  • 14
  • 84
  • 128
1
vote
1 answer

Displaying more than one webpage on a webpage

Can anyone guide me. is it possible to use Iframe tag to display more than one webpage on a single webpage. I want to split my home page into four different parts each containg a page. can anyone guide how i can achieve this.
Wadhawan994
  • 49
  • 1
  • 8
1
vote
2 answers

WebMatrix 2 - msbuild execution

Is it possible to execute a target in an msbuild script from within webmatrix and have output parsed for errors in MSBuild format?
Serge van den Oever
  • 4,340
  • 8
  • 45
  • 66
1
vote
3 answers

How to prevent overriding of CSS

What I am trying to do is be able to have two columns in a div. So I can insert a picture at any point, and place text long side it neatly. Here is my html:
0
votes
1 answer

How to convert request querystring to HMACSHA256 in webmatrix

The below code doesnt work in webmatrix... (Only the kvps part is not working) @using System; @using System.Collections.Generic; @using System.Linq; @using System.Web; @using System.Configuration; @using System.Text.RegularExpressions; @using…
0
votes
1 answer

How to use Windows Authentication in html in default.aspx

I have 2 menus, one is setup for regular users the other is setup for Admin users. I want to check who is logged in (based on their AD login to their computer) and then display to appropriate menu. I am working on a website. My main page is plain…
Mike
  • 1,853
  • 3
  • 45
  • 75
0
votes
1 answer

Parameter Placeholders are causing an error in Webmatrix

Every time I try using parameter placeholders either in a SELECT, INSERT, or UPDATE statement in WebMatrix I get the same error. It works fine in WHERE clause. What am I doing wrong I need some help. Here is my code: if (IsPost &&…
tnlewis
  • 323
  • 1
  • 3
  • 15
0
votes
1 answer

How can i get a specific version from the TFS using Web Matrix?

I would like to get a specific version from the TFS using Web Matrix. Where can I use the following features in Web Matrix? Compare View History Get Specific Version I am able to see those feature in Visual Studio IDE but not in Web…
sridharnetha
  • 2,104
  • 8
  • 35
  • 69
0
votes
1 answer

Razor View Reference Error: FileNotFoundException

I just got to fix the old project from other guys which use visual studio 2012. I think it was built on MVC4 because it still uses WebMatrix.Data and WebMatrix.WebData. Because I don't have that vs version so I was using visual studio 2013 community…
John Hadikusumo
  • 1,317
  • 2
  • 11
  • 20
0
votes
1 answer

Keep input data after posting

I have an issue with a long form I'm doing. If a user fills out the form, and validation is invalid, it erases everything in the form, and doesn't keep the data in the valid forms. How would I make it so it doesn't erase the data upon pressing…
Mikkel
  • 1,853
  • 1
  • 15
  • 31
0
votes
1 answer

How to handle a multi-site environment

If I have an application in WebPages, I would like to know how to enable multi-site capabilities? I understand the _SiteLayout.cshtml file or what not can handle the template for one site, but how about if I wanted to change that for a different…
Control Freak
  • 12,965
  • 30
  • 94
  • 145
0
votes
1 answer

How does **WebSecurity.CreateUserAndAccount()** checks that username is already present in database?

I am working on mvc4 default internet project, which uses the above mentioned method for creating user account.This method is working fine for me but I am not able to understand how it checks that username is already present in default database. I…
0
votes
1 answer

Sending form to email in webmatrix

I have a question regarding emails, i want to send the whole contact form to email, and in this tutorial http://www.asp.net/web-pages/tutorials/email-and-search/11-adding-email-to-your-web-site it has almost everything except this line in code //…
0
votes
1 answer

Why websites created in WebMatrix not visible in IIS?

I have windows 7 home premium. The version of IIS is Home Premium 7. I have created a website using DotNetNuke through WebMatrix. The files related to the website are created under the "My Documents" folder. However, when I open the IIS window, I do…
KurioZ7
  • 6,028
  • 13
  • 46
  • 65
0
votes
2 answers

Simplified DB access in MVC controller with Webmatrix.Data api or?

My MVC application accesses DB2/400. My DAL dll is being build around ADO.NET. I need to build some simple controller actions. I dont want to go all over execute datareader methods just to get something simple and make my DAL fat. These actions are…
e4rthdog
  • 5,103
  • 4
  • 40
  • 89