.NET Base Class Library,223
Recent update: 2008-3-21

UploadFile

3089 byte By HamdevGuru at 2008-3-7
Hi everyone!I'm having some trouble uploading a file to my webserver, using the new My.Computer.Network.UploadFile method. This is the code i am using (The credentials are fictitious) : Dim filepathupload As String = "C:\uploadtest.txt"Dim urlupload As String = ...

Visual Web Dev Express and .NET 1.1

357 byte By Danielle at 2008-3-6
I understand that Visual Web Dev Express installs the .NET 2 Framework. If I install that, will I still be able to compile libraries with the same machine for use on a web server running the .NET 1.1 framework? Does it matter? I am a web developer and I don't use Visual Studio. I just compile ...

Persistance Frameworks

417 byte By UnquaLeX at 2008-3-5
I want to know what do u think about Persistance Frameworks. Do you use them of one in your projects ? there was a sound about objectSpaces. Cant wait to see that. Now I use NHibernate to persist my classes to db. I dont know it is good way or not. if Microsoft stopped to release the ...

.NET2 SerialPort - 100% CPU problem

993 byte By Dotan at 2008-3-3
Hi All ,i'm using .net2 beta1 SerialPort class.the problem is when i first recieve bytes - the CPU is getting up to 100% and stays there.i tried working with the SerailPort in many ways (starting Recieve thread, etc') but it seems that this problem repeats itself. is the read call is ...

windows application development question

812 byte By khawari at 2008-3-1
Hi, i have windows application development question, using C# .net. I am ASP.net C# web developer trying a windows application using C#.net for the first time. So here is my question: I have a datatable called dt with two columns (c1 and c2) I have a datagrid already, I want to know how to ...

VS2003 and VS2005 on the same machine ?

76 byte By GiuseppePorcelli at 2008-2-28
Dear all, can work fine all two version on the same machine ? Giuseppe

bounded buffer using semaphores

3189 byte By arazy at 2008-2-27
Hi,I am trying to build a bounded buffer using counting semaphores in C++.There are 2 threads using this buffer: a Producer and a Consumer.My problem is that the consumer continues consuming even when the buffer is empty and thus trying to access buffer[-1], which of course resaults in an ...

ConfigurationElementCollection - Removable elements

1786 byte By DevInstinct at 2008-2-26
Hi, sorry, this' a bit long.I'm trying to implement custom serialization of a collection derived from ConfigurationElementCollection so that it generates a more appropriate remove tag:<remove key="mykey"> instead of just <remove/>This is just like the remove tag which is generated ...

.NET Framework design guideline download ?

507 byte By cro at 2008-2-25
Is there a place to download all the .NET Framework guideline as a doc or pdf files to print it ...

add master page to an existing page

514 byte By blackpuppy at 2008-2-24
In Beta 2, can I add a master page for an existing page after its creation? When I create a new ASP.NET page, if I do not check "Select master page", the new created page will not have a master page. And in the property pane, the MasterPageFile of the DOCUMENT is disabled. If I decide to add a ...

Logging in Vs 2005 Beta2

250 byte By Gravy at 2008-2-23
Hi Guys, I'm sure I remember someone showing off a new kind of application logger in code for Whidbey a few months ago. The type of logging I'm talking about is something like log4net. Can anyone point me in the right direction please? Graham

Render Control to string

497 byte By beat at 2008-2-22
I programmatically created a control and now want to get the rendered HTML as a string. How do I do it? I tried: Dim MyRenderedOutput As String = "" Dim SW As New System.IO.StringWriter(MyRenderedOutput) Dim hstw As New HtmlTextWriter(SW) MyControl.RenderControl(hstw) But I get an ...

Vs2005 Beta2 Exits Abruptly when editing a form

928 byte By SteveatPixelda at 2008-2-22
A solution with business component project, Custom windows control, and windows application. When attempting to edit the main form (e.g. add a button, then change its text property in the designer), the IDE pauses a moment then disappears with no warning or exception messages.Restarting the ...

