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
0
votes
0 answers

Can't locate php.exe

I am new to web programming, I have installed PHP for webmatrix. my php sites work perfectly but I need to use "php tools" in command line but it gives error "'php' is not recognized as an internal...." I know first, I should locate php.exe file…
Hasan
  • 2,444
  • 3
  • 30
  • 44
0
votes
1 answer

Do I need to do anything "special" to use the WebMatrix database helper in Visual Studio '12?

I'm doing some basic db querying in WebMatrix. Something like, @{ var db = Database.Open("test"); //test is the name of my database var selectQuery = "SELECT * FROM MY_CUSTOM_TABLE" } //Doing a `@foreach` and showing the items from the…
painotpi
  • 6,894
  • 1
  • 37
  • 70
0
votes
1 answer

How use custom class in WebMatrix v2?

I do first steps in the ASP.NET and I've a issue with classes. I would like to create a new custom class to support sessions and collect information about the number of users on my website. I've created a class in file MySession.cs, which has been…
deem
  • 1,844
  • 4
  • 20
  • 36
0
votes
2 answers

Webmatrix 2 template creation failure

I'm having problems creating sites from templates using the latest version of WebMatrix. I have uninstalled it and retried a few times restarting my computer as well but still it fails to create a template. I have tried to create ASP.NET, Node.js…
Arminder Dahul
  • 194
  • 5
  • 23
0
votes
2 answers

Localization issue with date formats using Classic ASP on webmatrix 2

I am getting a bit worked up here. I am working on new site in Classic Asp. Built everything and all is working fine and now comes the time to test with some data. The moment we come to date related data everything goes crazy. i run a query on my…
cjv
  • 51
  • 1
  • 2
  • 12
0
votes
1 answer

razor/WebMatrix variable scope

I have this in my webpage @{ if(!IsPost){ var db = Database.Open("MyDatabase"); var catList= db.Query("select * from category"); } else{ var db = Database.Open("MyDatabase"); var query = "insert into…
E-Bat
  • 4,792
  • 1
  • 33
  • 58
0
votes
1 answer

how to get id values of form input in razor asp.net

I have such form, and i want to get values of each id in foreach loop Price
Condition
Brand
ktm
  • 6,025
  • 24
  • 69
  • 95
0
votes
2 answers

Displaying video on webpage

I'm working on a website and I want to display video on the home page. Although I have achieved this using embed tag and .swf format. But the problem is as soon as the page is loaded the video begins. I want the video to show play, pause and full…
Wadhawan994
  • 49
  • 1
  • 8
0
votes
2 answers

Logo image not being displayed Except on the default page

I'm working on a website. I have linked the logo image file. The logo is displayed only once when the site runs on the default page i.e. the home page. As I switch on to the other page the logo is not displayed on any page. I have given the correct…
Wadhawan994
  • 49
  • 1
  • 8
0
votes
2 answers

Is it possible to send emails via a form

Hi I have a form set up on my page. How can I make it email my given email address?

Please contact us

Mcloving
  • 1,390
  • 1
  • 13
  • 30
0
votes
2 answers

Access variables from partial in WebMatrix 2

Quite simply How can I pass from Partial to page on construction: _SiteLayout.cshtml @{PageData["phoneNumber"]="072342342343";} Page.cshtml please call us on @PageData["phoneNumber"] Ive tried things like this. What obvious step am I missing? Its…
IAmGroot
  • 13,760
  • 18
  • 84
  • 154
-1
votes
1 answer

giving a .cshtml layout to aspx file in webmatrix or any other WebPages project

I want to give my .cshtml layout to a aspx and its respective cs file which I have included in my webmatrix project which contains all files in cshtml (razor)please help me out guys I hv searched for it a lot and found notihing,plz help out...thanks
aspweb
  • 3
  • 1
-1
votes
1 answer

Why is my image not displaying in my web page?

I modified the _SiteLayout.cshtml file in my WebMatrix project so that it contains this line:

your logo here

...but the image is not…
B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862
-3
votes
1 answer

how to display the username after login instead of login and register form

i have created a login page using ASP classic. The problem is that after the login it redirect to the index page with the same login and register button instead of display the username or email id? Thanks in advance... Here is the…
1 2 3 4 5 6
7