[DOTNET] How to : WinForms Recently Used File List ?

2002-05-16 Thread "Gudmundsson, Tómas"
Hi, trying again :-) I can't find anything in doc or elsewhere on how to implement a most recently used list for the File menu in a Windows Forms application. Does anybody have any ideas ? Any help much appreciated ! Thanks Tómas Gudmundsson SPSS You can read messages from the DOTNET arch

Re: [DOTNET] OT: N-Tier Design

2002-05-16 Thread Dean Cleaver
Similar, but not always... Often the DAL has several functions never called from outside the BLL... Dino -Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of Rolls, Robert Sent: Friday, 17 May 2002 16:44 To: [EMAIL PROTECTED] Subject: Re: [DOTNET] OT: N-Tier

Re: [DOTNET] Does anyone know how to trigger an event based on atimechange?

2002-05-16 Thread Tim Butterfield
David Brown wrote: > > Designing a little clock .Net beastie. I'm unable to determine how, if even > possible, to have .Net tell me when the system clock updates (specifically, the > second). Currently I have a simple WinForm Timer object at 100ms and checking > the DateTime.Now for a changed valu

Re: [DOTNET] OT: N-Tier Design

2002-05-16 Thread Rolls, Robert
so your DAL has methods similar to your BLL returning Dataset? -Original Message- From: Dean Cleaver [mailto:[EMAIL PROTECTED]] Sent: Friday, 17 May 2002 14:40 To: [EMAIL PROTECTED] Subject: Re: [DOTNET] OT: N-Tier Design I have my SQL all in the DAL - but no real "logic". The business

Re: [DOTNET] OT: N-Tier Design

