Monday, March 8, 2010

Copy All items from One Listbox to another Listbox



Hi,

I tried to copy all the entries from one listbox to another.

I do not want to loop through the listbox to move each one at a time.

Is there any way?

Yes. The ways is

ListItem[] items = new ListItem[ListBox1.Items.Count];
ListBox1.Items.CopyTo(items, 0);
ListBox2.Items.AddRange(items);
ListBox1.Items.Clear();


Download File Here

Sunday, February 28, 2010

Error while trying to run project

I copied Asp.net 1.1 Version Files from other computer to my computer. When i tried to run the application i got "Error while trying to run project: Unable to start debugging on the web server. The project is not configured to be debugged."

Solution: Please check whether web.config file available in the application.

Friday, March 6, 2009

Access to the path Visual Studio 2003

Hi,

Last week i got the error in my Visual Studio that "asp.net Access to the path c:\winnt\microsoft.net\framework\v1.1.4322\Temporary ASP.NET Files\project_name\tempfoldername\ is denied"

I searched in google and i found that this folder no longer requried. In that forum it mentioned we can take backup of this folder(project_name\tempfoldername\) and delete it from orginal location. After i debugged my application it was working fine.

Note: This will help only for some situation. Even if you have other issue then first solve it and do this solution.

Wednesday, February 25, 2009

Maximum number of errors has been exceeded. vbc

When you Covert Dot net Framework1.0 files to FW 2.0 You may get "Maximum number of errors has been exceeded. vbc :" Error in Visual Studio.

Find the solution here http://social.microsoft.com/Forums/en-US/vbide/thread/a28ded13-e0e5-49a2-a962-65aeb001ee32. If any problem in view this page reply me

Monday, February 23, 2009

Without Debug Application Everytime in VS 2005

If you working in Visual Studio 2005 web application, then you might face that Open your application in the browser without Debug your Huge project Everytime. Only one time debug is enough. When you work in VS2003 your all files are in IIS default folder so if you type http://localhost/project/default.aspx, it will open that page.

But in VS2005 even if you know the URL like http://localhost:1345/default.aspx you cant access the project without debug.

I have found one method to debug your application at this situation. Open the project in VS2005 go to Website menu => Asp.net Configuration. It will open Website Administration tool. Now your project Ineternal IIS started for your project. You can access your project through URL easily

Friday, February 20, 2009

'ReportClass' is ambiguous in the namespace

When i Migrate Framework1.0 to Framework2.0 I got the error 'ReportClass' is ambiguous in the namespace . It is related to Web config Issue.


Solution: In web.config file under assemblies tag there are two version of Crystal Report Dll added by Visual Studio 2005. So comment lower version of add section.

Thursday, February 19, 2009

The compiler failed with error code 2000

Sometimes After bebug the Dot net Application in VS2003 and running the website, I got The compiler failed with error code 2000.

Compilation Error
Description: An error occurred during the compilation of
a resource required to service this request. Please
review the following specific error details and modify
your source code appropriately.

Compiler Error Message: The compiler failed with error
code 2000

Show Detailed Compiler Output:

Show Complete Compilation Source:


Solution: I suggest you to backup and delete your application directory from the
"C:\Winnt\Microsoft.NET\Framework\vnnnn\Temporary ASP.NET Files"
directory. Compile the application and check it again.