Using .NET 2.0 with VS.NET 2003

141 byte By edin at 2008-2-21
Hi, Does anyone know if it is possible to use .NET Framework 2.0 Beta with Visual Studio.NET 2003, meaning instead of .NET framework 1.1

ActiveDocumentHost

907 byte By KyleT at 2008-2-20
I'm currently trying to embed Word 2003 into a Windows Application that we are building. I experimented with VS 2005 Beta 1 and found an "ActiveDocumentHost" control that appeared to work for me. I just recently got VS 2005 Beta 2 and can't seem to find this control. Has it been removed? Will ...

Master Pages and Meta Tags

429 byte By DaveKafato at 2008-2-20
This is from a microsoft document from last year http://www.microsoft.com/indonesia/msdn/masterpages.asp#masterpages_topic10near the bottom they have it so maybe it has been removed but it should be included search engine easy ...

Q: Using .NET 2.0 with VS.NET 2003

141 byte By edin at 2008-2-20
Hi, Does anyone know if it is possible to use .NET Framework 2.0 Beta with Visual Studio.NET 2003, meaning instead of .NET framework 1.1

Absolute Position of Control on Web Form

689 byte By beat at 2008-2-19
Is there a way of setting the absolute position of a control on a web Form? In most samples, positioning is done with a table. I want to do it programmatically by setting the absolute position of a control added programmatically to the page. Your help is very much ...

Single Program instance

138 byte By Gravy at 2008-2-18
In .NET 2.0 is there an easy way of ensuring you only have one instance of a Windows Forms app running at any one time? Thanks Graham

global.asax problem

280 byte By Arik1234 at 2008-2-17
This the solution that is suggested in most of the articles I read about it but I rebuilt the project and rebuilt the solution but it is still the same <img src="/library/msdn/emoticons/emotion-6.gif" alt="Sad" /> Any other thoughts / stuff I need to validate / change?

Custom plug-in dll Problem in Win 2003 Standard edition

3408 byte By anuppm at 2008-2-16
Hi all <?xml:namespace prefix = o ns = "urnchemas-microsoft-comfficeffice" /><o> </o> We develop a Custom logging plug-in dll in C# (using IWMSEventNotificationPlugin Interface)that fetch data from Windows Media server client log file information and load in to Sql server through Webservice. ...

sn.exe and the .net SDK 1.1

277 byte By KenY at 2008-2-15
Hello, I am trying to create a strong name key for one of my .net components, however I can not find the tool that msdn references as sn.exe which is part of the security tools of the .NET SDK 1.1. Anyone know where I can download this utility or the SDK? thanks! -ken

passing a safe Array as an out parameter to a .net component

580 byte By RobertMagowan at 2008-2-15
I have a .Net component that passes a stringArray to a client program via an out parameter.This works fine from a .net clientand I have successfully passed a SafeArray from MFC to a .net component as an [in] parameter.What seems to evade me is returning returning an array of BSTR from a .net ...

Array.ConvertAll and List<T>.ConvertAll but nothing that works with IEnumerable<T&g

750 byte By Barry.Kelly at 2008-2-15
It appears there's an oversight in the design of System.Collections.Generic. Given an instance of an implementation of IList<T>, one cannot use generic algorithms because there is no static class which implements the generic algorithms (things like ForEach, RemoveAll, ConvertAll, etc.) ...

DrawRect / FillRect not implemented in .net 2.0?

1153 byte By Lightworker at 2008-2-15
I have tried to make simple game with simple GDI+ graphics and during my tries I have found that I am unable to draw or fill rectangle inside OnPaint methodWhen I am drawiing just simple line with same parameters line is drawn correctlyMy OnPaint Code Looks Like this Pen PlatformPen = new ...

Array.ConvertAll and List<T>.ConvertAll but nothing that works with IEnumerable<T>

