webforms

HTML form with underlining for handwritten information

I need to make some forms in HTML that a customer will need to print and write some entries by hand then scan or fax. So I want there to be an area for signing like "Sign ____" Underscores are all good if the underline is a limited length, but what if I have a number of lines that need to go all the way across the page (or in some case...

Where in the Web Forms lifecycle can I re-authenticate a user?

Here's the situation - Most of this ASP.NET Web Forms application (which uses a single master page for all pages) with Forms Authentication, has a standard session timeout, but there are some "modes" where we store an encoded cookie that links the user to their account. I would like to manually check early on in the page lifecycle for t...

Advice on using ASP.net WebForms or MVC

I have a public facing hobby site that gets about 3000 unique visitors a day, written in classic ASP that is in bad need of a revamp and redesign. I've faced the realization that an upgrade to ASP.net is the best way to go to implement features that are just too hard in ASP for the hobbyist (consuming RSS feeds, authentication and user ...

Using ASP.NET MVC Html Helpers in a standard web forms project

So for example in the code behind of a web form aspx page I would like to be able to do things like string textBoxHtml = Html.TextBox("MyTextBox"); Is this possible? Is the source code available to fork for webforms? ...

jQuery: form.submit(fn) does not work with Asp.net?

I am trying to attach an event handler to form.submit on asp.net rendered pages with no success. I want to intercept every postback, and doc. says that I should be able. Am I doing something wrong? $(document).ready(function() { $("form").submit(function() { alert('Form submit'); debugger; }); }); ...

The name 'GridView1' does not exist in the current context

hi all, I have two files named as TimeSheet.aspx.cs and TimSheet.aspx ,code of the file are given below for your reference. when i build the application im getting error "The name 'GridView1' does not exist in the current context" even thought i have a control with the id GridView1 and i have added the runat="server" as well. Im not a...

Drupal: How do I modify form ui after 'Remove' button pressed using AJAX?

I am using Drupal 6 and have the AJAX module installed. I have the following code: function remove_manufacturer_role_form($form_state) { $form['#ajax'] = array( 'enabled' => TRUE ); $form['hidden'] = array('#type' => 'value', '#value' => 'is_it_here'); $form['submit'] = array('#type' => 'submit', '#value' => t('Remove yourse...

How to fill-in two input[text] in an HTML form using a barcode reader?

I have a web page with one input text for the barcode content and a select for the barcode type. So using the database, it is possible to generate the barcode in the good format. A normal final user don't know which barcode as which type, but the barcode reader knows and can send this type as a keyboard input. The problem is that I do...

ASP.NET view engine won't execute my code snippets

I have an asp:DataGrid with templated columns. Here's one of those columns: <asp:TemplateColumn> <ItemTemplate> <asp:LinkButton ID="btnDetails" Runat="server" CommandName="details" Text="Details" Font-Size="0.8em" CommandArgument='a=<%# Eval("a")%>&amp;b=<%# Eval("b")%>' /> <...> When the command fires, the Comma...

How to perform same operations on both WebControls and HtmlControls.

I find myself needing to preform the same actions on both HtmlControls and WebControls. I am a firm believer in DRY and find the fact that there is only the Control class to use if I want to consolidate the functions on both types. The problem that I have with using Control is that there certain properties that both HtmlControl and Web...

Will moving a control into the master page break event bindings?

Say you have a Button in your Web form, with OnClick bound to a code-behind event. You then move that button up into the master page, by adding it to the Controls collection of a control in the master page. This is done at run-time, in the Page_Load event. Where is the OnClick event bound to now? Still the code-behind of the Web form...

When are controls initialized with their design time values?

Hi a) Am I right in assuming that only after controls on Master page are merged into the control tree for the Page, can controls ( both those in Master page and in a content Page ) be initialized with their declarative values ( values set during design time )? b) If my above assumption is correct, then these controls cannot be init...

ASP.NET Gridview - setting column header's css class from code behind?

Hey guys, what I am trying to do is add a method to my gridview's sorting event to add a class to the column being sorted so the user can know if the data is being sorted ascending or descending and on what column. I am currently trying to do it through a switch statement on the sort expression to determine what column it's coming from b...

Drupal - Webform element theming

Another question about Drupal webforms -- The form itself is built in by /includes/form.inc's function theme_form_element($element, $value) and adds a <label> element to the $output. I want to remove that label only for one webform, so I have to override the function. How can I override it for only one webform, while leaving it the sam...

drupal views: how to create a web form for each user

in my website each manger(role) needs a webform, to get enquiries from users.. the webform which have created is for complete website... how to do this... ...

ASP.NET - getting a form's fields to line up with CSS.

Hi, I'm trying to learn how to line up fields of a form using CSS instead of tables. I'm having a hard time with a CheckBox control. Here's the code: <html xmlns="http://www.w3.org/1999/xhtml" > <label for="CheckBox1">CheckBox</label> <asp:CheckBox ID="CheckBox1" runat="server" /> <br /> <label for="TextBox1">Te...

ASP.NET Setting SelectedValue that doesn't belong to the list does not trigger Exception

I have an ASP.Net form where I use a DropDownList control to display data retrieved from a table. However setting the SelectedValue of the DropDownList to a value not existing in the dropdown list does not trigger an exception. Try dropDownList.SelectedValue = value Catch ex as Exception Throw End Try In the code above, if I a...

Making Grails form development DRYer

Hi, When using Grails, the GSP code to render each form field looks something like this: <tr class="prop"> <td valign="top" class="name"><label for="username">Login Name:</label></td> <td valign="top" class="value ${hasErrors(bean: person, field: 'username', 'errors')}"> <input type="text" id="username" name="username" value="$...

How I create the custom TextBox Control in C#

I want to implement the own custom TextBox control in Asp.Net(C#). Please give me some idea and links. ...

WPF For Beginners Clarification

I am a Web developer in ASP.Net. Just I heard about WPF.Is WPF is for Desktop stuff or can i use all WPF controls in my web application?. When i visit the microsoft website it talsk much about designer tools (expression,blend),where can i get web developer perspective vidoes of WPF (Just drag the control on my form and set the propertie...