2002-05-16 Thread Dean Cleaver
I have my SQL all in the DAL - but no real "logic". The business layer holds the logic of what calls to make to the db, but no SQL at all. Dino -Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of Rolls, Robert Sent: Friday, 17 May 2002 16:21 To: [EMAIL PROT

[DOTNET] OT: N-Tier Design

2002-05-16 Thread Rolls, Robert
how many of you guys have raw SQL in the business Business Logic layer - or do you have coressponding functions in you Data Access Layer i.e UI->onClick()->BBL->GetCustomers()->DAL->ExecuteQuery( SQL ); or UI->onClick()->BBL->GetCustomers()->DAL->GetCustomers() Regards, Robert Rolls ***

Re: [DOTNET] IJW and P/Invoke

2002-05-16 Thread Sam Gentile
Thanks Brad! Sam Gentile Co-Author Wrox Professional Visual C++.NET (ISBN 1861005962 ) [EMAIL PROTECTED] www.project-inspiration.com/sgentile http://www.project-inspiration.com/sgentile/DotNet.htm BLOG: http://radio.weblogs.com/0105852/ http://www.project-inspiration.com/sgentile/ScienceFiction.

[DOTNET] Attributes question

2002-05-16 Thread Kirk Jackson
Hi, I was looking at the "Attribute Based Validation" examples on the newtelligence website (http://www.newtelligence.com/news/AttributeBasedValidation.aspx), which made me wonder about how attributes work... I know that you can declare attributes on a class/member etc, and query the attributes

[DOTNET] Does anyone know how to trigger an event based on a timechange?

2002-05-16 Thread David Brown
Designing a little clock .Net beastie. I'm unable to determine how, if even possible, to have .Net tell me when the system clock updates (specifically, the second). Currently I have a simple WinForm Timer object at 100ms and checking the DateTime.Now for a changed value. Inefficient, but it works.

Re: [DOTNET] Winform Regex Validator and Multiline TextBox

2002-05-16 Thread Michael Weinhardt
On Thu, 16 May 2002 14:29:03 -0400, Marsh, Drew <[EMAIL PROTECTED]> wrote: >Michael Weinhardt [mailto:[EMAIL PROTECTED]] wrote: > >> I tried the .*33.* in a multiline textarea, and it worked ok >> if "33" was on the first row but, not if 33 was on the 2nd ie >> aa\r\n33. > >Woops, yeah . won't pi

Re: [DOTNET] C# Nesting an If/Else inside of an If/Else???

2002-05-16 Thread Ted Neward
Hey, man, kudos to you for not thinking it was the language that was broken :-) "'Tis the poor workman who blames his tools." Ted Neward {.NET || Java} Course Author & Instructor, DevelopMentor (http://www.develop.com) http://www.javageeks.com/tneward http://www.clrgeeks.com/tneward - O

Re: [DOTNET] ADO.NET multiple table updates

2002-05-16 Thread Chris Anderson
> -Original Message- > From: dotnet discussion [mailto:[EMAIL PROTECTED]] > On Behalf Of Shawn Wildermuth > > If you have a cascading FK in the DataSet, you should also > have one in the database. I do..but when you are inserting, no cascades will occur on the server as the child records

Re: [DOTNET] C# Nesting an If/Else inside of an If/Else???

2002-05-16 Thread Wareham, Matt
Blast... thanks for reading between the lines, I was stepping through the code in the debugger. And, of course as everyone else pointed out the value was correct, the debugger was simply acting like it went through many lines of code. Thanks for everyone's help!! -Matt -Original Message--

Re: [DOTNET] Server.Transfer redirect to a PDF/XLS/DOC doesn't up date browser history

2002-05-16 Thread Kyle Clarke
I wrote: >> On the other hand, if we do a Server.Transfer to a .aspx page >> that renders itself as a normal .aspx page, the browser >> history is updated just fine and back goes back 1 page as it should. On Thu, 16 May 2002 09:46:05 -0400, Marsh, Drew <[EMAIL PROTECTED]> wrote: >But the histor

Re: [DOTNET] C# Nesting an If/Else inside of an If/Else???

2002-05-16 Thread Jeff Key
Matt, Running the test results in "Yabba Dabba Doo." over here. What are you expecting? -jk -Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of Wareham, Matt Sent: Thursday, May 16, 2002 4:22 PM To: [EMAIL PROTECTED] Subject: [DOTNET] C# Nesting an If/Els

Re: [DOTNET] IJW and P/Invoke

2002-05-16 Thread Sam Gentile
1) P/Invoke is suitable for calling exported functions in a DLL. You can certainly do that to call functions in a DLL. However, this is mainly viewed, INHO, as a transition step, particularly for Win32 APIs and such. You will suffer performance penalties with P/Invoke - Microsoft claims between "1

[DOTNET] Creating Crystal UFL in C#

2002-05-16 Thread Vi Tinh
Hi all, Has anyone created a Crystal Reports UFL in C#? THanks, vi You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

Re: [DOTNET] C# Nesting an If/Else inside of an If/Else???

2002-05-16 Thread dotNetMailinglist
I get "Yabba Dabba Doo." class Test { public static int Main() { string strT = "TEST"; string strX = "Test Again"; string strResult; if (strT.Length > 0) { if (strX.Length > 3) { strResult = "Yabba Dabba Doo."; } else { strRes

Re: [DOTNET] C# Nesting an If/Else inside of an If/Else???

2002-05-16 Thread Tom Archer
I run this code and it's fine. -Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]]On Behalf Of Wareham, Matt Sent: Thursday, May 16, 2002 5:22 PM To: [EMAIL PROTECTED] Subject: [DOTNET] C# Nesting an If/Else inside of an If/Else??? Greetings, I'm having some massive c

Re: [DOTNET] C# Nesting an If/Else inside of an If/Else???

2002-05-16 Thread Sean Greer (SBI-Chico)
You're not doing anything wrong. When I run this code it correctly spits out "Yabba Dabba Doo.". Are you seeing something different? Are you stepping through this code in the debugger? If so, the debugger is known to "step through" single line else statements, even though they are not actually

Re: [DOTNET] C# Nesting an If/Else inside of an If/Else???

2002-05-16 Thread Ted Neward
I hate to say this, but please double-check your results. I've written that construct thousands of times and never yielded anything but what "should" be there. Drop a System.Console.WriteLine() after the last "else" and print out strResult. If you still get the bizarre results, drop it into a simp

Re: [DOTNET] C# Nesting an If/Else inside of an If/Else???

2002-05-16 Thread Kirk Jackson
Does a printout of strResult actually show 'Doh.', or is it just the debugger looking like it is stepping into the else part of the if statement - sometimes the debugger can be misleading! -Original Message- From: Wareham, Matt [mailto:[EMAIL PROTECTED]] Sent: Friday, 17 May 2002 9:22 a.

Re: [DOTNET] DCOM timeout with outlook.exe (was: Re: get Holidays in an Year)

2002-05-16 Thread Christian Weyer
Mike, thanks for this info. I will have a look at this example. Thanks, Christian - .NET XML Web Services Repertory http://www.xmlwebservices.cc/ - Mike Timms wrote: > The Outlook library was designed to work on a local client

Re: [DOTNET] DCOM timeout with outlook.exe (was: Re: get Holidays in an Year)

2002-05-16 Thread Mike Timms
Christian, >But just for interest: did you ever try to get this code to run in an >ASP.NET application? No, there are enough Outlook issues without doing that. . The Outlook library was designed to work on a local client and is not supported in a server environment. If you're trying to access E

Re: [DOTNET] ADO.NET multiple table updates

2002-05-16 Thread Chris Anderson
[inline] > -Original Message- > From: dotnet discussion [mailto:[EMAIL PROTECTED]] > On Behalf Of David Sceppa > > The behavior can be linked back to your > ForeignKeyConstraint object. You set its AcceptRejectRule > property to Cascade. When a DataAdapter submits a pending > chang

Re: [DOTNET] C# Nesting an If/Else inside of an If/Else???

2002-05-16 Thread Wareham, Matt
This was a direct paste from a test project. I've tried it on 2 different workstations with the same results. I even have the latest SP's installed. My small brain is quite confused! -Matt -Original Message- From: Brad Wilson [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 16, 2002 2:3

Re: [DOTNET] C# Nesting an If/Else inside of an If/Else???

2002-05-16 Thread Brad Wilson
Wareham, Matt wrote: > meaning can it even be done?? Yes, it can be done, and your code looks right. Was it a paste or a re-type? Brad -- Read my web log at http://www.quality.nu/dotnetguy/ You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMe

[DOTNET] Runtime metadata and Reflection question

2002-05-16 Thread Brent E. Rector
Remoting throws an ambiguous match exception when you call an overloaded method that differs from another only by return value. For example, int Foo (int a, double b); long Foo (int a, double b); The CLR seems to have no problem with this case. I've only seen the error while using Remoting so

[DOTNET] C# Nesting an If/Else inside of an If/Else???

2002-05-16 Thread Wareham, Matt
Greetings, I'm having some massive confusion over how to properly nest If/Else statements in C# meaning can it even be done?? Below is a test method I wrote to re-create what I'm thinking is an error. If you run the code below, it will run through both assignments of strResult in the second

[DOTNET] DCOM timeout with outlook.exe (was: Re: get Holidays in an Year)

2002-05-16 Thread Christian Weyer
Nice snippet, Mike. But just for interest: did you ever try to get this code to run in an ASP.NET application? Of course I mean after having done all of the necessary security settings ... I still keep getting (on N machines) a timeout when trying to connect to the outlook.exe DCOM server. Any id

Re: [DOTNET] WinForms user controls - Several Questions

2002-05-16 Thread Peter Foreman
--- Jacob Grass <[EMAIL PROTECTED]> wrote: Thanks Jacob - ControlDesigner was what I was after. > > Links to any good articles on this area would be appreciated. > > Any article by Shawn Burke on MSDN. These certainly seem to be the right thing. Much appreciated, Peter ___

Re: [DOTNET] get Holidays in an Year

2002-05-16 Thread Mike Timms
On Tue, 14 May 2002 03:40:48 -0500, Fernando, Chaminda non Unisys <[EMAIL PROTECTED]> wrote: >Hi all, >I want to get holidays in an year in a particular country. How can I >do that ? In Outlook Calendar I can see holidays when I set to particular >country (Default US). So how can I access

Re: [DOTNET] DefaultValue() Attribute Question

2002-05-16 Thread Jeff
Thanks so much. The ShouldSerialize is definitely the trick. I'm about to try it out, but in the documentation under the ShouldSerialize and Reset methods, the following as-yet-overlooked-by-me nugget appears ShouldSerialize and Reset are optional methods that you can provi

[DOTNET] Problem running multiple services from single process

2002-05-16 Thread David Glauser
I'm trying to host two services in a single process, and cannot get the second to start. The first is a simple do-nothing service, and is there to make it easy to attach the debugger. After setting breakpoints, I can start the second and debug it. The relevant parts of my service class look lik

Re: [DOTNET] WinForms user controls - Several Questions

2002-05-16 Thread Jacob Grass
Peter - > 1) How do I create a control which has a fixed size in the > form design view in VS. I tried > overriding OnResize but didn't like the effect - is there a > better way? If you are talking about one derived from Control, you would create a custom designer for your control. Somethin

[DOTNET] WinForms user controls - Several Questions

2002-05-16 Thread Peter Foreman
A few user controls questions: 1) How do I create a control which has a fixed size in the form design view in VS. I tried overriding OnResize but didn't like the effect - is there a better way? 2) ControlStyles - FixedHeight, FixedWidth - what do these actually do? 3) By what mechanism is a U

Re: [DOTNET] ADO.NET multiple table updates

2002-05-16 Thread Barry Gervin
A data adapter does not do a round trip for every changed row. It batches them together and fires them down with 1 big sp_execute. Now for every datadapter update there would be a round trip. In my master detail updates this is 4 (1 child deletes, 1 parent.Update() ins/upd/del, 1 child inserts, 1

[DOTNET] MDIClient Object not available?....

2002-05-16 Thread Matt Horne
Anyone know why the MDIClient object (the client window inside of an MDIForm that is the parent of all the MDI child windows) is not available (maybe as a property of the MDI form)? I noticed that the MDIForm.ClientRectangle is not the same as the MDIClient.ClientRectangle because of that annoyin

Re: [DOTNET] ADO.NET multiple table updates

2002-05-16 Thread Shawn Wildermuth
Sending a diffgram seems like it would be much cheaper than actually doing a round trip for every changed row, no? Thanks, Shawn Wildermuth [EMAIL PROTECTED] > -Original Message- > From: dotnet discussion [mailto:[EMAIL PROTECTED]] > On Behalf Of Chris Anderson > Sent: Thursday, May 16,

Re: [DOTNET] ADO.NET multiple table updates

2002-05-16 Thread Shawn Wildermuth
If you have a cascading FK in the DataSet, you should also have one in the database. Thanks, Shawn Wildermuth [EMAIL PROTECTED] > -Original Message- > From: dotnet discussion [mailto:[EMAIL PROTECTED]] > On Behalf Of Chris Anderson > Sent: Thursday, May 16, 2002 11:41 AM > To: [EMAIL PR

Re: [DOTNET] Class that inherits from AxWebBrowser can't be placed in Toolbox

2002-05-16 Thread Peter Stephens
Try adding the attribute: [ToolboxItem(true)] to the class. -- Peter David A. spake: > > Hi everybody, > > Can anybody explain to me, why the following class can’t be placed on > the Toolbox? > > using System; > > namespace ExWebbrowserControlLibrary > { > /// > /// Zusammendfas

[DOTNET] SopaFormatter doesnot work for Font's

2002-05-16 Thread Rama Krishna
I have a serializable object with a member of type System.Drawing.Font. I can serialize and deserialize the object using BinaryFormatter. When I try to use SoapFormatter I can serialize but the deserialization doesnot work? Do I need to do anything special? You can read messages from the DOTNET a

Re: [DOTNET] DefaultValue() Attribute Question

2002-05-16 Thread Jacob Grass
Heh.. . .Font is a different ball of wax. You don't want to use DefaultValue on Font because you can only specify Static values. You should create a ShouldSerializeFont method on the class that defines the property. So, something like this: private bool ShouldSerializeFont() { retu

Re: [DOTNET] IJW and P/Invoke

2002-05-16 Thread atul_khare
There's one more book by Richard Grimes: BTW, if you can wait long enough, it seems that another book by the same author is in the pipeline -- possibly, an updated version of the above :-). Also, here's an e

Re: [DOTNET] Winform Regex Validator and Multiline TextBox

2002-05-16 Thread Marsh, Drew
Michael Weinhardt [mailto:[EMAIL PROTECTED]] wrote: > I tried the .*33.* in a multiline textarea, and it worked ok > if "33" was on the first row but, not if 33 was on the 2nd ie > aa\r\n33. Woops, yeah . won't pickup the \n and without being able to setup the multiline option this regex isn't e

Re: [DOTNET] DefaultValue() Attribute Question

2002-05-16 Thread Jeff
The continuing saga: Color worked just fine as noted in earlier replies. DefaultValue(typeof(Color), "Control") Font is another story. In looking at the info for the DefaultValue constructor: = [C#] [AttributeUsage(AttributeTargets.All)] public DefaultValueAttribute(Ty

Re: [DOTNET] ADO.NET multiple table updates

2002-05-16 Thread David Sceppa
Chris, The behavior can be linked back to your ForeignKeyConstraint object. You set its AcceptRejectRule property to Cascade. When a DataAdapter submits a pending change in a row, it implicitly calls the AcceptChanges method on the row if the update attempt succeeds. By setting the Acc

Re: [DOTNET] DefaultValue() Attribute Question

2002-05-16 Thread Joseph E Shook
Tested in VB.NET -Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of Jeff Sent: Thursday, May 16, 2002 5:42 AM To: [EMAIL PROTECTED] Subject: [DOTNET] DefaultValue() Attribute Question I searched the list and the net and found a few vague references to my

[DOTNET] WebService state question

2002-05-16 Thread Tracy Martin
Greetings, This seems a simple question, but I don't seem to see the answer in the docs, and I've had varying experiences with it in practice, so I thought I would ask: Does a WebService maintain state for a specific instance? For example, if I have a WebApplication which instantiates a WebServi

[DOTNET] Mobile Internet Toolkit

2002-05-16 Thread Teo Lachev
I was wondering why there is a need for a separate tool for writing mobile applications, which comes with a separate set of controls. Since the Mobile Internet Toolkit is so much ASP.NET alike, why wasn’t just possible to enhance the existing ASP.NET server controls to take care of generating the

[DOTNET] SV: [DOTNET] Web service problem: Server application not available

2002-05-16 Thread Lars Löfström
Found it myself.. Its a wellknown(?) bug confirmed by Microsoft. Read more at http://support.microsoft.com/search/preview.aspx?scid=kb;en-us;Q315158 Tanks for your attention - hope this helps somebody else! -Ursprungligt meddelande- Från: dotnet discussion [mailto:[EMAIL PROTECTED]]För L

Re: [DOTNET] ASP.NET Control - Insert text in here!?

2002-05-16 Thread Dan Souk
Not a good thing. Glad you got it figured out. -Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of Zane Thomas Sent: Thursday, May 16, 2002 12:26 AM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] ASP.NET Control - Insert text in here!? Dan, > I'm referring t

Re: [DOTNET] ADO.NET multiple table updates

2002-05-16 Thread Barry Gervin
> If the parent is a new one, a default row is added to the DataTable, and the > user amends that (hence my need to support inserts) If there is only one child record - you might want to look at calling the EndCurrentEdit method before you try to do an update - otherwise the data in the single ro

[DOTNET] Web service problem: Server application not available

2002-05-16 Thread Lars Löfström
Hi - need some help on this; Ive made a simple WebService app in C# on a developing computer (WINXPprof). It works just fine on this computer - when I test it with Internet Explorer the methods shows up in the browser. Then I made a Web Setup project and installed the Webservice on a machine that

Re: [DOTNET] ADO.NET multiple table updates

2002-05-16 Thread Chris Anderson
> You have to do child deletes before parent deletes. > You have to do parent inserts before child inserts. [nods] Luckily in this particular case however, the parent record cannot be deleted, only amended If the parent is a new one, a default row is added to the DataTable, and the user amends th

[DOTNET] Windows Authentication / Change of User....

2002-05-16 Thread Rob Taylor
Hi all, I am writing a web application which will operate in a domain environment. I would like to secure the application using Windows Authentication. There are two aims for the security within the project: 1) The intention is to check whether the user has a specific custom role "MYADMIN" or "M

Re: [DOTNET] IJW and P/Invoke

2002-05-16 Thread Brad Wilson
madhu c. wrote: > Thank you very much Brad..I may still bug you guys with my stupid doubts > about .NET in this forum. > BTW coud you suggest any books for Managed C++ ? Yep. "Visual C++ .NET: A Primer for C++ Developers" http://www.amazon.com/exec/obidos/ASIN/1861005962 Brad -- Read my web

Re: [DOTNET] ADO.NET multiple table updates

2002-05-16 Thread Barry Gervin
A few points. You have to do child deletes before parent deletes. You have to do parent inserts before child inserts. You can streamline that by a) Child Deletes b) All parent updates/inserts/deletes - simple dataadapter update c) Child Inserts, Child Updats The problem is further a

Re: [DOTNET] IJW and P/Invoke

2002-05-16 Thread madhu c.
Thank you very much Brad..I may still bug you guys with my stupid doubts about .NET in this forum. BTW coud you suggest any books for Managed C++ ? Thanks in advance, Madhu. -Original Message- From: Brad Wilson [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 16, 2002 11:21 AM To: [EMAIL

Re: [DOTNET] IJW and P/Invoke

2002-05-16 Thread Brad Wilson
madhu c. wrote: > I still don't understand what the advantage IJW gives to the programmer > (if we have more work to do). More work, more benefit. You get full fledged objects, and an easy path from which to promote your unmanaged code to managed code (without having to muck with changing the cl

Re: [DOTNET] IJW and P/Invoke

2002-05-16 Thread madhu c.
Thanks Brad > 1) Use P/Invoke in Visual Basic.NET and call the functions in the DLL >This should certainly work, and is the path of least resistance, especially >since I'm assuming that the DLL currently just exports a bunch of functions >(since you couldn't have directly consumed a C++ clas

Re: [DOTNET] ADO.NET multiple table updates

2002-05-16 Thread Chris Anderson
Thanks I am using three adapters, and an updating the parent first (I have to update the parent first, to ensure integrity on the database, and for new records, the foreign key(FK) isn't known until the parent table has been written) The child tables do get updated with the FK once I call Update

Re: [DOTNET] System.Data.OracleClient.OracleConnection

2002-05-16 Thread Raj Chanian
Thanks Kevin, That correction works for me as well now. Funny, why the .chm doesn't mention nothing about the credentials, and the option of taking out the Integrated Security parameter. BTW, I have made my wrapper dual purpose 1] Via Managed Provider 2] Via OLEDB Both work now with different

Re: [DOTNET] Using HttpWebRequest to fill in a webform

2002-05-16 Thread Marsh, Drew
Marc Mertens [mailto:[EMAIL PROTECTED]] wrote: > Because I want to write a client which can interact not only > with a IIS server with dotnet but with som general webforms > (using PHP, CGI, ASP , JSP ..) and I'm assuming that I have > no control over the server side. By the way I thought > views

Re: [DOTNET] XmlTextReader and DTD

2002-05-16 Thread Marsh, Drew
Isaac Hwak Han [mailto:[EMAIL PROTECTED]] wrote: > How can I bypass the whole DTD processing of XmlTextReader? I > know by setting XmlResolver of XmlTextReader to a new > resolver, I can get the effect of replacing remote URIs with > local ones. Is there any cleaner solution to it? Set the XmlTe

Re: [DOTNET] ADO.NET multiple table updates

2002-05-16 Thread Shawn Wildermuth
I have found that a separate DataAdapter for each table is necessary and calling them in the right order is crucial in many instances. It matters how your schema in the database (not the DataSet) is expecting the data as to how you would call the updates. Are you using one or three data adapters

Re: [DOTNET] IJW and P/Invoke

2002-05-16 Thread Brad Wilson
Madhu Cheriyedath wrote: > 1) Use P/Invoke in Visual Basic.NET and call the functions in the DLL This should certainly work, and is the path of least resistance, especially since I'm assuming that the DLL currently just exports a bunch of functions (since you couldn't have directly consumed a C+

Re: [DOTNET] Accessing and editing the web.config file

2002-05-16 Thread Kirk Allen Evans
-Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]]On Behalf Of Kerry Whelan Sent: Thursday, May 16, 2002 9:26 AM To: [EMAIL PROTECTED] Subject: [DOTNET] Accessing and editing the web.config file > I am trying to edit different sections of the web.config file. I can gai

[DOTNET] IJW and P/Invoke

2002-05-16 Thread Madhu Cheriyedath
I am looking some clarifications for the use of IJW and P/Invoke. We have one DLLs which is written in Visual C++ (NOT a COM component). We already have a Visual Basic 4.0 program which uses that DLL. Now as the part of .NET migration, the Visual Basic 4.0 code will be converted to Visual Bas

Re: [DOTNET] Accessing and editing the web.config file

2002-05-16 Thread John St. Clair
Why do you want to store and edit this in the web.config file? Why not in a standalone xml file located in a sub-directory? I would be very hesitant to provide any functionality that edits the web.config file directly I would just use a strongly-typed dataset, and then load/modify/save it to

Re: [DOTNET] Server.Transfer redirect to a PDF/XLS/DOC doesn't up date browser history

2002-05-16 Thread Marsh, Drew
Kyle Clarke [mailto:[EMAIL PROTECTED]] wrote: > We're doing a Server.Transfer from one .aspx page to another > .aspx web page. The second .aspx page response.clear()'s the > buffer, response.writefile()'s a PDF/DOC/or XLS document from > disk into the response buffer, sets the right http headers

Re: [DOTNET] DefaultValue() Attribute Question

2002-05-16 Thread Jeff
On Thu, 16 May 2002 07:45:51 -0500, Jacob Grass <[EMAIL PROTECTED]> wrote: >DefaultValue(GetType(Color), "Control") Thanks, I should have read ALL the overloads more carefully to see the one that included type. However, this still does not work because the compiler reports: "'System.Drawing.Col

[DOTNET] Accessing and editing the web.config file

2002-05-16 Thread Kerry Whelan
Hi, I am trying to edit different sections of the web.config file. I can gain access to configSections that I have defined using ConfigurationSettings.GetConfig(People/owner) in my code when the web.config file is as follows:- ... What is the best way to

Re: [DOTNET] dynamic proxy

2002-05-16 Thread Sievert, James A
> I need a proxy object that implements interfaces specified at > run time and forwards all method calls to a delegate through > reflection. A custom proxy derived from RealProxy should be able to handle this for you. Simply implement IRemotingTypeInfo.CanCastTo on the custom proxy, and you'll be

Re: [DOTNET] DefaultValue() Attribute Question

2002-05-16 Thread Jacob Grass
Jeff- This should work: Private m_AlternateBackColor As Color = SystemColors.Control _ Public Property AlternateBackColor As Color Get Return m_AlternateBackColor End Get Set(ByVal Value As Color) m_AlternateBackColor = Value En

Re: [DOTNET] Using HttpWebRequest to fill in a webform

2002-05-16 Thread Jim Arnold
The trouble is, a form is more than the visible fields - you need to make sure you post back any hidden fields as well, because these are generally used for maintaining state. There may also be JavaScript postback functions that pre-process a form before it's submitted (certainly the case in ASP.

[DOTNET] DefaultValue() Attribute Question

2002-05-16 Thread Jeff
I searched the list and the net and found a few vague references to my question, but no concrete answers. I have a control where I want to specify default values so the property grid does not incorrectly bold the default settings (visual cue that they have been changed from the default when this

[DOTNET] dynamic proxy

2002-05-16 Thread Dejan Jelovic
Does the .NET class library have an implementation of a dynamic proxy? I need a proxy object that implements interfaces specified at run time and forwards all method calls to a delegate through reflection. Java has had something like this since Java 1.2. I see that .NET has a class called RealPr

Re: [DOTNET] Question regarding remoting...

2002-05-16 Thread Jai Kishore
Thanks Kilic, That really solved my problem. Regards, Jai -Original Message- From: Serdar Kilic [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 16, 2002 5:43 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Question regarding remoting... Hi Jai, You need to add a reference to the System

Re: [DOTNET] Using HttpWebRequest to fill in a webform

2002-05-16 Thread Marc Mertens
Because I want to write a client which can interact not only with a IIS server with dotnet but with som general webforms (using PHP, CGI, ASP , JSP ..) and I'm assuming that I have no control over the server side. By the way I thought viewstate is specific for ASP.NET so how do you proceed if the

Re: [DOTNET] Using HttpWebRequest to fill in a webform

2002-05-16 Thread Jim Arnold
...[instead] of faking a browser... Jim > -Original Message- > From: Jim Arnold [mailto:[EMAIL PROTECTED]] > Sent: 16 May 2002 13:00 > To: [EMAIL PROTECTED] > Subject: Re: [DOTNET] Using HttpWebRequest to fill in a webform > > > You'd need to post the viewstate back as well, but why both

Re: [DOTNET] Question regarding remoting...

2002-05-16 Thread Serdar Kilic
Hi Jai, You need to add a reference to the System.Runtime.Remoting.dll On my system this file is in C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705 Jai, said: Jai> Do you have to do anything extra to enable DotNet remoting on your machine. Jai> I was trying a simple remoting application, but th

[DOTNET] Question regarding remoting...

2002-05-16 Thread Jai Kishore
Do you have to do anything extra to enable DotNet remoting on your machine. I was trying a simple remoting application, but the statement using System.Runtime.Remoting.Channel.Tcp is giving me problem as the IDE is not recognizing the Tcp as a namespace. Help me out... Machine config; Win 2000

Re: [DOTNET] Using HttpWebRequest to fill in a webform

2002-05-16 Thread Jim Arnold
You'd need to post the viewstate back as well, but why bother with any of that? Couldn't you write a web service or other remote-callable interface of faking a browser? Jim > -Original Message- > From: Marc Mertens [mailto:[EMAIL PROTECTED]] > Sent: 16 May 2002 12:55 > To: [EMAIL PROTEC

Re: [ADVANCED-DOTNET] Suggestions for VB COM object /.net interop issues

2002-05-16 Thread John St. Clair
Microsoft posted a great article that included this (starting on pg. 40), entitled "Team Development with Visual Studio.NET and Visual SourceSafe". You'll find a downloadable (Word) document at: http://microsoft.com/downloads/release.asp?ReleaseID=35981 It's also available in MSDN; I'll leave th

[DOTNET] Using HttpWebRequest to fill in a webform

2002-05-16 Thread Marc Mertens
Hallo, I'm trying to write a application that automaticall fills in the input fields of a webform and let the webform process this request. More concreat suppose that you have a webform with two input fields and a submit button. If you fill in the fields and press the submit button some proc

Re: [DOTNET] System.Data.OracleClient.OracleConnection

2002-05-16 Thread Kevin Hector
>Has anybody had success yet with the Oracle Managed >Provider connection string? Yes it worked for me. I have 8.1.7 Enterprise Edition installed on my w2k server workstation. Using the default starter db (SID=ORADB1) my connection string is connStr="Data Source=ORADB1;User ID=scott;Password=tig

Re: [DOTNET] ADO.NET multiple table updates

2002-05-16 Thread Chris Anderson
Ok, I've got a workaround, but this *can't* be the right way to do it surely? This is what I'm now doing: Use GetChanges on the parent table If it doesn't return Nothing, I update *this* datatable instead I then manually read the updated PK field value from the 2nd table into the original (which

[DOTNET] Class that inherits from AxWebBrowser can't be placed in Toolbox

2002-05-16 Thread David A.
Hi everybody, Can anybody explain to me, why the following class can’t be placed on the Toolbox? using System; namespace ExWebbrowserControlLibrary { /// /// Zusammendfassende Beschreibung für ExWebbrowserControl. /// public class ExWebbrowserControl : AxSHDocV

[DOTNET] AW: [DOTNET] Thread Debugging...

2002-05-16 Thread Urs Eichmann
My VS.NET IDE has a combobox in the debug toolbar called "threads". I can see all my threads there. BTW, if you set the .IsBackground property of a thread to true, it will end automatically when the main form closes. Regards, Urs -Ursprüngliche Nachricht- Von: Alois Reisinger [mailto:

[DOTNET] Thread Debugging...

2002-05-16 Thread Alois Reisinger
Hi all, Maybe it´s just a trivial question, but I can´t find it :( It my application I make use of threading and such stuff. Sometimes it happens, that I forget about some (?) threads and my Visual Studio does not terminate debugging when I close the main form. So, how can I check which thread

[DOTNET] ADO.NET multiple table updates

2002-05-16 Thread Chris Anderson
I have a dataset consisting of 3 datatables There is one parent table, and 2 child tables I have set up foreign key constraints (with UpdateRule = Rule.Cascade) on the primary key, etc The user populates the parent table with a new record, then populates the child tables, and finally hits updat

Re: [DOTNET] System.Data.OracleClient.OracleConnection

2002-05-16 Thread Raj Chanian
Hi Kevin, I had already tried that, just didn't mention it in the post. Problem is I am still getting the same exception ORA-01017: invalid username/password; logon denied I have tried deleting the VSWebCache, to ensure there was no caching, and I have even checked the browser cache to ensure

[DOTNET] Limit data records via a XML schema

2002-05-16 Thread Jan Dropczynski
Hi, is there a way to limit the amount of data records via a XML schema? I have an application with a dataset that get its schema from a XSD file that is read in on start. After that the data are read in from a XML file. Now I want to limit the amount of data records in the data set to 500. If t