750 byte By Barry.Kelly at 2008-2-15
It appears there's an oversight in the design of System.Collections.Generic. Given an instance of an implementation of IList<T>, one cannot use generic algorithms because there is no static class which implements the generic algorithms (things like ForEach, RemoveAll, ConvertAll, etc.) ...

Question on Asp:Repeater

952 byte By namewb at 2008-2-14
Hi, I have an product catalog page for online shopping. This is the sample of the DataSet ID Name ThumbnailImage BigImage 1 Product A productA.jpg productA_big.jpg 2 Product B productB.jpg <NULL> 3 Product C <NULL> <NULL> I'd like to display the data in a way that the ...

Performance Issue

549 byte By AshishM at 2008-2-14
I have an ASP.NET/C# application. For most of he screens I get data from database, process it and display on grid and other controls. In this whole process, CPU utilization of server goes up to 100% and on an average it remains at 90%. I am using 2.4 GHz, 512 RAM server, Win2000 and IIS 5. ...

SqlConnection / SQLTransaction issue (.NET 2.0 BETA 2)

981 byte By SimonMiddlemiss at 2008-2-13
Has the way SqlConnection and SqlTransaction works changed for BETA 2? I can't find anything but the following code no longer works and throws a "Connection Closed" exception when conn.BeginTransaction executes, even thou conn.Open() seems to work.CheersSimonusing (SqlConnection conn = new ...

hwo to set to avoid the SecurityException ...?

6023 byte By ec at 2008-2-13
************** Exception Text **************System.Security.SecurityException: Request for the permission of type System.Windows.Forms.SafeNativeMethods.IFont.GetHFont() at System.Windows.Forms.Control.ActiveXImpl.get_AmbientFont() at System.Windows.Forms.Control.get_Font() at ...

Sending Windows Messages

1801 byte By Roose at 2008-2-12
I am playing around trying to send messages to windows (specifically close messages and specific messages to dialog boxes).I am using visual studio 2003, and am using the windows API to try to send the messages.What I have found is that FlashWindow and CloseWindow work, MoveWindow kind of works ...

Difference between (int), Int32.Parse and Convert.ToInt32?

351 byte By ChuaWenChing at 2008-2-11
Hi, I have been wondering. In which scenario, I should be using (int), Int32.Parse and Convert.ToInt32? Or are they the same? I do notice in certain condition that i cannot cast directly using (int) and I have to use Convert.ToInt32. I am not that sure why i do that. I just need some ...

ASP on Windows 2003

239 byte By Joei22 at 2008-2-10
I'm trying to run an aspx on a 2003 server and get the error "BC30138: Unable to create temp file in path 'C:\WINDOWS\TEMP'" we tried giving ASPNET account access to 'C:\WINDOWS\TEMP' but no luck there. Any ideas on this ? Thanks!

Static Interfaces

48 byte By DiegoCánepa at 2008-2-10
What about allowing static interfaces? Regards

System.Web.Mail Blocks Isdn or Adsl Connection

1051 byte By OguzBastemur at 2008-2-8
Hi , i want to share my smtp expirencein c# we can send mail using IIS Smtp with .NET SendMail Function Like This.-Step 1Control Panel->Administrative Tools-> IIS in Smtp Properties , set ip is your local ip or net ip..And write this code in .net :(add System.Web to project references) ...

Attributes (and descriptions) of properties in generated partial classes

513 byte By orbit at 2008-2-8
HiWhen a generator creates properties in a partial class it usually doesn't know anything about the attributes the application will need on these properties.I could manually set the attributes after the code is generated. But they would be lost as soon as I need to regenerate the code.The best ...

Update

417 byte By DavidM.Kean at 2008-2-7
Okay from that I can see that you want to be able to support a user uploading a file. However, that doesn't change the fact that this should be posted to http://forums.asp.netUpdate: Sorry Tom didn't post that message. Should be pay attention more closely. ...

