asp.net-webpages

Why Is My JQuery Plugin Causing A Cannot Read Property 'length' of Undefined?

耗尽温柔 提交于 2019-12-10 03:38:22
问题 I kind of feel bad asking yet another Cannot Read Property 'length' of Undefined question, but no online (SE or otherwise) answers are in any way relating to my problem at hand. I have tried my best to narrow down why this script error is occurring for my situation, but I am at a loss. If I exclude this tag in the page, the error ceases to show up: <script src="~/Plugins/jquery-ui-1.10.3.drag-drop.min.js" type="text/javascript"></script> All that the jquery-ui-1.10.3.drag-drop.min.js file is

File Uploading to Azure Storage by ASP.NET Webpages

拜拜、爱过 提交于 2019-12-08 11:14:49
问题 There are some reference about File Uploading to Azure BY ASP.NET MVC but I can't find none in field of ASP.NET Webpages How to implement such code to upload to Azure Storage? Well.. For more information, My goal is image uploading in CK Editor but Due to Azure Hosting, ordinary CKEditor reference is not working. So I googled and use this code block CloudStorageAccount storageAccount = CloudStorageAccount.Parse( CloudConfigurationManager.GetSetting("StorageConnectionString")); // Create the

How does routing for ASP.NET Web Pages work without global.asax

蓝咒 提交于 2019-12-07 23:01:34
问题 Web server with ASP.Net 4.0 installed, Web Pages 2.0 DLLs bin deployed. Pages written in cshtml/razor, but routing is not working. What is required on the server to activate routing when using only Web Pages as opposed to full MVC (where I'd have my routes defined in global.asax)? Right now I can only call my pages using the traditional URL and query string. Any pointers appreciated. 回答1: There are two kinds of "routing" available in the Web Pages framework. The default routing works on

Enable Azure Website Application Diagnostics

白昼怎懂夜的黑 提交于 2019-12-07 22:13:12
问题 I have a Windows Azure Website (built with ASP.NET Web Pages), and in the configuration have enabled "Application Diagnostics" for both Blob storage and file storage: I've then added some Trace statements to a Razor page to test it out @{ System.Diagnostics.Trace.TraceInformation("INFORMATION"); System.Diagnostics.Trace.TraceWarning("WARNING"); System.Diagnostics.Trace.TraceError("ERROR"); } However, this results in no logs at all, either in the file system or the blob. For good measure I

Add a namespace reference to ALL web application web pages in a different project

非 Y 不嫁゛ 提交于 2019-12-07 04:54:50
问题 I have a solution with three projects: Project 1 - Reusable Logic/Methods (applicable to all other projects) Project 2 - Web site Project 3 - Web application (project 2 being converted to a web application) In project 1 I have this code: Imports Microsoft.VisualBasic Imports System.Data Imports System.Data.SqlClient Imports System.Configuration Imports System.Web Imports System.Runtime.CompilerServices Namespace MyCompany Public Module DataExtensionMethods <Extension()> _ Public Function

Enable Azure Website Application Diagnostics

大兔子大兔子 提交于 2019-12-06 07:53:14
I have a Windows Azure Website (built with ASP.NET Web Pages), and in the configuration have enabled "Application Diagnostics" for both Blob storage and file storage: I've then added some Trace statements to a Razor page to test it out @{ System.Diagnostics.Trace.TraceInformation("INFORMATION"); System.Diagnostics.Trace.TraceWarning("WARNING"); System.Diagnostics.Trace.TraceError("ERROR"); } However, this results in no logs at all, either in the file system or the blob. For good measure I attempted to add various settings to my web.config file (shown below), although from the documentation I

How does routing for ASP.NET Web Pages work without global.asax

安稳与你 提交于 2019-12-06 04:33:21
Web server with ASP.Net 4.0 installed, Web Pages 2.0 DLLs bin deployed. Pages written in cshtml/razor, but routing is not working. What is required on the server to activate routing when using only Web Pages as opposed to full MVC (where I'd have my routes defined in global.asax)? Right now I can only call my pages using the traditional URL and query string. Any pointers appreciated. There are two kinds of "routing" available in the Web Pages framework. The default routing works on matching URLs to file paths. It is quite flexible in that it allows for additional URL segments that populate a

How can I disable/remove the WebPageHttpModule from ASP.NET 4.0 web applications?

天大地大妈咪最大 提交于 2019-12-05 17:49:24
问题 I'm trying to get my wildcard http handler to handle *.cshtml pages but the request never reaches my handler as it looks like it's being intercepted by WebPageHttpModule that I discovered exists via this StackTrace: [HttpException (0x80004005): Exception of type 'System.Web.HttpException' was thrown.] System.Web.WebPages.ApplicationStartPage.ExecuteStartPage(HttpApplication application, Action`1 monitorFile, Func`2 fileExists, Func`2 createInstance, IEnumerable`1 supportedExtensions) +88

“Missing web components” error when opening MVC3 project in Visual Studio 11 Beta

社会主义新天地 提交于 2019-12-05 16:44:35
问题 When I open a solution containing an MVC3 project in Visual Studio 11 Beta, I see the following message: The Web project 'Landboss.Web' requires missing web components to run with Visual Studio. Would you like to download and install them using the Web Platform Installer now? (Note: Some components might require restart to take effect.) ASP.NET Web pages with Razor syntax 1.0.0.0 When I click Yes , the Web Platform Installer opens and tells me this: The product you are trying to install is

Why Is My JQuery Plugin Causing A Cannot Read Property 'length' of Undefined?

…衆ロ難τιáo~ 提交于 2019-12-05 05:16:28
I kind of feel bad asking yet another Cannot Read Property 'length' of Undefined question, but no online (SE or otherwise) answers are in any way relating to my problem at hand. I have tried my best to narrow down why this script error is occurring for my situation, but I am at a loss. If I exclude this tag in the page, the error ceases to show up: <script src="~/Plugins/jquery-ui-1.10.3.drag-drop.min.js" type="text/javascript"></script> All that the jquery-ui-1.10.3.drag-drop.min.js file is is a jquery-custom file I renamed, that includes jquery draggable, droppable, and sortable. I was sure