asp.net-webforms

Dropdownlist control with <optgroup>s for asp.net (webforms)?

Can anyone recommend a dropdownlist control for asp.net (3.5) that can render option groups? Thanks ...

Why .NET strips off one <form> tag from the page if there is already a form with runat server attribute?

It doesn't remove everything inside the 2nd form tag but just hides the and tags from the page Any ideas and workaround? ...

ASP.NET web forms as ASP.NET MVC

I am sorry for possible misleading about the title, but I have no idea for a proper title. Feel free to edit. Anyway, I am using ASP.NET Web Forms, and maybe this isn't how web forms is intended to be used, but I like to construct and populate HTML elements manually. It gives me more control. I don't use DataBinding and that kind of s...

LinkButton in ASP.NET MVC

I need to instantiate some ASP LinkButtons onto an ASP.NET MVC view page. I've tried a few things, and I cant get them to come out right. Heres my most recent incarnation of the code: the aspx file <body> <% using (Html.BeginForm("TitleDetail", "Movies", FormMethod.Post, new{runat="server"})) { %> <ul> <% foreach (var disc i...

ASP.NET MVC - Is it possible to have a MVC subproject in a FORMS rootproject?

I'm trying to find out if other people are able to do this. I've found the following question and answer (which refers to Scott Hanselmans post on mixing Forms and MVC) (http://stackoverflow.com/questions/541703/can-i-use-asp-net-mvc-together-with-regular-asp-net-web-forms). However this is not quite the same. Are you able to run a ....

How to configure and debug a web application using MVC and WebForms

I have an existing ASP.NET web application that I'm converting to MVC 1.0. The site started out with one goal. However, over time our sponsors are asking for more functionality and it is obvious that MVC would be our best route due to the new requirements. I've dabbled in MVC over the last couple of months and have a pretty good grasp on...

Ajax performance: ASP.Net MVC vs Webforms

I just switch my website over to MVC from Webforms and I am using ajax very heavily. MVC seems to be slower but I haven't set up anything to record benchmarks. Does anyone know which is faster for ajax handling and why it's faster? ...

asp.net Form Generator

Anyone know of a product/solution that creates web forms on the fly? I want to allow my users to create their own web forms. Any help is appreciated. C# or VB solutions accepted. Edit: What I'm trying to create is something like wufoo.com (thanks o.k.w). I don't want to have to build my own form builder from scratch. ...

asp.net mvc javascript postback

I'm mixing asp.net webforms and asp.net mvc. To use webforms I've included routes.IgnoreRoute("Reports/{*pathInfo}"); in the public static void RegisterRoutes(RouteCollection routes) method. It seems to work just fine. But javascript postbacks on the asp.net webform pages don't work. Specifically <script type="text/javascript"> fun...

How would I save various selected options on an ASP.NET form to SQL Server to be recalled as a "saved" report?

I have an ASP.NET WebForm with a number of DropDownLists, multiple select enabled ListBoxes, CheckBoxes and TextBoxes. What I would like to be able to do is allow the user to save all the selected options and call it a name as a saved report. This would then allow them to click to retrieve the selections they made when they come back to...

Third Party Controls for Address Input

Can anyone recommend a third party control for an ASP.NET site that supports the entry and validation of address information for multiple countries? For instance, when "USA" is selected as the country a text/combo box for "State" is displayed/enabled and required, where as it's hidden/disabled and not required when "Canada" or other co...

Things that we hated about classic asp but still exist in webforms today

I'm working on a list of reasons for my team to move from webforms to MVC and I thought a good place to start was showing the "why we should migrate" with a set of things both classic asp and webforms have in common. Such as: Spagetti Code (violation of SRP) Classic ASP - each .asp file felt like a big ball of mud Webforms - this big b...

ASP.NET and Oracle

Hello, I have found this web site really helpful since everybody helps here with the best answers. Now, i need a suggestion. I hope you would help me as before. I need to develop an ASP.NET application with oracle database. Database server is physically separated from the application server. Now my question is which technology is prefer...

Structuremap in VB .Net (WebForms)

I'm in the process of trying to hook StructureMap in to an existing webforms application. Since it's webforms I have to use Setter Injection, which is not ideal, but it's better than nothing. Where I'm coming unstuck is translating to VB (I'm really a C# dev currently working in a VB shop). I've written a custom scanner, which works fin...

Webforms buttons disabling randomly and intermittantly

All over my application, buttons, link buttons and image buttons seem to become disabled. A few refreshes of the page, or a reload, or sometimes it requires a restart of my browser (This occurs in all browser) will re-enable the button. I haven't got a clue how this is happening and it is driving me, and my clients nuts. I am assuming...

Is there any way to use an UpdatePanel inside of a Facebox popup?

I'm using Facebox for pretty facebook style popups and I was wondering if there is any way to use it with an update panel inside of it? I have a div in a page with two drop downs, and the second drop down depends on the selected value of the first drop down. I put these dropdowns inside an UpdatePanel, and I would like to be able to sho...

Customize ASP.Net Ajax Framework

When I use a script manager in Web Forms web applications, where does ASP.Net load the Ajax framework from? (You know the one that provides the $find, $get functions). I'm looking to replace the built in $find, $get with some extra logic to work around master page name mangling. Anybody know the best way I can accomplish this? I'm t...

asp.net webforms - is this a good way of persisting state?

This is a question about asp.net WebForms and sessionstate. I know this is probably a case where MVC is better, but I need to use WebForms. In my page's OnLoad event, I initalize an object and its properties (one call to a db, then some logic for the properties.) I use this object to populate the controls on the page, eg. lblTitle.tex...

Asp.Net MVC and Report Viewer Control

I have an Asp.Net MVC page that links out to a Asp.net web form with a report viewer control on it. The web form opens in a new window, and displays a report properly when clicking on the link on my MVC page. However when I close the my broswer window while the report is processing, and try to open it again, the page hangs and eventual...

textBox1.Tag equivalent in Web Forms?

What is the equivalent to textBox1.Tag in Webforms? ...