asp.net

Does SqlDataSource automatically convert parameter value…?

hi 1) ObjectDataSource doesn’t check the type of a supplied parameter, but instead attempts to convert the parameter value into the data type of a matching parameter. Is that also true for SqlDatasource? thanx ...

How can I configure SSRS 2005 to use ASP.NET 2.0 Forms Authentication?

I have an instance of SQL Server 2005 Reporting Services that is outward (internet) facing. I want to enable Forms Authentication using ASP.NET 2.0. Several web sites discuss how to configure this to work, but none of the instructions lead to a completed solution. Does someone have consise instructions that are easy to follow and will ...

Custom Paging on GridView Populated by Button Press

I've got a Gridview that's populated by a Search button and I'm not sure how to go about doing custom paging for it. I run the search query using sp_executeSQL right now and it returns the entire resultset. I'd like to know what steps I should take to set up custom paging and sorting on the GridView and the most efficient way to modify ...

Should I write my own GridView implementation?

I haven't worked with GridView too much and after poking around with it, find it to be more complex than I need but missing some very basic abilities that I would expect it to have. No doubt its implementation makes sense given its 90% of the time purpose of being bound to a dataset especially when doing this declaratively, but I intend...

redirecting to POST HttpWebRequest

Hey Folks, I'm trying to POST data to an external url using HttpWebRequest, then i need to redirect the user to the external url where which i just POSTed my data, can this be achieved on the first place ? ...

Print PDF docs from web form.

Is there some kind of light-weight (non-Adobe) control I could use to view and print PDF documents on a web form? ...

How do I determine the ASP.NET version of a virtual directory or website using C# ?

How do I find out the .NET framework of an IIS virtual directory is using in C#. I need to display it to the user. using System.DirectoryServices; using System.IO; private enum IISVersion { IIS5, IIS6 } private void ReadVirtualDirectory(string server, string directory, IISVersion version) { string siteID = string.Empty; ...

ASP MVC Folder Hierarchy

I have a fairly large ASP MVC application. Instead of having many controllers all in the controller directory I would rather create some hierarchy. So I might have something like ~\Controllers\Security\ ~\Controllers\Maintenance\ ~\Controllers\Reports\ I would also like to be able to do similar with Views ~\Views\Security\Users\ ~\Vi...

Return unordered list from hierarchical sql data

I have table with pageId, parentPageId, title columns. Is there a way to return unordered nested list using asp.net, cte, stored procedure, UDF... anything? Table looks like this: PageID ParentId Title 1 null Home 2 null Products 3 null Services 4 2 Category 1 5 ...

AJAX not working with ASP.NET HTTP Handler

I'm doing something stupid, I suppose. I swear I've done this before without issues but right now I can't get it to work. I have an HTTP handler written in ASP.NET that I want to invoke via AJAX (using jQuery). In my web.config, I register the handler like this... <httpHandlers> <add verb="GET" path="~/getPage.axd" type="Handle...

Dropdown binding and postbacks - ASP.NET

I have a rather complex page. The ASPX page loads a user control which in turn loads a child User control. Parent Control protected override void OnInit(EventArgs e) { //Loads child control } In the child user control, I use custom control that inherits from System.Web.UI.HtmlControls.HtmlSelect ASCX: <cust:CustDropDownList id="c...

Design problem: Get child object type information avoiding if statements in presentation layer

I have a customer hierarchy like so: abstract class Customer { public virtual string Name { get; set; } } class HighValueCustomer : Customer { public virtual int MaxSpending { get; set; } } class SpecialCustomer : Customer { public virtual string Award { get; set; } } When I retrieve a Customer, I would like to show on ...

"Access Denied" when trying to connect to remote IIS server - C#

I receive an "Access Deined" COMException when I try to connect to a remote IIS 6 server from my C# application that is running under IIS 5.1. Any ideas? I am experiencing all the same issues with the original questions. Update - 4/1/09 I found this solution (http://www.codeproject.com/KB/cs/Start_Stop_IIS_Website.aspx) that consists...

JQuery .each function

I have a bunch of images on my ASP.NET page like so: for (int i = 0; i < 3; i++) { Image image = new Image(); image.ID = "UpdateStatus"; image.CssClass = "imageCss"; image.ImageUrl = "Bump.GIF"; this.Controls.Add(image); } I want to loop through each image. Why does this not work? i.e. "Function 1" is outputted bu...

Embeded Flash in asp.net accordian performs poorly

I'm using the ajax toolkit accordion extender and I notice it performs a little "funky" when I try to embed some flash in the content sections. You can see what I have working now at : http://kristinsconfections.com/gallery.aspx. As you can see when you toggle the accordion it's a little choppy. I'm pulling the flash slideshow from fl...

ASP.Net Authenticate users from another trusted forest

Hi, I want to authenticate users from another (trusted) forest in my Asp.Net application. So far, i've got this in my web.config: <?xml version="1.0"?> <configuration> <appSettings/> <connectionStrings/> <system.web> <compilation debug="true" /> <authentication mode="Windows" /> <authorization> <deny users="?"/> ...

ASP.NET Datasheet Component

I need data editing capabilities like the one in Microsoft SharePoint Datasheet View (user can add/edit records excel-like, support copy&paste operations). I understand that SharePoint use ActiveX to do this, however : Is there any commercial/free component that I can use? Is there anyway I can re-use SharePoint ActiveX on my project? ...

nHibernate (w/ Castle ActiveRecord) with C# interfaces (esp for DTO's)

Any using nHibernate with a Domain object & DTO object implemented from a common interface? I'm trying to separate all of my nHibernate attributes into the Domain object, leaving my DTO's and interface clean. The problem comes with nHibernate throwing errors when it tries to associate the interfaces with the concrete classes. NHibernat...

ASP.NET control does not render

I have an extremely simple control i'm trying to render which looks like this: using System; using System.Web; using System.Web.UI; namespace CORE.BusinessObjects.Web.Controls { public class TestControl : Control { protected override void Render(HtmlTextWriter writer) { writer.Write("Hello from TestC...

ASP.NET login control mysteriously stops working

I'm using the ASP.NET Login control and have been doing so for a couple of years on a particular site with success. Out of the blue, in the dev environment, this control has stopped working and is now bouncing me back to the login page. Using source control I've reverted recent changes that might have been the cause but no luck. I've st...