webforms

HTML Form and Javascript Confirmation

I'm having a problem with submitting a form and Javascript confirmation. Basically, the following Javascript is called when the "submit" button is pressed. function confirmation() { var answer = confirm("Are you sure you wish to edit?") if (answer) { window.location = "#editform2"; } } However, when I hit the canc...

How can I get the "Add -> View" menu item when adding ASP.NET MVC pages to a Web Forms project?

I'm adding some ASP.NET MVC pages to an existing ASP.NET Web Forms project. I've been able to port over some models, views, and controllers from an MVC project I created and they're working great. But I'd like to add some new "Strongly Typed" views to my project, but I don't get the New View Wizard in my Web Forms project. I'm a bi...

GridLines Color in IE and FF

I have gridlines set to true on a gridview, i want the lines to be grey. By default, the lines in IE appear grey, due to my stylesheets; but in Firefox, there is a dark line separating the header columns. I have tried adding this.GridView1.Attributes.Add("bordercolor", "#ddd"); This fixes the FireFox issue, but in IE it shows the dark...

HTML controls in PDF

Hi Guys, I ran into an interesting problem at work today. I got a request to provide a link to a certain PDF file from my company's homepage. Now, this PDF is to contain some testimonials etc. and is to be followed by a feedback page which has HTML like controls - radio buttons, textboxes and a submit button - We are still talking about...

ASP.NET: ExpressionBuilders & Load event

Expressions passed to ExpressionBuilders are executed on the Init event of control. Is there a way to write an ExpressionBuilder that will make expressions evaluate on Load? Like data bind expressions that are executed on DataBind. ...

Add GET Refresh Parameter in ASPX

How do I add an auto-refresh feature based on the value of a GET parameter? For example, http://localhost/myPage.aspx?refresh=5 would auto-refresh the page every 5 minutes. NOTE: A VB code example is preferred. ...

How do you use extension methods in Web form data-binding expressions?

Has anyone successfully used extension methods in data-binding expressions? Say I have an extension method called "GetName" attached to "MyClass". In the code behind, I have verified this works: MyClass myObject = new MyClass(); MyClass.GetName(); However, in a Web form, I try this: <%@ Import Namespace="My.Namespace" %> Then,...

Can't retrieve urlencoded umlauts. [solution: use UTF8]

Hello, I'm programming some websites with JSP-Scripting and I encounterd a strange problem with urlencoded web-formular parameters. The site itself is encoded in iso-8859-1. I have a simple webform with a field called description. If I enter german Umlauts or specialchars like "ü" or "ß", these get automatically urlencoded. But if I wa...

WebForms, AJAX and prompt popups elegantly

I have a web site already developed with tons of updatePanels, buttons, and integrated functionality. I have to add some confirmation prompts, these prompts should be customized, and have options like 'Continue', 'Cancel' . This is a possible scenario: The user writes something in one textbox, and then clicks a submit button. The Promp...

ASP.NET BasePage back referencing to concrete implementation

I have a page that is setup like this public partial class _Default : ViewBasePage<EmployeePresenter, IEmployeeView>, IEmployeeView { ... } Inside my base page public abstract class ViewBasePage<TPresenter, TView> : Page where TPresenter : Presenter<TView> where TView : IView { protected...

Automated web form submission

Do you know any good methodologies/tools/scripts/approaches for automated web form submission? The form I want to operate on is NOT in my possession. That is, on any given website that's the action I'd like to perform. Example: On http://autos.yahoo.com/ the script would choose certain value in "Make" combo box, then in "Model" combo bo...

In ASP.NET Webforms, ChangePassword: how do I set SuccessTemplate to visible after password's been changed?

It does allow me to change the password but the view is reset to its original state. OnInit looks like this: changePassword.ChangingPassword += ChangePasswordButton_Click; and the method implementation: private void ChangePasswordButton_Click(object sender, EventArgs args) { MembershipUser user = Membership.GetUser(); string oldP...

WebForms / MVC to a Windows Forms programmer

Hi, First I'd like to make it clear, I'm not looking for a "my tech is better than yours" type of post; this is a real case scenario and I have been faced with this decision. With this in mind, let me explain: We have a WinForms application. It started in the early .NET 1.0 but the first shipping version was using .NET 1.1. There are l...

Generating URLs from form params in Rails

Is it possible to generate the url for the form submit based off of the values in the form? I am trying to create a search form that asks for the make and model <% form_tag make_model_search_path(:client_id => @client.id) do %> <%= select_tag :make, options_for_select(make_list) %> <%= select_tag :model, options_for_select(model_list) %...

Do all browser's treat enter (key 13) the same inside form?

I have a form with multiple submit buttons, each of which is relevant to how the user wants the data saved and/or loaded. The problem is (or was) that if a user pressed enter on the last (or any other) input within the form, the submit button that seemed to be called was the "load saved formed" which is at the top of the form. All attem...

c# windows app OK in debug mode, faulty in release mode...

Hi, I've written a c# windows app, that performs some DB intensive operations. (MySQL connector v6). When running the project in Debug mode, everything works fine. However, when I run the prject in release mode, it sometimes quits operation midway - with no error message, nothing in the event logs etc. What would be the best way to ...

ASP.NET Web Forms jQuery AJAX Pass Multiple Paramaters to Web Method

I am calling a Web Method in the code behind with a Method Signature that has 4+ strings accepted. I am creating a params variable and using it to add all input fields I want to pass to the method. var params = { showStartDate: showStartDate, showEndDate: showEndDate, ...

Design view on Web Form not working in nested WAP projects in Visual Studio 2008

We develop a module web application by using a separate WAP application project for each module. The primary/root WAP settings web tab is set to "Use local IIS Web Server" the path is http://localhost/MainProject. Then there are 4 modules. Each module is a WAP with a web configuration set to "Use local IIS server" with a path such as h...

How to implement the Display/ValueMember in my own control.

Hi, I created the custom winforms data control which has the "DisplayMember & ValueMember" properties (the functionality should be same as in standard winforms controls). But the problem is common and can be used in webforms. Now, I'm trying get values via Reflection and DataRow/DataRowView. Should be supported more ways how to get/set...

how to develop a webform in blogspot

hello everyone i want to make a form for blogspot how it work. if any user type anything in a webform then click on submit then i have a mail with user's information how to create like this feature in blogspot ...