microsoft.public.dotnet.framework Archive - May 2002
Post a message to this list
Messages
Page: 1234567
ASP.NET - Redirect ? (2 replies)
microsoft.public.dotnet.framework
I am trying to get an asp:button btn1 onClick method to do a redirect. My test code works great in the VS.NET IDE but when I move it over to the Win2K Advanced Server running IIS 5.0 I get a Http 404 error file not found. And the file is definitely where it is supposed to be. All there is on the test html page is the asp:button to test the redirect with and a asp:hyperlink to test the destination ...
ADODB.Recordset (4 replies)
microsoft.public.dotnet.framework
I am calling a .NET Web Service from MSWord XP. I am told the only way to bring back data, other than strings, is to bring back a recordset. I have made a reference to ADODB in my Web Service but I get an error stating that the ADODB.Recorset canot be serialized. Does anyone have any suggestions or any experience as to the best method of bringing back data in this situation? Thanks, Robert
Safe Way to Move int32 to 4 byte array? (2 replies)
microsoft.public.dotnet.framework
I move the 4 bytes of a 32 bit int to a 4 byte array but had to resort to a unsafe method. Is there a 'safe' way?
Extended MAPI from C# (3 replies)
microsoft.public.dotnet.framework
I am working on a project in C# that needs to be able to send messages, insert tasks and calendar items and so forth into Outlook. I have been using the Outlook object model to accomplish this, but I would really like to keep the user from seeing all the security dialogs that pop up. I know that I need to use Extended MAPI to do this, but I am not a C developer so I am unsure of how to do it. I tr...
Need HELP with the WebRequest Object (5 replies)
microsoft.public.dotnet.framework
This code works just fine on our intranet but the code fails when trying to access anything outside of our network. I am able to browse there in IE. We have a socks 5 proxy. is there something else that I need to do to make this object work with a socks proxy? Any help would be greatly appreciated. Dim req As WebRequest WebRequest.Create "http://yahoo.com") proxyObject New WebProxy("10.21.100.255:...
Tell Compiler to ignore an error? (4 replies)
microsoft.public.dotnet.framework
Is there a way to tell the compiler to ignore a line of code that causes an error but that in practice works just fine? when you use reflection to get a form with just the string name and then set an event subscription on the form object that you get from reflection the compiler errors saying that the from has no delegate for the event subscribed to but in practice this works just fine.
Using the StrongNameIdentityPermission class (2 replies)
microsoft.public.dotnet.framework
I have two assemblies named AssemblyClient and RestrictedAssembly, both of which have strong names. I want to demand that the only client of RestrictedAssembly is AssemblyClient. The version of AssemblyClient is specified to be "1.0". Therefore, in the constructors of the public classes in RestrictedAssembly, I demand the StrongNameIdentityPermission: StrongNameIdentityPermission permission new St...
Dynamic webservice reference in code library. (3 replies)
microsoft.public.dotnet.framework
I am using a web service in my code library and what I would like to do is to mark the "URL Behavior" as dynamic and set the address in "MyCodeLibrary.dll.config" as one would have done if it were an application. Anyone knows if the ".config" file could be used with a code library's? Thanks for any help.. // Magnus;
VB.NET: Notify Icon: Loading Icon's from file at runtime (2 replies)
microsoft.public.dotnet.framework
Hi, I've been trying to use the NotifyIcon and to load icons at runtime from a file to its .icon property. The image class seems to have a .fromfile method, but I can't find the same thing for icons. I then tried to load an image from file at runtime and assign it to the ..icon property of my notifyicon but the image type can't be casted to icon type. What can I do to * Load icon's from my HD at r...
Is it possible to explicitly unload an assembly? (2 replies)
microsoft.public.dotnet.framework
Suppose that I have an application in which I load an assembly, get its name, reflect its types, etc and once I am through with these tasks I want to dispose of it. Is this possible (without creating a seperate application domain and unloading *that*)? I have tried setting the assembly to null and calling GC.Collect(), but this doesn't help. If I try to, for example, delete the assembly before my ...
Microsoft should provide an 8859-1/Latin1 Encoding (3 replies)
microsoft.public.dotnet.framework
The System.Text namespace contains a number of Encoding classes that handle common character encodings including ASCII, UTF 8 and UTF 7. It's too bad that there isn't an Encoding class for ISO 8859 1 (also known as Latin1) as well this encoding is extremely common on the Internet. It's trivial to write such an Encoding, since ISO 8859 1 is just the first 256 characters of the Unicode character set...
COM interop (2 replies)
microsoft.public.dotnet.framework
Hi, Let's assume we have a .NET server application (COM ) and client application (VB 6). Client calls a function, which returns a reference type (object). Is it possible to serialize this object and create a new instance on the client side instead of marshaling a reference ? Regards
XMLDocument (third try...) (3 replies)
microsoft.public.dotnet.framework
Hello, From what I've read on these posts and through the On line information, serializing an XMLDocument seems to be a arduous task. Basically I've got a session variable that needs to be available on a web farm. So I changed my settings to SessionState. My variable is an XMLDocument built with an SQL query. It needs to be serialized. But all the information I found was for a stream and an xml fi...
Sub-Controls in a control.... (2 replies)
microsoft.public.dotnet.framework
Can anyone point me in the right direction as to how to create a control, that creates a sub control when it is first created. The behavior I'm looking for would be similar to how the SelectCommand is created in a SQLDataAdapter. I'm having problems figuring out how to get the code generation to work correctly.... Thanks Dean
Custom Formatter (2 replies)
microsoft.public.dotnet.framework
Hi All, I'm looking for custom implementation of System.Runtime.Serialization.Formatter. Can anyone point me to it? Many thanks in advance, Sergiy Mesropyan.
launching an associated application (3 replies)
microsoft.public.dotnet.framework
Hi All, Does anyone know how to launch an associated application from a document in ..NET? For example. My application creates a file in a variety of formats. (i.e. pdf, rtf, txt). What I want is for my application to automatically launch the appropriate program for the file type so that the user doesn't have to Browse for the file with explore. TIA, Paul Hetherington BTech (Applied Computer Scien...
Writing an image to a file and then reading (2 replies)
microsoft.public.dotnet.framework
I would like to write an object that I have created to a file and later read the object in to use it's properties. myObject has a name(string), a tag (string), and an image (image) I can write the strings with the binaryWriter, but I have problems when I try to write the Image. How do I get all of them to write to the same file, and how would I retrieve them all later? Thanks in advance for any he...
Instanciating a classs of a known type (3 replies)
microsoft.public.dotnet.framework
I would like to create an instance of a class which i dont know but of which I got the System.Type information. Thanks in advance Dominik Pich
How to Append two files (2 replies)
microsoft.public.dotnet.framework
Guys, How do you append two files using StreamWriter class? I have a created a file and whenever I get a new file, I have to append the content of that file to this master file... any code sample will help... thanks AK
Datagrid with columns as check box and drop down box (4 replies)
microsoft.public.dotnet.framework
I have attached a data table to a dataset which is in turn attached attached with the datagrid. Now I want to have a combo box in one column of the datagrid and a check box in one column of the datagrid. I am programming in VB.NET Can anyone tell me how can this be done?? Your prompt reply/help will be highly appreciated. Vinay
Are all static structures pinned? (6 replies)
microsoft.public.dotnet.framework
Are all static structures pinned ( i.e. the GC never relocates them )? Hence, if you got a IntPtr to ANY structure are you guaranteed that it remains valid during the lifetime of the structure?
Newbee question (3 replies)
microsoft.public.dotnet.framework
Hello, I am a newcomer as .NET programmer. I have got a repeating problem, i cannot understand what i am doing wrong. I am getting de following error message : Value of type '1 dimensional array of System.Data.DataRow' cannot be converted to '1 dimensional array of System.Data.SqlClient.SqlDataReader' Can anybody help me? I send the code below this message. Private Function GetDataReader(ByVal sql...
Authentication (2 replies)
microsoft.public.dotnet.framework
Hi, I'm developping a Web Application with Visual Studio .Net (in Visual Basic 7). I'd like to verify the identity of each user who connect to the application (in order to be sure that it's the same person who has opened the Window session) by asking the windows password at the beginning. Then, I will be able to open a session with a timer ... My Problem : When I choose, the Windows connection mod...
How to Unicode Support? (3 replies)
microsoft.public.dotnet.framework
dim m str as String m str "abc" 'ASCii Code m str.length 'Value 3 Not problem But m str " ì Æ" ' Unicode m str.Length 'Value 2 , I want four Length Howto Convert?
Client computer Name (4 replies)
microsoft.public.dotnet.framework
How can I get the client's computer name ?????
Ad
Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification