asp.net

Postback problem for my custom control load wizard

I have some problem that happens when controls are loaded in init and it still doesn't help me to get proper postback event fired on time. I am trying to create a rich wizard control that will enable switching, links with description, completely customized steps, integration of substeps - by using dynamic control load that is avoids sta...

Disposing declarative per-request data without using an HttpModule

I have a 'context' object that ties itself to HttpContext.Items via a static Current property. This object can be used directly, through expression builders and controls, all being part of the same library. The issue I'm coming across is that I want to dispose of it's managed resources (WCF clients) when a request ends without using an...

How to deploy my asp.net project in IIS ?

I have windows 2003 server , and a asp.net project developed in VS2008 developer edition how to deploy this website in the server? ...

Is it true that the paragraph in Tree Menu of MSDN library is store in the database?

Hello guys, I was assigned to develop a website looks similar to MSDN Library. According to MSDN Library, I have sense that their tree menu is updated in the database. They are not fixed like others Javascript tree menu. But I am not sure, I just have doubt, is it true that the paragraph in Tree Menu of MSDN library is store in the dat...

How to forward EventHandler to parent control?

Hello, I have a user control that contains a textbox. The user control is itself contained in another user control (parent). When the text is changed (OnTextChanged event) I need a way to tell the parent user control. So I would have something alongs the lines of : <uc1:MyUserControl OnChanged="DoSomething" runat="server" ID="MyUse...

How do I convert ASP.NET web pages to PDF dynamically?

How do i convert asp.net pages to PDF dynamically, or at least convert dynamically generated picture to a pdf? Thanks ...

Can you precompile and merge part of an ASP.NET website and then continue development?

A big part of the web site is precompiled and merged, since it's almost never going to change. The precompiled bits can be replaced in case of updates to the original. I want to continue development of new pages, but when I browse to a new page I get the following error: The file '/Website/Test/Default.aspx' has not been pre-compil...

asp.net session using sql server mode

Hi I am using a ASP.net session in SQL Server mode. I have created the necessary tables and stored procs in a custome db My question is: Can I use this database to serve more than one application / web site ? Is there anything to take into consideration having multiple websites use the same db for their session store cheers ...

Silverlight xap file not being copied to ClientBin on Build Server

We're developing a ASP.Net Web Application project that has a Silverlight 2.0 component. We've referenced the silverlight project in the web application properties, and the xap file is being copied to the ClientBin folder of the Web application when we build locally. The problem is that when we build this on our build server (which is ...

ASP.NET Generate a table from list with dynamic number of rows and columns

I have a list of items which I want the user to be able to tick which are appropriate to them. Currently I have a <ul> generated by a Repeater with checkbox and label controls placed in side, all working fine. However, the <ul> is taking up too much space on the screen and I need to condense it. I think the best approach would be a tab...

How do I find a color that is between two other colors?

I am assigning each color a numeric value. For example: Color.red: 12 Color.Blue: 6 I need to find a color between two colors (for example, red and blue). But how? I have tried this, (Color.red+color.blue)/2=> (12 + 6)/2 = 9 9 corresponds to Color.yellow ...

Convert RGB method?

How can I do this? int blue = Color.Blue.ToArgb(); int yellow = Color.Yellow.ToArgb(); blue = (blue + yellow) / 2; Color Blue = ConvertFromRGB(blue); ...

Unexpected behavior between master page, Global.asax, server.transfer

In my Global.asax file, I have an Application_BeginRequest subroutine that ensures that a user's "Active" attribute is set to true on each request. This is simply to determine whether the user is enabled or disabled. If the attribute is set to false we transfer (using Server.Transfer) the user to an authorizationRequest page. This p...

What do I need to install to compile Silverlight 2.0 applications on my build server

What's the minimum that I need to have installed on my Build Server (in addition to the standard .Net 3.5 stuff) to allow it to compile Silverlight 2.0 applications? I have a Silverlight application that seems to be building correctly, but is not playing nicely with a related Web Application project - see this related question that I a...

overlay a jpeg image with rich text using cute editor and GDI+

I am attempting to create and store a jpeg image on the fly with dynamic rich text. The rich text is comes from user input into the cute editor for asp.net. This particular editor can output either xHTML or rtf and some others. I'm using GDI+ to open a default background jpeg and overlaying it with the rich text from cute. I haven't ...

ASP.NET MVC 2.0 overview information?

I have heard that Microsoft is developing a MVC 2.0 platform for Visual Studio 2010. Does anyone have a good source of information about the upcoming project? Specifically, an overview of the changes and new features? ...

How can tell if my object's value is a float or int?

How can tell if my object's value is a float or int? For example, I would like this to return me bool value. ...

design considerations for a WCF service to be accessed 500k times/day

I've been tasked with creating a WCF service that will query a db and return a collection of composite types. Not a complex task in itself, but the service is going to be accessed by several web sites which in total average maybe 500,000 views a day. Are there any special considerations I need to take into account when designing this? ...

Dll in both the bin and the gac, which one gets used?

We have a web application that's deployed to many websites with only frontend changes, the shared backend portion has it's DLL in the GAC so we only have to update that one dll and all the sites get the update. Is there a way to override the GAC with a DLL in the /bin folder to test out new features before they get released? ...

Does Telerik Reporting support Business Object Datasources?

I have a requirement to use business objects to call strongly typed table adapters in a three tier model. I also have a requirement to use Telerik reporting, which I didn't see any examples of online. I just see simple examples of creating a simple select to Northwind and connecting the report directly to that. I am using 2008 Q3 of T...