Web Forms is a part of the ASP.NET web framework. It is one of the different programming models you can use to create web applications. Web Forms are pages that your users request through their browser and that form the user interface (UI) that give your web applications their look and feel.

learn more… | top users | synonyms (2)

4
votes
0answers
350 views

CKEditor adding far too many BR tags

I'm developing a web application using ASP.NET WebForms and have added CKEditor for more user-friendly text editing. Now the issue is, the amount of whitespace is far too big. Apparently, it creates ...
3
votes
0answers
834 views

asp.net 4.5 webforms model binding : client side validation supported?

I'm a huge fan of asp.net 4.5 webforms model binding using data annotations. ascx: <asp:FormView ItemType="Contact" runat="server" DefaultMode="Edit" SelectMethod="GetContact" ...
3
votes
0answers
282 views

MvcMiniProfiler not rendering any results for ajax requests in asp.net webforms site

I have an asp.net site running webforms I want to add the miniprofiler because of periodic sluggishness of the site.. If I just add the miniprofiler to a site not calling any ajax requests then it ...
2
votes
0answers
39 views

ASP.Net / Webforms: Missing the range header

I have a webforms application that has a download handler in an ashx file that's redirected to from an urlMapping in the web.config. This works alright, however I'd like to also support continuing ...
2
votes
0answers
32 views

Logging into another website that uses WebForm_DoPostBackWithOptions

I am making Website (A) using using the .NET MVC 5 Framework and I need to be able to login to Website (B) to download a file / scrape HTML, Website B is built on .NET Webforms. I initially looked ...
2
votes
0answers
102 views

Postbacks fail after upgrade from .NET 3.5 to .NET 4.5.1

I've searched for anything similar to what I'm experiencing for a couple of days now with no luck. I recently upgraded a suite of Web Forms Applications from .NET 3.5 to .NET 4.5.1. After cleaning ...
2
votes
0answers
156 views

Disable site.mobile.master

I have created asp.net webforms project and now I would like to disable mobile site. Tried to rename site.mobile.master but still it getting mobile master somewhere. Where can I find documentation ...
2
votes
0answers
220 views

Old WebSite in Visual Studio 2013 and IISExpress - Virtual directory

I have a WebSite (not project, WebSite) using ASP.NET Webforms, at the begining this WebSite was created using Casini (old visual studio Web Server) with "GestorAplicaciones" as virtual directory. ...
2
votes
0answers
49 views

How to get Visual Studio to show hints and warning in a web-site?

When you build a web-site in Visual Studio, it will not show you any Hints or Warning related to aspx markup files unless you have the file physically open in the editor. For example, there is a Hint ...
2
votes
0answers
193 views

Lifetime scope with autofac, webforms and ServiceLocator

In a legacy Asp.NET webforms application, I try to inject some IOC. I won't enter into details, but for this one, I think ServiceLocator is a good tools for the job. I know that service locator is an ...
2
votes
0answers
120 views

Generic handlers (ashx) for images - very slow unless written to image first

I've been rendering binary images from sql server for years, but usually only very small images. Recently, I wanted to do this for larger images (500kb size). I found that the old way I was doing it ...
2
votes
0answers
175 views

Losing data in LoginView after binding parent Repeater

I'm having some trouble with a LoginView that is nested inside a Repeater in my ASP.NET 4.5 site. The data gets properly bound when the page loads. But if some external event rebinds the repeater, the ...
2
votes
0answers
65 views

ASP.NET WebForms: Is it possible to store/update session data within a thread in a load balanced enviroment using SQL server?

We are using a ASP.NET WebForms website with a load balancer storing the session variables using SQL server (for now I cannot change this configuration). I need to upload a file and process it which ...
2
votes
0answers
43 views

Unable to access button defined in file referenced by #include

I created a website (index.aspx) in which I included my navigation using the include comment <!-- #include virtual ="/include/mainNavigation.aspx" --> Now I want to access a button defined in ...
2
votes
0answers
146 views

If I use ASP.NET identity, am I stuck with EF?

I've recently started learning ASP.NET, and after some reading, I've decided to try identity for authenticating users. I've read several articles about customizing the model, like implementing my own ...
2
votes
0answers
68 views

Model Binding Complex Types

What I am trying to do is on one page have a FormView strongly typed with a nested ListView that also strongly typed. The model hierarchy is ClassA(FormView) with a property of List<ClassB>. ...
2
votes
0answers
159 views

