asp.net

I need help...........sample project

Hi all, Can anybody give me one sample Asp.Net Project where all the Object oriented concept like class,abstraction,polymorphism,Inheritance and array list has been used for my practice purpose.I am new to this platform i know all the above mentioned concept but i don't know where and how to use those concept in web application.........p...

Free tool or library to convert Tiff files to pdf in .Net

Does any one know of a free tool or library to convert multi page tiffs to pdf in Asp.Net 1.1? ...

Free controls for showing OLAP cubes

Hello all, is there a free set of controls to be used for representing the OLAP cubes in aspx pages? something like the ones from Dundas, but free and (if possible) cross-browser. Thanks, Lucian ...

Debugging a User Control from ASP.NET

I have an ASP.NET (2.0) site. I am on my dev box using V Studio 2008 and IIS. I have a separate User Control project that gets called from a javascript function in the default.aspx page. The User Control project is in another solution. The application is running as expected. The user control is being called and all is well. Well not qui...

ASP.NET define input validators programmatically depending on configuration

I'm writing an ASP.NET 3.5 web application. There is a rather complex input form (30 input controls - TextBoxes, Dropdownlists, ...). Now, different clients use the same form in their customized application and there are different mandatory fields for some clients. Now, I'd like to programmatically create/activate certain validators de...

Server.Transfer vs. Context.RewritePath

I understand they both don't change the URL that the client sees. Is there anything in them that makes one of them preferable over the other? I'm planning to use it in the Application_BeginRequest in Global.asax, but also in regular aspx page. ...

How can Implement OpenID Feature in ASP NET2.0

Hi I need to add OpenId feature in asp.net 2.0 How it is possible? If anyone knows the answer please help me ...

How to redirect to another web application in the same server?

I have two web applications in the same server like this: /basedir/app1path/default1.aspx /basedir/app2path/default2.aspx How can I redirect form default1.aspx to default2.aspx? ...

ASP.NET: Custom client-side validator for "one of two fields must be filled"?

Can you tell me if there anybody has implemented a custom validator for checking that one of two (or N) input fields are filled? "Insert phone number or email address" I'm using ASP.NET (Ajax) 3.5, the ajaxToolkit:ValidatorCalloutExtender (and jQuery if it's necessary). ...

Generate WebService producer from WSDL in Visual Studio 2005

I have a WSDL file defining the interface for a web service and I want to implement that service (i.e. producer/server code) using C#, ASP.Net and Visual Studio 2005. Setting up a Web Reference as consumer of a web service is a breeze, but as a producer isn't as obvious. In the java world there is wsdltojava. Is there something similar ...

Hidden panel doesn't center correctly when displayed

I've got a simple AlwaysVisibleControlExtender that extends a small Panel containing a "Loading..." message and animated GIF. The whole thing is inside an UpdateProgress control, so it only displays when my app is processing. I've got it set to display at the top center. It works fine, but I've noticed that it displays slightly to the ri...

How do I serialize an anonymous object for sending over a SOAP web service?

I am trying to send an anonymous object over a web service. Is there anyway I can do this without manually creating a class and casting it to that class? Currently its throwing an exception saying Anonymous object could not be serialized. // Some code has been removed here to simplify the example. [WebMethod(EnableSession = true)] publi...

Annoying duplication in derived classes.

In every form we derive from FormBaseControl, we have the following code. I'm sure there is a better way to type the controller object than this, but at the moment we have it included in every page. In the example below, base.Controller is of type BaseController, from which ExportController derives. I find duplication of this code in ...

Resetting a winform's elements to initialized state (C#/.Net)

I'm building a winform in C# with various elements in a panel that start out either invisible, disabled, or set to null (labels, combo boxes, grids, etc.). As the user goes through and makes choices, these elements are populated, selected, etc. The idea is to upload files, read them, and process entries to a database. Once the processi...

Crystal Reports in ASP.NET 2.0 app - report changes not showing

I'm developing an ASP.NET 2.0 application that includes Crystal Reports (version 10, included with VS 2005). Originally, the reports were working properly, both when run from my machine using the ASP.NET development web server, and also when deployed to an IIS server. I made some changes to the reports and re-deployed the app to the II...

Anything wrong with adding the PUT,DELETE verbs to the .aspx extension in IIS?

I'm using PUT and DELETE more and more w/ my ajax work and wanted to see if it would be a "bad idea" to add these verbs to the .aspx application extension in IIS. ...

Creating custom URL tokens in ASP.NET (a la MOSS)

In ASP.NET, the tilde (~) is treated as a token in URLs and treats paths prefixed with that as relative to the application root. This is well-known functionality. In MOSS, there are other tokens, such as ~sitecollection/mypath... which behaves in a similar way, but treats the path as relative to the site collection root. How is this acc...

Adding new row to datatable's top

When we use datatable.newrow command, a new empty row added to bottom of rows. However I want newrow to added to top of datatable. How can I make it? ...

Handling ASP postbacks from Javascript Widget

I am trying to make a small, data-driven widget that is populated with data from a database on the fly. I can load it initially just fine, but when the index of an ASP DropDownMenu is changed, the widget returns a 404. This could be a symptom of how I am using the Javascript, or how I am using the ASP. I honestly don't know for sure. ...

What's the reason for my ASP.NET Cache never expiring, despite having a sliding expiration time set?

Hi all, So, I've cached a value using the ASP.NET Cache object, with the following code: Cache.Insert("TEST_VALUE", 150, null, Cache.NoAbsoluteExpiration, TimeSpan.FromSeconds(120)); As I understand it, this should mean that if nothing accesses that object for 120 seconds, it will expire and return null. However, if after 10 minutes...