webforms

How to assign a master to an existant webform?

My friend I are collaborating on a project, he's going to create the Master Page and I'll create the forms. How can I assign a master page to my existent .aspx form? ...

Detecting if the form field values have been modified

I have a multi-step form which asks the subscriber to check their details before proceeding with the renewal process. What I want to do is check if the form has been modified from its pre-filled values (extracted from a Web Service) and then write it to my own local MySQL database. This should only happen if the values have been modifi...

ASP.NET 4 Routing querystrings problems

I have an ASP.NET 4 WebForms Web Application which is using Routing. I have URL's like this: http://website.com/product/123/name To use querystrings I made this route: product/{pid}/{name}/{*queryvalues} And I thought, instead of using normal querystrings like ?queryitem=value&item2=value2 I made this: http://website.com/product/1...

In what case would you prefer ASP.NET webforms over MVC?

Possible Duplicate: Whats your choice for your next ASP.NET project: WebForms or MVC? Can you list some reasons that would make you use ASP.NET webforms for a new project, instead of MVC? I've heard a lot about the opposite, but not things that are done easier or better with webforms. I'm not talking about developer preference...

ASP.net membership webforms admin userlist

I have been using the ASP.net membership system, with code such as: <asp:Login id="Login1" runat="server" BorderStyle="Solid" BackColor="#F7F7DE" BorderWidth="1px" BorderColor="#CCCC99" Font-Size="10pt" Font-Names="Verdana" ...

Web Deployment Project With Nested Applications

I have a web application that I'm trying to create a Web Deployment Project for in Visual Studio 2008. My application also has a child web application. Both are web applications in IIS. I have added the Web Deployment Project so that I can automate the build process for this application. When I try to build the Web Deployment Project...

input and textarea fading value

I want to be able to do something like <input type="text" name="txtField" value="" title="input your text" /> <textarea name="areaField" title="input your long text"></textarea> And the title will auto fade out and back in as the field value, unlike the "search" here in stackoverflow (right on the top, it only fade out). I could come...

Manipulate databound values in databound control? ASP.NET Webforms

Im working on the following markup, inside a databound control in ASP.NET Webforms. <asp:TemplateField HeaderText="DomainID"> <ItemTemplate> <% for (int i = 0; i < 10; i++) {%> <%#Eval("DomainID"); %> <% ++i; } ...

What are the technical difference between .Net desktop application and web applications?

I have just started learning C#. Can anyone explain the technical differences between a .Net desktop application and a web application?. I mean for example, if I have a simple HelloWorld application using a WinForm, what are the steps required to change that into a HelloWorld web application? ...

How does Stackoverflow's "Post Your Question" button stay disabled until question gets submitted?

I am using asp.net webforms; I want to submit a form and keep the button disabled until it gets saved to my database, exactly like Stackoverflow. Any suggestion? protected void Lb_Save_Click(object sender, EventArgs e) { //disable my button //Do a DB insert //enable my button } EDIT: I'll do a client-side validation fir...

asp.net gridview tr id unique for jQuery

Hi I have created a ASP.NET WebForms Gridview and I need to access each row (e.g. the <TR>) of the table in javascript/jquery.... Unfortunately it looks like the <tr>'s generated by the gridview all have the same ID! Is there a way to change this? Any ideas how I could access a particular row in javascript (basically I am trying to ca...

How can you set the selected item in an ASP.NET dropdown via the display text?

I have an ASP.NET dropdown that I've filled via databinding. I have the text that matches the display text for the listitem I want to be selected. I obviously can't use SelectedText (getter only) and I don't know the index, so I can't use SelectedIndex. I currently am selecting the item by iterating through the entire list, as show below...

Programmatically Set Asp Menu to Selected

I dynamically populate my Asp.Net Menu based on my Database: public class BasicHyperLink { public string Title { get; set; } public string Url { get; set; } } // For example, for the first menu // This is under mnu_DataBound: MenuItem parentItem = mnu.Items[0]; // Get first menu item foreach (BasicHyperLink link in getLinksLis...

xhtmlConformance="Legacy" causing layout issue on server

I am using the UniqueId to get the name of a textbox on my page. When I have xhtmlConformance="Legacy" in the web.config, the name is renders with a colon. I removed this and the name is rendered with a dollar ($). On my Windows 7 development machine this works fine. When I push to production and the page is rendered, the name is cor...

Windsor Castle IoC Thread Safety Static Variables

I have a question for the Ioc gurus out there. I am working with a co-worker to wrap our minds around Castle Windsor IoC. We are having a difference of opinion about static Domain Service objects within asp.Net webforms. We have a static factory called BLServiceFactory in our Infrastructure layer that retrieves the container. public sea...

ASP.NET-4.0 WebForms post Routing event

How can you hook on to an event that gets fired directly after the Routing / mapping is done? I want to perform some actions directly after the Routing is done and the mapped URL is available. I tried PreRequestHandlerExecute, but that event is fired just before the Routing takes place. I can't find any other place. PostRequestHandlerEx...

Data gathering and manipulation: is there something better than Excel?

I work with people who have historically used Excel and e-mail to 'gather' data from their external contacts. The cells these contacts populate are linked to complicated equations (occasionally macros), or are part of a large cascading cell relationship. All the data we gather produces multiple outcomes, but all of it requires additio...

ASP.NET login control hijacks my 404

I have implemented the standard Login control and everything works fine. However when i enter an invalid URL it gets redirected to the Login page. e.g. mywebsite.com/xxx correctly gives a 404 but mywebsite.com/xxx.aspx causes a redirect to the login page I am using ASP.NET 3.5 on Windows Server 2008. I have set up the web.config...

Front-end first or back-end?

Hi I have to do a small CMS application in MS ASP.NET using WebForms. I do everything on my own: front-end and back-end and Data Base schema. I know HTML and CSS quite well, but very little of .NET and SQL (I just finish study some books). Now that I want to develop the site, I wonder if I should start from front-end first, or back-end...

jqTouch with ASP.NET Webforms

The form tag that wraps all ASP.NET webform applications is causing jqTouch to completely break (as in, nothing works - none of the transitions, effects, etc). Has anyone gotten jqTouch to work with a ASP.NET webforms application? ...