webforms

PHP Form Review - Cc and Bcc not working

I have an html form the links to a PHP email. The form works well, but I am having trouble with the Cc and Bcc not coming through. Here is the entire code. Please review and help me understand what I am getting wrong on the Cc and Bcc parts in the headers. Thanks: <?php $emailFromName = $_POST['name']; $emailFrom = $_POST['ema...

Explicit __doPostBack()

Hi all, I have explicitly added __doPostBack() on Button onclientClick event . <asp:Button ID="Button1" runat="server" Text="Button" OnClientClick="__doPostBack('Button1','')"/> When I am clicking the button the Page_Load is calling twice. But if I am adding below code inside page load ,page load is calling only once on bu...

URL handling in ASP.NET WebForms

What's the best approach to provide URL handling in an ASP.NET application to produce results similar to Craigslist. Specifically, I'm looking to handle something like "newyork.mysite.com" and "california.mysite.com", along with parameters such as "newyork.mysite.com/products/hardware". Based on the "location" (newyork.), my goal is to...

Webform generator ?

Hello fellows, just wondering is there any free tool which can aid in making the GUI/interface layout of asp.net/html forms ? My forms mostly end up in being less user friendly and not good looking at all. ...

How can I control the order in which properties are databound?

The order in which properties of some server control are databound depends on the order in which attributes with databind-expressions are written in the markup. I don't want to depend on this random factor. Example: <my:listcontrol runat="server" datasource=<%# src %> selectedvalues=<%# selected %> /> <my:listcontrol runat="server" se...

One form, multiple submit buttons and submit links

Hi, I have web form with multiple submit buttons. To determine which button was pressed, each has a different name, like so: <input type="submit" name="foo" value="Foo Foo"> On the form there are also normal links that act as submit buttons, like so: <a href="" onclick="parentNode.submit();return false;"> Bar </a> My question is h...

Get last activity after timeout in ASP.NET WebForms

I have an ASP.NET WebForms page with forms authentication. When users create a login, I use 'remember me' to create the authentication cookie. What I now want to do is check the time of their last access. But LastLogin time is updated only when the user uses the login control (which they don't need to use when they have the authenticati...

ASP.NET WebFormsMVP PageDataSource Events Executing Twice For Unknown Reason

The problem is SelectMethod and other actions execute twice. This has been difficult to isolate, as it only occurs on a larger solution, and not in simpler demo applications. //.ascx <asp:FormView runat="server" DataSourceID="userSource" DefaultMode="Edit"> <EditItemTemplate> <mvp:PageDataSource id="userSource" SelectMethod="GetUse...

Using JQuery with ASP.NET Web Forms on Postback

I've read plenty of good blog posts on integrating jquery with ASP.NET web forms to utilize the data access capabilities, but I'm curious to know how easy it would be to use some of jquery's animation capabilities before a postback. I can think of two good examples: 1) When I click on a asp:button, animate a div, but then do a regular p...

Recommend visually appealing table-driven web forms management framework?

Nearly all our work is "by hand" with some excellent in-house frameworks. However, these are for ERP-style applications and are (sometimes too) complex. Working with more business-critical applications, one focuses on function and not pleasantry. We have a need to bring up some non-trivial "external-facing" data entry forms. There wi...

Recommended approach for designing master/detail forms on a single page ?

I have a single web page with master detail form/input layout. Currently the form works in a way like User opens the page containing both master/detail data entry controls and enters the master information (The details save button is disabled) When he saves the master information, the save master button gets disabled and save details i...

how to find child nodes a root node [TreeView]

ROOT A B C D E T F G X i want to find E Node's parent nodes(it is number 5).then i will save node, if number is smaller 5. i'm using TreeView in Asp.net control. ...

asp.net 4.0 webforms url routing

Hi guys and girls, I seem to have a problem fully understanding url routing. Like on an aspx page called News.aspx I want to show the full news listing, on the page News.aspx?view=detail&id=x I want to show the news details. And on the Page News.aspx?view=browse&pageindex=1 I want users to be able to browse to the archives. So basiclly...

Webform validation Drupal

I'm looking to add some speacial validation with webform through Drupal. It seems the old forms you could add extra PHP code to "Advanced Settings". According to this link we shouldn't be doing this anymore. (Running Drupal 6) What I have is a check box that makes a few fields disappear and a few different fields appears. So for my vali...

Abstract: Should I choose ASP.Net MVC over Web Forms or ..

I've been working with web for over 7 yrs and I've upgraded from html->ASP->ASP.Net and now the new flavors of ASP.Net itself. I was to begin with MVC last year but due to deadline and the complexity involved in MVC I couldn't. Now, once again there's a new upgrade - I've begun with the ASP.Net DD (Dynamic Data) Templates (the latest one...

MVC or Webform , which is the way to go??

Possible Duplicate: Biggest advantage to using ASP.Net MVC vs web forms I'm soon gonna develop a reporting solution. Would be glad if some one let me know , which is the best way to go. Web forms or MVC? ...

Webforms: Enable Submit button after confirmation code entered

I am working on an WebForms app, and we want to put a speed bump, for lack of a better term, in for the users at a particular point in the app. There is a particular action which is not supposed to be undone. So when they click the button to do that action we want to display a small confirmation window, have them enter a random string th...

ASP.NET Web Forms - Manually Invoking a __doPostBack Call

I have a web forms page with a button that involkes a __doPostBack callback to the page. I would like to invoke this manually - by "manually" I mean from outside the webpage, for example by using wget. Is there a way or an example of the best way to do this, please? ...

asp.net webforms routing: optional parameters

Hi All, I want to add optional parameters in my routing table. For example I would like the users to browse a product catalog like this: http://www.domain.com/browse/by-category/electronics/1,2,3 etc Now i've created a route like this: routes.MapPageRoute( "ProductsBrowse", "browse/{BrowseBy}/{Categ...

Does anyone have an insight into ASP.NET WebFormsMVP?

Recently I ran into this open source project ASP.NET WebformsMVP. It seems like an alternative to asp.net mvc and also a quick way to introduce testability into an existing webforms applications. (without having to go through the pain of rewriting a bunch of code to make it work for asp.net mvc) Of couse community support and open-sour...