Visual Studio 2013 hangs/freezes when trying to click the designer view

my Visual Studio 2013 update 1 hangs/freezes when trying to click the designer view, after clicking "Design" I can not click "split" neather "Source". What can I do ? I already tried to set the "HTML ...
2
votes
0answers
205 views

How to prevent a long running request in ASP.NET 4.5 from timing out

Never mind that its not a best practice but for a custom requirement (there will only be a couple of users for the app & no concurrent access), I need to set a very large execution timeout value ...
2
votes
0answers
140 views

REST Service - call from ASP.NET 4.0 fails for certain passwords

I am calling a REST based service API from a ASP.NET 4.0 Webforms application. The REST service requires HTTP Basic Auth and this has worked just fine so far. I'm using this code snippet to define my ...
2
votes
0answers
196 views

ASP.NET: OnLoad event issue in DataGrid

As I will lose the modified data when move to next page in DataGrid in Edit model, then I found if I bind the data in Onload event, I won't lose the modified data. Another word, I cannot to add some ...
2
votes
0answers
250 views

How to use an IEnumerable<T> business object as RDLC datasource, the way it REALLY works?

I have the hardest time creating an WebForms RDLC report with my business objects, in Visual Studio 2010. I am using the designer to build my report. In the Report Data View of VS2010 I select ...
2
votes
0answers
357 views

LinqToTwitter Error - The remote certificate is invalid according to the validation procedure

I've found several different questions about this error, but none of them seem to outline my scenario. I am creating a website that pulls in tweets from our company's Twitter account, and ...
2
votes
0answers
234 views

Script Bundling in WebForms with Virtual Directories

We have a separate "Framework" project for shared controls, javascript, etc. that is used by this and other projects. The Framework project is included in our solution, and we made a virtual ...
2
votes
0answers
383 views

Microsoft.VisualStudio.Web.Host crash

I am using VS2012. As you see in my question I am getting Microsoft.VisualStudio.Web.Host.exe stopped working when trying to open my website project. The weird thing is that even without building or ...
2
votes
0answers
117 views

Where can I clear non-razor view engines in a Web Pages site?

It is recommended when using the Razor View Engine to unload any others (such as Web forms) in Global.asax like so: ViewEngines.Engines.Clear(); ViewEngines.Engines.Add(new RazorViewEngine()); But ...
2
votes
0answers
219 views

How can I configure site Authorization for an MVC site with Web Forms components?

I have an MVC site where I need to use the ReportViewer control to integrate with SSRS. This means I need to have a Web Forms page within the site specifically for dealing with reports. Thankfully ...
2
votes
0answers
133 views

Can I Force OutputCache to cache my custom response headers?

I've got an ASP.NET webform that uses output caching, and I set some custom response headers when the page is rendered (e.g. X-MyCustomHeader). On a cold cache hit, my custom headers are set on the ...
2
votes
0answers
355 views

FancyBox doesn't trigger when using it in UserControl

I have ASP.Net Masterpage design & have to user a Fancybox to show videos as modal, When i show videos on a ContenPage & place all related scripts to FB on that page then it works fine for ...
2
votes
0answers
210 views

Sort Order Dropdown in Gridview

I have a Gridview control with two columns: One is ID (a label) and the other is Sort Order (dropdown list). The dropdown is numbered from 1 to n, where n is the number of rows in the Gridview. For ...
2
votes
0answers
141 views

UnobtrusiveValidationMode not works on client side?

I migrated recently to the VS 2012 and .NET 4.5 and I'm studying this UnobtrusiveValidationMode. I configured my Global.asax setting the ScriptResourceMapping for my jquery file and I added the ...
2
votes
0answers
231 views

No RowCommand-event for GridView with extra rows added dynamically

So i have a GridView-control. That is set to a datasource, with paging of 20. Though, in the RowDataBound-handler I add an extra row for each bound row, making it a total of 40 rows. These are ...
2
votes
0answers
998 views

Using TabContainer OnDemand feature to lazy load UserControl, when to perform work?

I'm trying out the OnDemand feature of the ASP.NET Ajax Control Toolkit TabContainer to delay execution of expensive operations until the tab is loaded. On my page there are a few tabs, and each ...
2
votes
0answers
231 views

When I click on a button click from my webform, it never goes to the MVC view

