asp.net

Can you use a .net 3.5 DLL with a .net 2.0 website?

I have some DLLs that it would be much easier to use .net 3.5 internally (to take advantage of Linq, etc). I want to use these DLL with asp.net websites that are currently running asp.net 2.0. Is this scenario possible? Are there any restrictions or gotchas (e.g. asp.net doesn't make any calls to methods which return .net 3.5 objects l...

Prevent asp:ImageButton Default inline Style

Unfortunately the asp:ImageButton control renders an inline style attribute of "border-width:0px;" This is frustrating for a variety of reasons. In the past I have worked around the problem by creating my own custom image button control which doesn't render the inline style attribute. I am looking for a more elegant solution to the probl...

Grid editing multiple records in ASP.NET

I've got to present a spreadsheet-style interface with a grid of textboxes for the user to fill in in an ASP.NET application. What's the most efficient way to construct this and to save the results? ...

Persisting state of an asp.net page

Am new to asp.net Here is what I need to do: I've an asp.net page called Results.aspx which has got 8 AJAX collapsible panels and a gridview control binded to database.It also has pagination functionality. From this page, user can navigate to other pages in the application.When he comes back to Results.aspx,I need to persist states of ...

DataContext in CodeBehind?

hey all, Im working on an ASP.NET app and using LINQ to SQL for the first time and something seems off. Usually on a web project, there is a data access layer, a biz layer and the preso layer....does linq to sql not work this way? I see where other developers have put the DataContext directly into the Preso layer and are calling the DB v...

Asp.Net call function from a different *.aspx.cs page

If I have a button inside one page for example "main.aspx". And upon being clicked I want the clicked method in "main.aspx.cs" to call a function from a different *.aspx.cs page but also redirect to that *.aspx page...is that possible? ...

Unicode Collations problem ?

(.NET 3.5 SP1, VS 2008, VB.NET, MSSQL Server 2008) I'm writing a small web app to test the Khmer Unicode and Lao Unicode. I have a table that store text in Khmer Unicode with the following structure : [t_id] [int] IDENTITY(1,1) NOT NULL [t_chid] [int] NOT NULL [t_vn] [int] NOT NULL [t_v] [nvarchar](max) NOT NULL I can use Linq to SQL...

Visual Studio 2008 with ASP.NET 3.5 debuging using attach to process is not working

Hi, I am so used to attach a process when debugging ASP.NET application in .NET 2.0 and VS.NET 2005. I don't know what happened to this functionality in VS.NET 2008. I also don't want to do debugging by starting from the start page because when the application is big enough you don't want it to be compiled and you sometimes cannot catc...

CheckedChanged event for Dynamically generated Checkbox column in DataGrid(Asp.Net)

Hi I have a datagrid (Asp.Net) with dynamically generated checkbox column..I am not able to generate the checkedChanged event for the checkbox.. Here is my code: public class ItemTemplate : ITemplate { //Instantiates the checkbox void ITemplate.InstantiateIn(Control container) { CheckBox box = new CheckBox(); ...

ASP.NET Outlook Appointment scheduling

Hai TEchies Can anyone tell me how can i set an appointment /reminder in the outlook express , from my ASP.NET web page. I am using ASP.NET 2.0 Thanks in advance ...

Generate HTML To PDF Control for the .NET application

Has anyone used any open source or paid .NET Control which does the conversion job from html to pdf file? At the moment, i am using Winnovative convertor control. But it has a performance limitation during the generation of bulk pages (like more than 1000) in the pdf. The limitation comes when we use bigger images in the html content. Fr...

Optimization - Emails in a ASP.NET app

Hi, Quick question. Just want to confirm that a network call such as to a SMTP server doesn't take up any CPU usage. It only blocks one of my request handling threads and the user who triggered the email has to wait while my webserver is done with the SMTP call. If i send the email in another thread and let the user thread go on, then I...

asp.net web-forms commandargument problem

I got a problem with a button control in asp.net webforms. After using mvc a bit i started using foreach in the aspx files in webforms too, instead of repeaters, mostly cause of all the junk viewstate a repeater creates. It works great when you just iterate over html controls. But i got a hard time with button controls. <% foreach (va...

Migrating a large classic ASP page to php?

We've got a large classic asp application and we consider migrating to either asp.net or php. I don't want to talk about the pros and cons of either one, but I'd rather like to know whether there are ways to avoid a complete rewrite in one shot when migrating to php. We simply can't stop maintaining the current codebase just to do a rewr...

Why does System.Environment.Version report framework 2?

In a web site targeted for Framework 3.5, on a machine with up to 3.5 SP 1 installed, when I call System.Environment.Version in a page, it reports 2.0.50727.3053. Can anyone suggest why this happens? ...

Open Source Forum based project in C# ASP.Net

I would like to know is there any Open Source Forum based project in C# ASP.Net ...

Restore sql doesnt fire

Hi Im trying restore database from backup dynamically with application code simple sql command for restore con.execute("RESTORE FILELISTONLY FROM DISK='c:\old.bak' " & vbcrlf &_ "RESTORE DATABASE newdb " & vbcrlf &_ "FROM DISK='c:\old.bak' " & vbcrlf &_ "WITH MOVE 'newdb' TO 'c:\newdb.mdf', " & vbcrlf &_ ...

Asp.net: Implementing Auto-Logout functionality

Hi, I have to implement auto-logout functionality in one of my projects and i just cant figure out where to start looking for ideas but SO. What i need is for the application to redirect the user to the login page if the user session has expired. Please tell me as to what should be my approach to tackle this requirement. Problem St...

Accessing Calendar Information from Exchange 2003 using c# .NET

I am trying to create a booking system in C#.NET that will store bookings within a MSQL database but also add the bookings to the exchange calendar of the relevant user. When a new appointment is created I want it to check the availabiity of users with their exchange calendars. If they are available it will book a date in the .NET syst...

ProcessRequest invoked 3 times per request

Hello, For some reason I'm experiencing that ProcessRequest is invoked 3 times per browser request in my HttpHandler. I'm using this to fetch documents from a database, and send them to the client. It's setup so every request to www.site.dk/documents/* is processed by this HttpHandler. Any help would be appreciated. Best regards. ...