Questions tagged [asp.net-webpages]

ASP.NET Web Pages is a page-centric lightweight development framework from Microsoft for building dynamic web sites.

ASP.NET Web Pages is the third web development model released by Microsoft after ASP.NET Web Forms and the ASP.NET MVC framework. Web Pages saw the introduction of Razor, a template syntax that enables the embedding of server-side code (C# or VB) within HTML markup. In this respect, the Web Pages framework offers a similar web development experience as that provided by PHP, classic ASP and other scripting technologies. This is deliberate, as the Web Pages framework is designed primarily to attract classic ASP and PHP developers to the ASP.NET stack - offering a "low concept count" introduction to ASP.NET.

Web Pages are developed using .cshtml (C#) or .vbhtml (VB) files. Typically, a file represents a page in a web site and will contain both the server-side code to manage the programming logic, and the HTML, CSS and JavaScript to be rendered to the browser.

Web Pages supports a template system based on layout files and the ability to dynamically include the contents of other files within a parent file at runtime. Web Pages also introduces a simple data access technology - the Database helper - based on the C# 4.0 dynamic type.

Despite the emphasis on simplicity, the Web Pages framework provides developers access to the entire .NET framework, enabling development of complex web sites.

More information at http://www.asp.net/web-pages

441 questions
0
votes
1 answer

Posting form values with jQuery ASP.NET Webpages Error

I am trying to send a form data, converted to JSON, to another page with jQuery, . However, I believe my POST method is not working as I am always getting the error message- which only says "error". Can anyone help me catch the exact error or tinker…
0
votes
1 answer

Should a dynamic help page content be stored in Database or HTML file?

So, I'm trying to come up with a better way to do a dynamic help module that displays a distinct help page for each page of a website. Currently there is a help.aspx that has a title and div section that is filled by methods that grab a database…
subpath42
  • 81
  • 1
  • 1
  • 9
0
votes
2 answers

Unable to deploy Razor Web Site to IIS 6

I've been tearing my hairs out over this one. Found many similar references on StackOverflow and the internet, but nothing seems to help me. I just keep on getting "Directory Listing Denied" when opening the website, and "This type of page is not…
Peter
  • 2,874
  • 2
  • 31
  • 42
0
votes
2 answers

Having trouble traversing DOM to get div occuring just before another element

The value of previousDiv when i run the jQuery shown below is always: [ ]. I have tried several variations of the .prev() function including .prev('div'), and .prev() all with the same result. Here is the jQuery: $('.AddToRole').click(function(evt)…
Darren
  • 793
  • 5
  • 17
  • 30
0
votes
1 answer

form security issue in razor web pages

I have a hidden form field to delete an item in my razor web pages application user can easily alter the item value and delete other user's product, how do we secure this ?
ktm
  • 6,025
  • 24
  • 69
  • 95
0
votes
1 answer

Calling a web page from a GridView select button

In an ASP.Net / VB.Net web page I would like to allow the user to Call another web page within my application passing some parameters to another page that uses these parameters as part of the DataSource "Select" statement from the "Select Button" of…
Emad-ud-deen
  • 4,734
  • 21
  • 87
  • 152
0
votes
1 answer

Select dropdown list value from joined table in razor web pages (using WebMatrix)

I'm learning ASP.Net web pages programming using Webmatrix (with razor syntax). Goal is to have dropdown list boxes populated by values stored in a table and the selected value coming from another joined table. The selected value should be shown…
0
votes
1 answer

Async support in Web Pages 2.0

Are asynchronous (either async/await or TPL) operations supported in Web Pages 2.0?
Ben Foster
  • 34,340
  • 40
  • 176
  • 285
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
0 answers

Custom web security using GUIDs

Hi ive asked this over on the offical asp.net forums aswell though it would hurt to ask here to. First some background information (feel free to skip it) i've only recently started learning asp.net web pages To start i picked up a few books, that…
Jamie89
  • 31
  • 1
0
votes
2 answers

Android : How to access web page and send parameters to it

I am developing an android application and i need to access the server side which is done as web pages in asp.net below is the web page URL : theWebPageURL?action=methodName&email=theEmail i don't know what methods shall i use to access this URL…
Rana Osama
  • 1,313
  • 2
  • 17
  • 27
0
votes
1 answer

asp.net webpages: Error when trying to save back to database if DB helper already used

I have an if statement which checks whether or not an entry exists in my DB. The code correctly checks if an email address is already present, however if the email does not exist i get an…
davey
  • 1,544
  • 4
  • 26
  • 41
0
votes
1 answer

ASP.NET Web Pages Cannot add new column to UserProfile table (SQL Server CE )

Using SQL Server CE, I am trying to add a new column to the UserProfile table in ASP.NET Web Pages but keep getting the error when attempting to save the database. Any ideas? Database Manager The constraint cannot be removed because it is…
Sean Dooley
  • 615
  • 2
  • 11
  • 27
0
votes
1 answer

Is the _PageStart different for every user?

I'm exploring the possibilities of the ASP.net Webpages 2 with Razor, and trying to make an application with Windows Authentication. So I'd like to know if the _PageStart is executed for every user or just once and then cached? It is because I'd…
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