Trying to Integrate MVC 4 Razor into Webforms website, followed http://ofps.oreilly.com/titles/9781449320317/ch_MVCandWebForms.html On my WebForms Application's web.config <configuration> ...
2
votes
0answers
142 views

Duplicate jquery when using unobtrusiveValidationMode

When using the unobtrusivevalidationmode on a page that already has jquery on it, jquery is loaded twice. Once in the header, once just inside the form. How do you prevent this from occurring.
2
votes
0answers
156 views

Error with templated control with attribute [TemplateInstance(TemplateInstance.Single)] inside FormView

I've created a Custom Control that has a single ContentTemplate where I've decorated the ITemplate property with the [TemplateInstance(TemplateInstance.Single)] attribute to make all controls inside ...
2
votes
0answers
805 views

Handle ASP.NET Web Form postbacks in MVC 3

I am trying to modernize an existing web application that was built using ASP.NET Web Forms. I'm trying to that by wrapping it inside MVC 3 (Razor) and using the views from there. What I have been ...
2
votes
0answers
558 views

How to make header of a DataList repeat on each column when using RepeatColumn?

I need to display the records in a view on more than one column for better visibility so i switched from using GridView to DataList. How can I make the DataList repeat the header on each column? ...
2
votes
0answers
305 views

Postbacks and output caching on user controls

There is a well known issue with using output caching on aspx pages which postback, where Asp.Net returns the cached page, instead executing the postback logic I came across what seems like an ...
2
votes
0answers
1k views

Picup App VS. cliqcliq Quickpic

Weekend research has shown me that, in mobile Safari, my best chances for the upload of an image file from the iOS photo library are through cliqcliq's Quickpic app or PicUp for iPhone. Are there ...
1
vote
0answers
13 views

ASP.net WebForms Repeater fetching post-data

I am using an asp.net repeater data-bound to a IEnumerable . In that repeater I have a table. In one of its columns I have a html-select with two available options. After postback via button I have ...
1
vote
0answers
19 views

Correctly call matlab dll from asp.net webform

Recently I've been starting with Asp.net, particularly Web Form application. And in the application, I need to reference a dll produced by Matlab deploytool (including a .m function I wrote myself). ...
1
vote
0answers
24 views

Prevent multiple users viewing the same page simultaneously

In my project you can add/remove students to a class. All leaders can add their own people to that class. On save, an entire recordset is deleted and a recordset is inserted. So if someone is on the ...
1
vote
0answers
28 views

Server.transfer postback issue

I have a button that does a server.transfer to another aspx page. On the second page is a form with submit button. When clicking the submit button the page_load 'if not ispostback code' executes and ...
1
vote
0answers
23 views

Use .NET WebForms for project rebuild

I'm working on a fairly big .NET WebForms application. Now we have to rewrite parts of the application (and over some time the whole thing). Should we stick around with WebForms or should we use MVC ...
1
vote
0answers
26 views

How to use Response.BeginFlush and Response.EndFlush for Asynchronous Pages

I'm using ASP.NET WebForms. In my PageLoad method, I register a task: // c# code RegisterAsyncTask(new PageAsyncTask(BindAsync)); // more C# code here Is it possible to flush the page while that ...
1
vote
0answers
36 views

ASP.NET two-way bind a nested listview with a variable amount of items

I'm trying to figure out how to two-way databind a ListView. Coming from MVC to a Web Forms application, I'm struggling on how to do so. I've created a view model structure that represents the nested ...
1
vote
0answers
18 views

ScriptResourceDefinition for JQuery causes duplicate requests

I've just enabled UnobtrusiveValidation in my webforms site using the global.asax changes: Protected Sub Application_Start(sender As Object, e As EventArgs) Dim jquery As New ...
1
vote
0answers
30 views

Converting Webforms to MVC: Where to put display logic?

I'm a junior developer working with a fairly large ASP website with 100+ web forms and 100+ user controls. Our job is to converting the project to MVC5. The whole MVC concept/pattern is very ...
1
vote
0answers
31 views

Dropdown List value not updated after changing selection

I'm using a dropdownlist which allows the user to choose a value (representing a client name.) I'm binding that list in the Page_Load doing it like that : if(!IsPostBack) { var airClients = ...
1
vote
0answers
31 views

Changing the date format in a column

I currently have a "Delivery Date" column in my class which shows the date format as 2/23/2015 in a table. I want to change the format of the date in the table so it would look like 23/2/2015. Is ...