.net-2.0

Install MVC on 2.0.NET Server with IIS6 without Admin Rights

On my local machine using IIS 5 (winxp) and visual Web Developer, I've built a beautiful and well composed website using MVC. Now to deploy to the testing server. I find out that it does not have MVC installed - Error:- Parser Error Message: Could not load file or assembly 'System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyTo...

A tough table transforming into XML

I have a DataTable which I select from database(Well,these data cross several tables,after the query and putting into a DataTable,it shows at below) ColumnA ColumnB a             11 b             33 b             44 a             22 b             55 but I want to transform it into an XML like...

when do we go for multithreading in c#?

Hi, I know how to implement multithreading using c#. But I want to know how is it working like. will only one thread run at a time and when that thread is waiting will it execute the second thread? If the second thread is executing and the first thread is ready. What will happen? Which thread will be given the priority? I am confused...

How to programatically transfer files when there is "FTP Over ssh"

I am doing projects on ftp. On my client side they have ssh. Until now I done application without ssh, I don't know how to transfer files over ftp when there is ssh over it. I want to do it in C# 2.0. How to do it? Any information regarding this will be very helpful. ...

File Upload and cleanup with the Asp.Net Wizard control

I'm updating an existing page that makes use of the asp.net wizard control. I'm adding an optional step that will allow the user to upload a file. I'm already past the first issue: I don't actually want to use the file until the wizard's finished button is selected, but I have to upload the file from the new step rather than the fina...

How to use PagedDataSource.CopyTo (or otherwise work with the same data I'm sending to my Repeater)

I'm populating a Repeater with a PagedDataSource and after I populate that Repeater, I want to perform some other operations on the subset of data that makes up the page I'm sending to the Repeater (my CurrentPageIndex, PageSize=10). So my question is how to get at those 10 records? From reviewing MSDN, it looks like I should be able t...

Why might the .NET framework (V2.0) be trying to mess with the Internet Explorer registry?

One of our applications recently got installed in a system that is tightly locked down. On startup, the application tries to modify the registry at HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\AutoDetect. There are no known references to that location in the source code. In fact the application in question sh...

matching password in .net validate by javascript ?

i have two textbox in asp.net and first for password and second is for matching password .. if user give different value in both textbox , then i want to generate javascript at client side.. ...

Is there any way to use an UpdatePanel inside of a Facebox popup?

I'm using Facebox for pretty facebook style popups and I was wondering if there is any way to use it with an update panel inside of it? I have a div in a page with two drop downs, and the second drop down depends on the selected value of the first drop down. I put these dropdowns inside an UpdatePanel, and I would like to be able to sho...

Tips and tricks for performance tuning of web application

Hi all, I need to have different options to optimize performance and speed up web application. Basically I need for asp.net web applications. What do you follow while building an web application or website considering performance of the website or web application ? Please help with suggestions. Thanks in advance. ...

.NET 2.0 app on Windows Server 2003 doesn’t load a .config file

I can’t made my .NET 2.0 applications (and services) to load their appname.exe.config files on Windows Server 2003 Standard Edition SP2, I tried to create manifest like this but it didn’t worked EDIT: Appname.config is located in the same dir, App works without any changes on Windows XP, once we move files or use setup to install i...

Subsonic query: Problem with the produced query

Hello there, I'm having a problem with subsonic quey. The deal is, I have a View and I want to query it's data to produce something like the following SQL statment: select * from myView where (col1 like '%a%' or col2 like '%a%' or col3 like '%a%') and col4 = 1 and col5 = 2 But instead the query that is submited to the DB is somet...

Cursor/selection position in DateTimePicker

I'm trying to determine the currently selected portion of the date (or time) editor. I need to to provide custom action when the navigation keys on PDA are use. In particular i want the focus to go to the next control when pressing Right button and having the last portion of the date selected (e.g year). Default behavior is cycling throu...

Is it possible to move the "AutoComplete.vb" file out of the App_Code folder and into a new namespace/project?

When setting up the Ajax Control Toolkit's AutoComplete control, it creates an AutoComplete.asmx and a AutoComplete.vb file. The AutoComplete.vb file automatically ends up in the App_Code folder. I was hoping to move all of these styled-classes into a separate namespace, but the compiler simply does not dig it. Is this possible, or ...

Adding menu items from a separate thread.

I'm creating menu items in a separate thread and adding them to the menu created in the main thread. I'm using Invoke for that. Getting "Value does not fall within the expected range" exception. //creating new thread Thread thread = new Thread(LoadRecentTasks); thread.IsBackground = true; ...

LinkedList.Contains. What is the mehtod used to compare objects?

LinkedList.Contains method. (.NET 2) How the objects are compared inside? (Equals? CompareTo?) MSDN tells nothing about. the situation: interface IClass { string GetName(); } class Class1 : IClass, IEquatable<Class1> { public string FirstName; public string LastName; string IClass.GetName() { return FirstName; } ...

Whats a quick way to convert an IEnumerable<Foo> to List<Foo> in C# 2.0?

we all know the slow way: foreach.. ...

How can I enable/disable an asp.net form/controls

How can I enable/disable an asp.net form/controls selectively or entirely from code-behind? The following code is not working. Coz there is no Enabled property in this case. public static void Disable(Page container) { for (int i = 0; i < container.Controls.Count; i++) { container.Form.Controls[i].Enabled = false; }...

Readonly wrapper of a LinkedList. HowTo?

Hello. .NET v2 When the List has a very useful (4 me) method AsReadOnly() the LinkedList does not have such a method. Is there a way to "quickly" interface an internal LinkedList to read only from the external code? ...

How do I concatenate 2 resource strings together in an aspx page

I have a localised ASP.net application (.net 2.0). I wish to concatenate 2 strings retrieved from the resource file together into one element, something like this. Text="<%$ Resources:Resource, lw_name %>" + <%$ Resources:Resource, lw_required %>" I have tried using Eval without success. Is what I am trying to do the "correct" approac...