asp.net

Setting the default page for ASP.NET (Visual Studio) server configuration

When I build and run my application I get a directory listing in the browser (also happens for sub folders), and I have to click on Index.aspx. It's making me crazy. Visual Studio 2008 ASP.NET Development Server 9.0.0.0 ...

sms from our site

I am using asp.net and c#. How can I send an SMS message to my friend's phone number? ...

ASP.NET C#: Enabling / Disabling all ASP Controls in Table / Placeholder

Hello guys, How do I disable for example all button controls in a certain placeholder? The plot: I am coding an application for web that uses some buttons which get disabled after you click them. Now when I click the "New Game" button, all previously disabled buttons should be enabled again. Any help is very appreciated! ...

ASP .NET Check for Session

I'd like to check for the existence of the Session in a base page class before I use it, but I've found that if it does not exist, it'll throw an exception just by checking: if (Session != null) { Session.Remove("foo"); } Will throw this exception: Session state can only be used when enableSessionState is set to true, either i...

Generation of Email Validation Links

Hi all For a Web Application I'd like to generate an email validation link and send it to the user. Like on many public websites, the user should click it to validate his email address. Looks similar to this: http://www.foo.bar/validation?code=421affe123j4h141k2l3bjkbf43134kjbfkl34bfk3b4fkjb43ffe Can anybody help me with some hints ab...

Why Are There Multiple GET Requests Shown in Firebug?

So I'm at the stage in web programming where I'm past the "Look, Ma, I can put data in a grid and it shows up on the page." I'm now at the, wow, this site is not as snappy as I want it to be. So, I enabled the "Net" tab in Firebug, closed my eyes, crossed my fingers, and went spelunking. The first thing I noticed is that all of my .as...

Deploying an ASP.NET Web Application to an Intranet

Hello: I have an ASP.NET web application that I just completed. I am now preparing to deploy the application to my company's intranet. I wanted to prepare the files so that I can simply give them to my company's IT group for uploading. I reviewed some of the previous Q&As posted on this website; however, there doesn't appear to be a ...

mvc display exception on error page

Simple question: If I've got a generic Error.aspx page in my Shared folder (and the requisite HandleError on my controller). How do I show the exception message that triggered it? This Scott Gu post states that the functionality should be in the default Error.aspx generated with new projects, but that was Preview 4, and I'm assuming tha...

jquery ajax tabs with asp.net user control gridview

I have a user control that has a gridview in it with paging. The paging is driven by an object datasource, so it's using the dopostback events by default. I want to use jquery to load the usercontrol into a tab via ajax because I have multiple tabs that I don't want to load all at once and take all the database hits if they aren't neede...

Can a web control edit properties belonging to its parent?

I have a .aspx page that loads three separate .ascx controls to represent adding, editing and listing objects. It currently simply swaps out visibility and enables/disables the controls to switch between pages. However, when listing objects (in a gridview), we offer the basic "Edit" button beside each one. Clicking on this will, obvio...

MasterPage with multiple contentplaceholders

I have a default.aspx file that is tied to the MasterPAge and ContentPlaceHolder1 and displays fine, is there a way to have another page say info.aspx auto display in ContentPlaceHolder2? ...

E commerce Design

Guys we are designing an e commerce web site using asp.net. we are using a bsic design and dont know if we can add something or shift onto a better version of asp or silver light etc. wud like ur suggestions and inputs. we are makin 3 main pages one for the login,another for the products and one for the payment.wheneva there is a purcha...

Getting a directory's path, that is inside an assembly.

I have a custom asp.net control. That control will also render to the page a piece of javascript. This javascript piece of code is actually properties that have to be initialized. One of this property value must be a path. This path is a directory that is inside this assembly. If it is was a file i would use GetWebResourceUrl but now I d...

Does Microsoft offer an automated tool for App Deployment?

Does Microsoft offer a tool where you can deploy a web application to multiple web servers in a load-balanced environment/web farm? My team is looking for a tool, preferably from Microsoft, where we can deploy our web application from development environment to production environment automatically. ...

Profiling CPU usage of ASP.NET web app - but not the database!

I'm seeing consistently high CPU usage for my ASP.NET web application (on the live production box only, naturally....!) and I'm trying to narrow down the cause - it's basically maxing out a quad core Xeon box and there's no way it should be able to do that! The CPU usage of the web process is generally higher than that of the DB proces...

Simple question about how static variables work in ASP.NET?

I have a map which displays some info. By default, labels on the map are turned off. There is an image button which has a turned-off image associated with it when you the labels are off and a turned-on image associated with it when you turn the labels on. I have the code working, but I wanted a better reason as to why it works this wa...

Why Can't I Reference a TextBox by ID When it's in a CreateUserWizard Control?

Hi all.. I got a wierd problem here. Inside an asp.net CreateUserWizard, I got some elements, but I can't seem to access them from my code-behind. Here's a code snippet: Markup: <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CreateUserWizard.ascx.cs" Inherits="Web.UserControls.CreateUserWizard" %> <asp:CreateUserWizard ...

Setting focus to a control in an Infragistics WebAsyncRefreshPanel

Does anyone know how to set focus to a control contained within a WARP control? For example, I have three text boxes and one button wrapped in a WARP control. In the Page Load event I can set focus to any of the text boxes and it works fine. But on a postback, focus is lost completely and cannot be set to any of the controls. I know ...

Saving Configuration Section Error - Elements are merged as attributes

I have created a configuration section designer project to represent nodes of a custom section necessary to read and save from my web application. I am able to successfully create instances of the configuration elements and collections, however when I save the configuration using the referenced System.Configuration.Configuration object ...

ASP.NET SQL Profile Provider - Does the ProfileBase.Create() method hit DB?

I am working with the SQLMemebershipProvider and using Profiles. I have a custom class called UserProfile that inherits from the ProfileBase class and I use this to set custom properties like "FullName". I am wanting to loop through all the users in the database and get access to their profile properties. On each iteration I am calling P...