Error starting new project in VS 2005 Beta 2

256 byte By Sgro at 2008-2-7
When I try to create a new web site, I get this error the number separator information specified in the numberformatinfo in ambiguous for parsing and the project isn't created. I can create new single files but no project. Anyone knows why? Thanks

Object model diagram

157 byte By slavisa at 2008-2-7
Hi, I am looking for a object model diagram of the framework 2.0, but if possible at least for the 1.1 version. Is there anything around for download

.Net 2.0 Navigation Controls & User Mgt. Service

74 byte By SachinShinde at 2008-2-7
Can anyone give useful links for this topic ? Thanks in Advance !

When is SQL Express Beta 2 Available.

203 byte By Ninja at 2008-2-6
Great, we have the Beta 2 of C#, VB Express Editions, but the latest version of SQL Express is the April CTP, does anyone know the release date for SQL Express as I can't find any mention of it on MSDN.

Beta 2 COnfiguration changes

339 byte By IainDowns at 2008-2-6
Can someone explain this to me?There's a whole new thing about ApplicationSettings and ConfigurationSettings has been (gratuitously) replaced by ConfigurationManager.All I want is to replace the appSettings I used to use with something simple. I seem to have a proliferation of ...

Exception with System.Type.GetType(...) function

536 byte By Syl20 at 2008-2-5
Hello all,I have a strange problem with the System.Type.GetType(...) function.When I do :try { string maChaine = "System.Windows.Forms.Button"; Type ty = Type.GetType(maChaine, true); } catch (Exception ex) { label1.Text = ex.Message; } An exception raises ; the message is (I translate ...

Application Object and SetUnhandledExceptionMode

549 byte By chuck02323 at 2008-2-5
I was going to write a Win Forms application which normally starts with my putting in my unhandled exception code. I see that the application class now has a UnhandledExceptionMode Method, with members of Automatic CatchException ThrowException Any idea of what this does or how to ...

Reading/ Writing Shell Links i.e. .url and .lnk

242 byte By BHAB at 2008-2-4
I know that a person can use WshShell or wrap the IShellLink API, but I am wondering if there has been anything added to the new framework which has this included? That is, is there any part of the API which has this in managed code? Thanks

after installing .net beta 2 redestributable, wireless connectivity dies

489 byte By gregski at 2008-2-4
Hello everybody,I am not sure if this is the right group for this question so please forgive me if I got it wrong.My problem involves installing net 2.0 beta 2 redestributable. Right after that, wireless connectivity dies on my sony notebook! I can't seem to get ip from DHCP server. I have ...

Using .Net Framework 1.1 & 2 in the same assembly.

501 byte By Bijan at 2008-2-4
Let's assume that you have a control developed by VS2003 (.Net Framework 1.1) and you want to use it in a VS2005 project (.Net Framework 2.0 beta 2). What would happen (the default behavior) is that control would be executed by .Net Framework 2.0 along the other controls.Now the question is ...

The Specifics of: How do I build a website that the user can download a zipped file from?

417 byte By DavidM.Kean at 2008-2-4
Okay from that I can see that you want to be able to support a user uploading a file. However, that doesn't change the fact that this should be posted to http://forums.asp.netUpdate: Sorry Tom didn't post that message. Should be pay attention more closely. ...

Setting values of Controls used multiple times on a page

238 byte By JamesColeman at 2008-2-3
Well, I haven't figured out the problem, but I have more information. I found that the values are correct inside the ascx.vb file at prerender in the PAGE (aspx), but they are not correct inside the custom dropdownlist. Very frustrating.

How do I build a website that the user can download a zipped file from?

417 byte By DavidM.Kean at 2008-2-3
Okay from that I can see that you want to be able to support a user uploading a file. However, that doesn't change the fact that this should be posted to http://forums.asp.netUpdate: Sorry Tom didn't post that message. Should be pay attention more closely. ...

.NET Development

Site Classified