webforms

Is JQuery more suited to ASP.NET MVC than WebForms or it doesn't matter?

Is JQuery more suited to MVC than WebForms or it doesn't matter? I am planning to use JQuery heavily. ...

ASP.NET (webforms) control for handling name-value data

I have an ASP.NET webforms site that is used mainly for managing data. One of the tables basically has name/value (string/string) data (no type information, just strings). I want to make a page that can dynamically load up a table of controls for each record (with a label for the name, and either a TextBoxes for a string/nubmer, or a C...

Dynamically Size Silverlight Control on Webpage

Here is the issue... I am adding some silverlight 3 controls to an ASP.Net Web Forms application. The silverlight application's height can change based on the amount of data in it. The application is part of a web page and not the whole page. My users would like to have only 1 set of scroll bars. Is there a way to dynamically size the d...

asp.net-mvc and webforms co-existing

I know I've asked this question before, and I know there are plenty of resources out there describing the technique but I cannot for the life of me work it out. I began by creating a simple WebForms application. I then added the Views and Controllers folders. I then added home and shared folders to the views and added an Index.aspx and...

Is memory management a concern with asp.net mvc

Hai guys, I want to know,is memory management a concern with asp.net mvc.. comparision of memeory management in both asp.net mvc and web forms by experts ...

Using DataObjectTypeName in DataObjectSource

The functionality I am trying to use is: - Create a ObjectDataSource for selection and updating controls on a web page (User Control). - Use the DataObjectTypeName to have an object created that would send the data to an UpdateMethod. - Before the values are populated in the DataObjectTypeName’s object, I would like to pre-populate th...

Impersonation: ASP.Net MVC Controller Action vs. Web Forms

Is there a difference with impersonation between an ASP.Net MVC controller actions vs. an ASP.Net Web Form? Using the exact same code within the same web project, I am able to successfully impersonate the Windows user when connecting to SQL Server from a Web Form but not from the Controller Action. Here is the code sample I am testing ...

Passing base64_encoded serialized data between form submissions

I'm creating a wizard-based series of forms for taking user inputs. One of the requirements for that wizard is that the script (PHP) cannot save the inputs into the database (MySQL) until the user clicks the 'Save' button, so I have to device a mechanism to transport user inputs in one form to another when the user clicks 'Previous' or '...

How do I unit test routes for web forms?

I have a web form such as mysite.com/list.aspx?state=florida&city=miami that I want users to browse using mysite.com/florida/miami/ and I'm using routing to do so. Then instead of using query string parameters, I end up having to use HttpContext.Current.Items[key] to retrieve the values on my list.aspx page. I have included the code be...

If an asp.net control's event's aren't binding, what are the things I should check, in order of likly cause?

So I've got an ASP.NET control with a server form with a bunch of runat="server" with events defined in the markup. However none of the events are fireing when I click the buttons. The postback occurs and in the Page_Load event IsPostback is true. What should I be checking to see why the events don't fire? What are the most likely re...

How do I customize formish error messages?

I'm using formish to handle web forms but I don't like the automatically generated error messages when validation fails. Where do I customize those error messages? ...

.net Button fired only once

Okay, here is my problem: I have a form that requires to have two fieldsets that are almost identical but that collect different sets of data. These are contained in an UpdatePanel. The user enters the data in a form, and when they hit the "Add" button, this row is inserted into DataTable. The user should be able to enter as many rows ...

ASP.NET PageMethods and The HTTP verb POST used to access path is not allowed

So, I'm using URL routing with WebForms. I run locally through the Visual Studio web server, and everything is hunky-dory. I deploy locally to IIS (XP, so it's IIS5), and therefore I need to make sure that I have my app wildcard mapped so the URL routing is handled properly. However, doing this makes all my PageMethods fail with this me...

How to create custom checklists in Sharepoint 2007?

Hello, I want to create many checklist templates and let users fill those in. For example, Task | done? | Notes Do Task 1 | yes/no | bal Do Taks 2 | yes/no | bla Do task 3 | yes/no | bala Think about server checklist. It can be performed for different clients by different employees, so I want to have that informatio...

Best Practices for updating multiple check boxes on a web form to a database

A sample case scenario - I have a form with one question and multiple answers as checkboxes, so you can choose more than one. Table for storing answers is as below: QuestionAnswers ( UserID int, QuestionID int, AnswerID int ) What is the best way of updating those answers to the database using a stored proc? At different jobs I'...

How to programmatically distinguish element/control types from ASP.NET Request.Form key/value collection?

I have a simple ASP.NET web form as below: <form id="form1" runat="server"> <asp:TextBox ID="txt" runat="server"></asp:TextBox> <asp:DropDownList ID="ddl" runat="server"> <asp:ListItem Text="X" Value="X"></asp:ListItem> <asp:ListItem Text="Y" Value="Y"></asp:ListItem> <asp:ListItem Text="Z" Value="Z"></as...

How to parse values recieved fro the textbox in one form to another

am creating a web page that allows users to enter their product name and purchase date.if they do? i check these inputs against what i have in the database and if theres a match, i display the next page and parsing the entered values into another textbox in the next page. am using response.redirect("nextpagename.aspx") to display the n...

Displaying error messages in C# web forms

i did my coding in console and used a system.console. write line in almost every if/else statement so as to display an error message if wrong values are entered of to say if what goes wrong. how ever am trying to apply the same analogy in web forms such that should there be a user error while running the conditions, an error message may ...

Passing Value from textboxes in one webform to texboxes in another webform

am trying to get users to enter some details into a textbox in form1 and get the entry validated against the database. if the entry is correct, form2 loads with other texboxes including the one they made entries into. however i dont want them to make any changes to the textboxes they entered values into previously neither should they hav...

Color structure and html

Hi In Html we specify color as amount of red, green and blue. But in net we specify color as an amount alpha, red, green and blue. a) What does alpha value represent? b) Since the purpose of Color structure is to specify a html supported color ( RGB value ), I don’t see a point in Color structure also including alpha value, since ...