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
-2
votes
3 answers

Reason to take more loading time of asp.net page and how to reduce it

I have the following queries regarding the loading time of asp.net page. Anyone can help. What are the possibilities of asp.net page consuming more loading time?. How to reduce the loading time of asp.net web page?
Jino Shaji
  • 1,097
  • 14
  • 27
-2
votes
2 answers

Make a "Web-Proxy" - Step By Step

Is there any way to show another page into your page? I cannot use frames, because frame will open that page directly, I want to copy the whole page and save it into new file, then show my new file to user. I think it is better to do this using a…
padfoot
  • 1
  • 2
-2
votes
1 answer

Unable to update Bit datatype sql server webpages

Please help, I have a problem updating a bit datatype with asp.net webpages syntax. Here's my code var db = Database.Open("StarterSite"); var idAdmin = ""; // Here's the ID of the new Admin var idAdmin2 = ""; // Here's The ID of the old…
-2
votes
1 answer

How can I reference data from an AppState variable?

The problem is that I can't find a way to test anything stored in AppState["variableName"] (or App.variableName or HttpContext.Current.Application["variableName"], etc.) inside an if condition. (It only ever sees it as an object, even though I can…
VoidKing
  • 6,282
  • 9
  • 49
  • 81
-3
votes
1 answer

Loop dictionary object and display data

I am using a GET request to shopify and shopify returns a json.. I am deserializing the json to the below object(Dictionary)... How can I loop through the below object and access only the "title" key value pair. @using…
Gautam Sharma
  • 65
  • 1
  • 7
-3
votes
1 answer

CS0117: 'TestClass' does not contain a definition for 'CurrentPage'

But it does! And it was working yesterday. And not a single thing in my code has changed. using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Web; /// /// Summary description for TestClass ///…
username
  • 289
  • 4
  • 19
1 2 3
29
30