asp.net

Asp.net sql server 2005 timeout issue

HI We am getting time outs in our asp.net application. We are using sql server 2005 as the DB. The queries run very fast in the query analyser . However when we check the time through the profiler it shows a time that is many times more than what we get in query analyser. (paramter sinffing is not the cause) Any help is much appreciated ...

Implementing OpenID in ASP.net "Properly" - Membership or Authentication Provider?

There are several ways to use OpenID on ASP.net sites, but none of them seem to use the existing mechanism of Membership and Authentication Providers. I wonder what the proper way would be to create a site that solely relies on OpenID? Continuing to use Forms Authentication but implementing a variant of the SqlMembershipProvider that do...

JQuery and ASP.Net

Well im trying to return a more complex type than a string or bool but i fail what am i doing wrong? JavaScript <script language="javascript" type="text/javascript"> ///<Reference Path="~/Script/jquery-1.3.2-vsdoc.js" /> $(document).ready(function() { // Add the page method call as an onclick handler for the div. ...

Changing IIS 6 Application Pools for a Web App Project

Following recent hardware problems, I attempted to switch a couple of our websites to use new, individual application pools. A test run on our staging server worked fine, and has had no visible negative consequences. Unfortunately, trying the same operation on our live machine left one of our key applications struggling - my best guess ...

Dynamically annotate HTML?

I would like to do the following in an ASP.NET page, for both Internet Explorer and Firefox: Display an uploaded HTML document in a window. Allow the user to highlight an arbitrary section with the standard text cursor, and press a "leave comment here" button. Save the exact start and end points of the highlight -- not just the highli...

Two types of postback events

hi, 1) I found two articles, each categorizing a bit differently the two types of postback events: One resource says the two types of postback events are Changed event ( where controls implement IPostbackDataHandler ), which fires when data is changed between postbacks, and then are Raised events ( where controls implement IPostba...

Are there any serious contendors to Visual Studio for .NET development?

EDIT: This post was originally specific to ASP.NET, but after thinking about it I'm quite interested to discover any contenders to .NET development. There used to be sharpdevelop IDE, which I'm not even sure if it did ASP.NET (it did WinForms). Express killed it off I think. EDIT: I was wrong about SharpDevelop (thanks for pointing tha...

from C# prototype to ASP.NET, what do i need to change?

I miss this place. Here are snippits i wrote in C#. I would like to know if i can copy/pasting this to a asp.net app and what i may need to change. I am mostly worried that the syntax will be invalid because a compatible library doesn't exist. struct MediaIdUserIdPair //is there a standard pair i can use? { public long mediaId, use...

IPostbackEventHandler VS IPostbackDataHandler

hi 1) User selecting an item in DropDownList is considered to be postback data, and for that reason DropDownList implements IPostbackDataHandler. a) But why isn’t user moving ( in Calendar control ) to another month also considered a postback data? Thus, why does Calendar implement IPostbackEventHandler and not IPostbackDataHandler...

Can I do this with ASP.NET Routing?

I want to accept a url like this one "www.mysite.com/1-2,3" and turn it one like this "www.mysite.com/page.aspx?a=1&b=2&c=3". Basically I want to know if it's possible to lose .aspx portion, using routing? ...

cookieless session temporary internet files (asp.net)

Hi, background: I work on an asp.net web application that is on a company intranet. cookieless="true" is set in the web.config in the sessions configuration. The application is launched off a page and can run in several different modes (a different link for each mode). It is a business requirement that multiple instances of the applicat...

What, if any, technology is going to replace ASP.NET?

WinForms has given way to WPF and new models such as MVVM, that better enable Test Driven Development, work very nicely with WPF. Also, it seems to me that ASP.NET is very closely aligned with the WinForms way of doing things, for example event handlers in the code-behind which is linked using inheritance or partial classes. With WPF a...

Check status of a production ASP.NET process

Hi all. Is there a way to check what a asp.net process is doing in production environment? In Linux, one can run a strace on a process id and know exactly what the process is doing. Can one do something similar on a asp.net process? Googling around tells me that you need to create dump files and then analyze the problem there, but wh...

How to extend the ValidationSummary HTML Helper in ASP.NET MVC?

I need to wrap the Validation Summary in a div. How do I set the Validation Summary to wrap it with a div when errors are present? <div class="validation-summary"> <%= Html.ValidationSummary("Login was unsuccessful. Please correct the errors and try again.") %> </div> ...

Generate Media RSS (MRSS) feed in ASP.NET 3.5

IN .NET 3.5 I know of the System.ServiceModel.Syndication classes which can create Atom 1.0 and RSS 2.0 rss feeds. Does anyone know of a way to easily generate yahoo's Media RSS in ASP.Net? I am looking for a free and fast way to generate an MRSS feed. ...

Implementing a Search Box using ASP.NET MVC, SQL Server, Entity Framework

I have no experience building a search solution, but I'd like to have a search box within my solution and I don't know where to even begin. Are there cool SQL Server tricks that I can use to make my search solution performant (I'm using a hosted SQL 2008 server) I'd love pointers to a multi-step tutorial that starts me off with a simpl...

ASP.Net - Checking User Details From Business Layer

I'm using asp.net configuration manager and the standard login control to allow users to logon. What I'm wondering is can I find out what user is currently logged in from the business layer or do I need to pass it in from the UI? ...

SqlDataReader Column Ordinals

Suppose I am calling a query "SELECT name, city, country FROM People". Once I execute my SqlDataReader do columns come in the same order as in my sql query? In other words can I rely that the following code will always work correctly: SqlConnection connection = new SqlConnection(MyConnectionString); SqlCommand command = new SqlCommand(...

ASP.Net Generated SWF object

Hello, I'm working with SWF files (a video player that connects to Flash Media Server) and we're using ASP.Net. ASP.Net connects to the database and gets the stream URL, In the codebehind page, we get the InnerHTML value of the DIV of the video player and put the stream name in it. Now it works perfectly, at least on Chrome, FireFox an...

Asp.Net Caching and memory leaks when removing items from Cache

So I'm trying to introduce some caching into my Asp.Net application. New data for the user is returned from the DB in the form of large datasets. Whenever a user requests data I insert this dataset into the HttpRunTime.Cache. At the moment I'm setting their caching time to 2-3 hours. And these are really large datasets and I put them in ...