asp.net

SilverLight DataGrid: Export to excel or csv

Hi everyone, Is there a way I can export my Silverlight DataGrid data to excel or csv? I searched the web but can't find any examples! Thanks a lot ...

Anyone uses ASP .NET Membership?

Was wandering if anyone uses ASP .NET membership? If you do, tell me what you think about it. If you don't use it, Are you planning to use it on future projects? If not, why? RWendi ...

View ASPX page in Web browser

I have the following .aspx page, and I want to view it in web browsers such as IE or Google Chrome by opening it directly in those browsers: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/...

When Are Custom Event Handlers Attached ?

I have a UserControl inside a GridView. When are the Custom Event Handlers attached to the UserControl ? Please tell me because I have no idea. In the scenario below the UserCreated event handler is null at the time the UserCreated event is fired, i.e. during DataBinding. Once the page has fully loaded the event handlers are available. ...

FireFox sits on "Transferring data from..." or "Read...."

Beloved smart folk of SO: I'm building some functional tests for a web site using Selenium, and I'm stuck on a bizarre browser issue where the page never seems to finish loading. The status bar reads either "Transferring data from..." or "Read...". Since the page never finishes loading, my selenium tests timeout. The issue only seems...

Transaction for ASP .net Membership

Hi all, I would like to make two database operation in one transaction. Those two operations are Do one insert operation. Create one user (using membership - sql membership provider) I tried TransactionScope but it went to distributed transaction at that line: -- Membership.CreateUser("test", "password", "[email protected]...

How to Not Submit a Form Using AJAXToolkit AutoComplete Extender?

Hi I have used AJAXToolkit AutoComplete extender in my project.It works fines.But the issue is with the form of the page. when i type in the AutoComplete, i get list of suggestions.When i click on the page other than the Autocomplete, the form gets submitted. any suggestions how to stop submission of entire form whenever i click on the...

Enabling Auditing feature in SQLServer 2005

Did you ever use SQL Server auditing features on a production db? How did that impact on performances, and are there differences you noticed between different versions of SQL Server. Also how we need to enable the audit features. ...

ASP.NET vs. PHP

What is the biggest advantage of ASP.NET over the PHP. Why should I switch to ASP.NET? EDIT: I just want to understand the point behind the Joel's example: If ASP.NET is a Lexus, then PHP is a bicycle. ...

How can I avoid SQL injection attacks in my ASP.NET application?

I need to avoid being vulnerable to SQL injection in my ASP.NET application. How might I accomplish this? ...

Getting sqlcmd output into a GridView

I am designing an ASP.NET website that will run sqlcmd, get some output and put this into a grid on screen. I was wondering if there is a method for reading the results of a query from sqlcmd into some kind of format that I can work with, XML, DataSet etc. Is there a friendly switch in sqlcmd that will output it in a nice format or wil...

good way to query many databases in ASP.NET

What I'm trying to do is run the same SQL select on many Oracle databases (at least a dozen), and display the output in a Gridview. I've hacked together something that works but unfortunately it's very slow. I think its exacerbated by the fact that at least 1 of the dozen databases will invariably be unreachable or otherwise in an erro...

Using different Web.config in development and production environment

I need to use different database connection string and SMTP server address in my ASP.NET application depending on it is run in development or production environment. The application reads settings from Web.config file via WebConfigurationManager.AppSettings property. I use Build/Publish command to deploy the application to production ...

Is there any way to get a DetailsView control to render its HeaderText in a <th> cell?

As the DetailsView uses <td> cells for both the header text and the data, I was wondering whether the behaviour of the control can be overridden to render the HeaderText of each row in a <th> cell? ...

pass "calendar.selectedvalue" in querystring from gridview

I wanted to pass "calendar1.Selecteddate" in a query string from gridview in one page to another gridview (I have written sqlquery in that gridview) in another page. As seen in the below code I tried passing it but this did not work. Can anyone tell me how to pass the selected date from calendar in query string <asp:HyperLinkField...

Getting data from a checkbox inside a template column of asp.net gridview

This seems like something simple, but I can't seem to figure it out! I'm trying to get 2-way data-binding to work on an ASP.net page with a check box as one of the columns. How do I get the updated values (from check boxes) back from the gridview ????? Here is my data type: [Serializable] public class UserRequirements { public str...

windows service versus asp.net Application_BeginRequest event with threads/timers

Hi, What are the advantages/disadvantages to running time based jobs using: windows services Application_BeginRequest to start seperate threads / timers. One disadvantage of running the jobs in the context of a asp.net web appplication is during .net recycling things will have to be setup again, any others? ...

What is Cassini's (aka VS Dev Server) stack limit?

I'm running into a StackOverflowException (please don't ask, it's not my fault) in IIS6/2k3 which has a limit of 256k, but the exception doesn't happen in the VS debugger. As a matter of understanding I'd love to know, but have failed to google what the stack limit of Cassini is...if indeed it has one? ...

how do I populate grid in updatepanel from refcursor

Hi, I am using ASP.NET 2.0 and VS 2005. I need to populate a grid on an update panel from an Oracle refcursor after the user clicks a button. I have an example from another project, but it is pretty complicated. Is there an easy way to display the data in a grid in an updatepanel? We don't want the data to be displayed when the tab...

An ASP.NET Developers Toolset

I posted a question early yesterday and got some really good responses back that got me thinking. I agree with everyone that using tools to get the job done and be more efficient is the right choice. So now, what do you feel is the set of tools (or a set of tools or a single tool) that you as a .NET developer ought to have/use? What do ...