asp.net

ASP.Net Wizard Control, DataBinding, ViewState and PostBacks

I have a Wizard Control that has a user control for each step. Of course, on the first step IsPostBack is false when the page first loads. But when going to the next step IsPostBack is always true. What is the best pattern for figuring out when to databind each control within a step and maintaining viewstate when going from step to st...

custom templatefield using ASP.NET Gridview

Hi, I can figure out a couple of hack ways of doing this,...but no really neat ".NET" way. I am displaying a table of data using Gridview...one of the columns is dedicated to displaying the status of a boolean variable. The spec I am trying to meet is to have a "On" and "Off" button in the column representing this variable....and click...

Distributable ASP.NET web server for a commercial product

Does anybody know of a commercially supported distributable web server that can host ASP.NET applications? I have a commercial server based application to which I want to add a web interface (sort of like a portal for clients.) I cannot expect that all of my customers will have, or want to run, IIS. Cassini seems a bit limited withou...

Do script tags and link tags go inside asp:content or outside

I have a page which has a masterpage. Do I put script and link tags inside the asp:content place holders or outside or does it matter. When I put it outside, I get the following warning: Only Content controls are allowed directly in a content page that contains Content controls. ...

How do I styling disabled SELECT (DropDownList) in IE?

I'm writing in ASP.NET (which may be irrelevant in the end). I've already addressed styling the gray on gray default style of disabled/readonly TextBoxes (HTML INPUT), now I'm trying to tackle DropDownLists (HTML SELECT). I've tried these--which work fine for TextBoxes--but none work for dropdowns: .ReadableReadonly, select[disabled],...

Trying to develop a Facebook/Tumblr style news feed CMS in asp.net

I like the simplicity of the facebook status/notes/news feed CMS. Obviously short posts and long notes are not hard but I'm running into difficulty trying to come up with a way to mimic their "Attach a Link" feature. Does anyone know of a way (or a library) to use asp.net to take/build/create a screen capture of a remote site? I've tr...

ASP.NET Page Designer for Linux

Is there a simple, yet decent .aspx designer that runs on Linux? I've since all the ones in this question but none satisfied the "runs on Linux" condition. By decent, I mean that the designer allow me drop asp.net webcontrols on a webpages for futher use in Monodevelop. ...

Building a "tag-editor" like the one here on stackoverflow to add/remove tags - in asp.net 3.5

Hi! For a customer project, I need to be able to add/remove tags from items (pictures in this case). I really like the way the Add Tag works here in stackoverflow. I know how to make the autosuggest-textbox (since there is a control for that in the Ajax Control Toolkit from asp.net), but I am not sure how to approach creating the l...

Secure ELMAH in asp.net application that doesn't use forms authentication

I have a very basic asp.net application that relies on a master page's INIT event to verify the user via a session object. Yes, I know this is way-suboptimal. I'd like to add ELMAH to it, but can't find any references to securing the console without using forms authentication and a web.config allow/deny setting. Is there another way to...

Debugging an httpmodule on the asp.net development server

Hi, I want to integrate some http modules in my asp.net application (v 3.5, visual studio 2008) and I'm not sure how to debug or use such modules while debugging in the asp.net development server that fires when I run the web app. Do I need to include the module source in the solution or can I just drop the DLL into BIN? I'm from the 1...

decent ASP.NET / SQL tutorial?

I've never used databases before in my work. I know some basic SQL syntax. Just looking for a decent tutorial that will show me how to set up a database and use it to serve information on an ASP.NET page. ...

Why is ASP.NET MVC limited to ASP?

Duplicate MVC .NET For the Desktop? I've developed some ASP.NET MVC apps, and loving the framework. However, one thing I don't quite understand is why it's limited to web UIs. It seems like one of the reasons for a separation of the view and controller is to allow for multiple views to reuse the same controller logic. For example...

Is it possible to create a page from a string in ASP.Net?

Hi, I can create a page from a file with: Page page = BuildManager.CreateInstanceFromVirtualPath( virtualPath, typeof(Page)) as Page; How can I instantiate a page from a stream or a string? Thank you. ...

ASP.NET login control and ADO.NET connection pooling

Using ASP.NET 2.0 SqlMembershipProvider with MSSQL 2005. To illustrate issue : 1) Create simple ASP.NET app with a System.Web.UI.WebControls.Login control on a page. Change Web.config to use forms authentication and System.Web.Security.SqlMembershipProvider. 2) Run web app in browser and login. Close browser. 3) Using some SQL too...

Local Email Test on Vista Home

What is the best way to test sending emails from a dev machine using Vista Home Basic? ...

Web.Config file in asp.net

Can u tell me exact practical view of configuration section of web config here is one example <configuration> <configSections> <section name="loggingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings, Microsoft.Practices.EnterpriseLibrary.Logging, Version=4.1.0.0, Culture=neutral, Pu...

How to maintain state on a master page image menu when going to a different page?

I need to setup an image menu. The client wants a specific font and the tabs aren't really CSS-able. That said, I am wondering what the approach is to maintain state on selected menu items? For example: Lets say I have 5 tabs --HOME-- --YOUTH-- --ADOLESCENCE-- --ADULT-- When the user clicks on the 'YOUTH' menu item, they are ta...

how to authenicate clients using certificates in an ASP.NET web service

I need to know how the a .net web service authenticates a request from a client that is using a certificate. I know that the client will have to attach their certificate to the service proxy before they make a request, but I dont know how to check that the correct computer is contacting us. This needs to be implemented in a shared hosti...

Can I fool HttpRequest.Current.Request.IsLocal?

I'm running a web application that displays some debugging behavior if it's being run locally - quotes around resource strings, etc - and I'd like to demo the application on my laptop at a conference where I won't have internet access, so it has to be local. The application uses HttpContext.Current.Request.IsLocal to determine if it's r...

DataGrid Paging

Hi, I am using VB.Net 2005, with IE7. I have a datagrid where I have set paging "AllowPaging" = True However, when I click the link to the next page, the records are still the same. My code is: ds = SQLHelper.ExecuteDataset(strConn, CommandType.StoredProcedure, "GetInventory") dv = ds.Tables(0).DefaultView dgInvestoryList.DataSo...