asp.net-webforms

What's a good ASP.Net book to read?

I'm not a beginner programmer. What would be a good book that has be build a working application with ASP.Net Webforms? (I'm familiar with MVC2) Thanks. ...

.net Webforms 5 steps data form data from client and submit to the server.

Hi guys, I like to ask what's the best way to submit a form with 5 tabs. Is like, i need to get some data content in input fields and the form contains 5 tabs in html, and i need to send all data to the server. My ideia is, send like a object to the server with my all data filled. Using cookie to saves the data than i'm choosing, and...

Inherit a business object for a DTO ?

Possible Duplicate: Update only 1 field of a big Business Object inside a transaction (Best approach) ? Hello fellows, I want to update only two propertes of a big business object/class. Business Object(20 fields), UpdateObject(4 fields) Can I make a small child object inheriting those 4 fields from the business object and p...

FormView with EntityDataSource and DropDownList gives "A property names '{0}' was not found on the entity ..."

The problem: When I try to do an update using an EntityDataSource and a FormView that has an asp:DropDownList linking to another table, the page loads fine with the proper setting, but on update I get this error message: A property named 'Vendor.VendorId' was not found on the entity during an insert, update, or delete operation. Check t...

Is there a better way to update content via ajax in ASP.Net web forms thanUpdatePanels?

I consider myself very knowledgeable in web UI development, and over the last four years I have learned a lot about ASP.Net Web Forms, but I still haven't figured out a good way to update sections of a page via Ajax. I have done this several different ways which basically involves a user control loaded by some sort of .aspx page or handl...

watin - Settings.FindByDefaultFactory - doesn't seem to use my custom FindByDefaultFactory

Based on this article, I've written a custom class which implements the Watin.Core.interfaces.IFindByDefaultFactory, but I don't think I'm correctly assigning it to the watin settings, because it is never used. Basically, Where/when should I assign to the Settings.FindByDefaultFactory? I've tried in my test Setup, and the text fixture's...

Asp.Net GridView : Good or Bad / What datatypes to use for binding?

So, this question may be a little vague, but I have constant discussions about it: When designing an Asp.Net page, a lot of times you might just want to throw a quick and dirty GridView on the page. When you are going that route you have the various datasource options (I typically use ObjectDataSource tied to a business object) and you...

Mixing WebForms and MVC: What should I do with the MasterPage?

I want to start migrating a WebForms App to MVC. The process will be gradual, so both systems must co-exist. The question is: Should I have two MasterPages, one for the WebForms pages and other for the MVC views? Is there a way to have only one? ...

Can I use an IoC container to create ASP.NET webforms pages and controls?

With ASP.NET MVC it is pretty easy to integrate an IoC container to create the controllers. Is the same thing also possible with webforms to create the pages and controls and pass them any dependencies? If yes, where do I have to plug it in? ...

Deploying an ascx control

I have a fix done for my user control. The changes are there both in the .ascx file and the .ascx.cs file. Now, post-build...is there any way I can deploy just my...assembly for this control container...and avoid the deployment of the .ascx file? ...

How to use ASP.Net MVC View inside WebForms .aspx page?

I have a large web application that I have set up as both ASP.Net Web Forms and MVC. Some of the newer pages are MVC (.mvc) and some are Web Forms (.aspx). Since this is a business app and functions are being constantly added, it's hard for me to have the time to stop and replace existing functionality to convert it over. So I would like...

Asp.NET MVC is REST but Why Asp.NET WebForms are not?

Okay I hear that thing all the time on internet when reading an article about MVC : "Since Asp.NET MVC is REST, it is easy to consume ... etc." I've never heard such a thing for Asp.NET Webforms and it makes me wonder what makes something REST. As I understood, REST means Representational State Transfer in which what a user see on their...

ASP.net webform design

I can't figure out a good design for this. I have an edit product page. It allows you to change basic product details, product name etc. Then I have a function to upload images of the product. I also have a small page for adding different prices based on date ranges for the product. What I can't figure out, is how to have these on...

Validate one button is clicked before another with Javascript

This is in ASP.NET. We are using a ExtJS frontend, and have our own VB.NET controls to make all the Ext Forms and stuff. However, I hope this can be done in plain javascript. There is already some Javascript on the page for the 'Test Connection' button click and handling the result. However, I need validation on the screen to make sure ...

Unity and ASP.NET WebForms - No parameterless constructor defined for this object

Does anyone have any good examples of how to make Unity 1.2 or 2.0 work with ASP.NET WebForms? I thought I had this figured out, but evidently I'm missing something. Now I'm getting the error; "No parameterless constructor defined for this object". I remember getting this error a couple years ago, I and just don't remember what I di...

ASP.NET 3.5 webforms URL Routing question

Hello, I'm attempting to configure URL routing in my ASP.NET 3.5 WebForms app. Setting up routes has always been confusing to me, so I was hoping I could get some direction. My requirement is fairly simple. I'm setting up different "brands" of my application, and I'd like the brand to be specified in the URL. For example, http://www....

Injected CSS from Code-Behind into ASP.NET WebForm

Hello, I have a situation where my H3 tags are styled in an external CSS file, but the color attribute is going to dynamically change based on a database value. I would like to inject some CSS into my master page from code-behind to set the color of the H3 tag globally instead of having to specify it on each tag. How can I do this? Th...

How can I place one ASP.NET calendar control beside another?

Is there any way to put Two ASP.NET standard calendar controls on Webform, one beside the other? I have been trying for a while to design a WebForm with two calendars controls, but whatever I try they are standing one above the other. Here is how my aspx looks like: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="JedanDoDruge.a...

VS 2010 to show custom web controls from other projects

I have a solution with 2 web applications projects and a project with some shared custom controls. The custom controls project is referenced by both web applications. What I'd like to see is the controls in the custom project automatically show up in the toolbox for the two web apps. I've tried the autopopulate toolbox, but that didn't ...

Making changes to a pre-populated textbox

I have the following webform with textboxes that are pre-populated on page load: <%@ Page Title="" Language="VB" MasterPageFile="~/default.master" AutoEventWireup="true" CodeFile="admin.aspx.vb" Inherits="admin" Theme="G2M" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> </asp:Content> <asp:Content ID="Content...