Re: [DOTNET] Sockets on one machine?

2002-05-02 Thread Steve Loughran
actually, there is a little complication here, which is sometimes http goes out over the wire if you have 'use a proxy server' turned on and you are calling your box by machine name, rather than localhost. I ended up editing drivers/etc/hosts with the system name to stop my notebook getting horri

Re: [DOTNET] totally deactivate cache?

2002-05-02 Thread Thomas Tomiczek
By no means. You can go pretty far, though - by changing settings in IIS or servig all pages through ah special handler (adding some header lines forbidding caching) you can try to instruct (!) the participating software downstreams (i.e. Proxies, firewalls and browsers) not to cache. You will b

[DOTNET] totally deactivate cache?

2002-05-02 Thread Nicolas Benech
Hello, I would like to totally deactivate the cache for some asp.net/c# pages. For security reasons, I do not want even some of the icons wich are displayed on my pages to be stored in some temporary directory. I've seen ways not to cache a page, in wich the client/proxy will always reload the p

Re: [DOTNET] C# RC4 Encryption Algorithm??

2002-05-02 Thread Valery Pryamikov
Hi, You can interop to CAPICOM. It supports RC4 as one of the encryption algorithms (see CAPICOM_ENCRYPTION_ALGORITHM_RC4). -Valery. -Original Message- From: Wareham, Matt [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 02, 2002 9:16 PM To: [EMAIL PROTECTED] Subject: [DOTNET] C#

[DOTNET] Another important question

2002-05-02 Thread Abhishek Bhattacharya
> Is there some performance comparison available on session object, > httpContext.current.item collection, hidden fields??? > > Thanks in advance > Abhishek You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.

[DOTNET] Real important question

2002-05-02 Thread Abhishek Bhattacharya
Is there some performance comparison available on Hashtable, SortedList and Systems.Collection.Specialized classes like ListDictioanry, stringdictionary etc. Thanks in advance Abhishek You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lis

Re: [DOTNET] Extracting the Title of a Page from CodeBehind?

2002-05-02 Thread Joseph E Shook
I had previously created a sample that displayed all of the controls on a page but I failed to look closely at what was really there. For some reason I thought that the title would not show up in the controls collection but that didn't make sense. So after pulling my head out I pumped out a piec

[ADVANCED-DOTNET] Double-pass exception semantic - why?

2002-05-02 Thread Cristian Diaconu
This is one of those "what if" questions that have been bugging me lately, so if you're not into that kind of conversation, consider yourself fore- warned. I'm trying to understand the possible reasons why filters have been added to .NET. The reason why this question has some relevance (at least

Re: [ADVANCED-DOTNET] Keys in collections

2002-05-02 Thread lucis
> > > If class B is statically known to implement interface A, then the assignment > is known to be correct. This follows since, even if the exact type of b is a > subtype of B, it will inherit the obligation to implement A. The problem > occurs if A and B are apparently unrelated. In the class o

Re: [DOTNET] Dynamic Objects.

2002-05-02 Thread Rolls, Robert
hmm If I wanted to simplicity of late bound calling against an object I'd need reflect emit. The IDispatchEx or just late binding made it seamless to the caller. if the object is created dynamically and passed as Object how do you call the properties (aka late binding) is it not that simple anym

Re: [DOTNET] Extracting the Title of a Page from CodeBehind?

2002-05-02 Thread Joseph E Shook
I noticed in the IDE that the runat attribute is dimmed out in the property window for the tag. I am not sure of the reason. Either way I went with a client side javascript method to pull out the title of my page and place it in the innertext of a DIV tag in a usercontrol that acts as a header

Re: [DOTNET] ASCX vs. ASPX

2002-05-02 Thread Manoj Jain
Hi Richard Could you please suggest what are the guidelines to decide User control I mean How should we decide that a particular functionality should be a User control rather than an .aspx page Are there any performance issues if we are using too many User controls? Regards Manoj Jain -O

Re: [DOTNET] XmlSerializer - how to add an extra element to the xml

2002-05-02 Thread Brian Weeres
That worked perfectly. Just to finish the thread, DeSerializing is very similar I just use reader.ReadStartElement() to skip past the first element and then deserialize my class. Thanks! Brian -Original Message- From: Marsh, Drew [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 02, 2002

Re: [DOTNET] Dynamic Objects.

2002-05-02 Thread Sievert, James A
> also if you implement the > interface and add a few properties - pass the object to a > function how do > you call the new properties! IExpando extends IReflect. If you implement IExpando, you'll also implement IReflect. A target function can use the members of IReflect to find out about, and

Re: [DOTNET] String concatenation performance

2002-05-02 Thread Simon Robinson
Ah. Did some digging around and you're right that StringBuilder.ToString() doesn't allocate a new string - I'd assumed that it would do. That would take your technique of using StringBuilder down to 1 or 2 string allocations, same as Greg's direct approach, meaning there's little to choose between

[DOTNET] Dynamic Objects.

2002-05-02 Thread Rolls, Robert
Hi All, Does anybody have a wrapper around IExpando also if you implement the interface and add a few properties - pass the object to a function how do you call the new properties! Is Expando objects only for COM interop with IDispatchEx? I want to read an XML tree fragment that describes a simp

Re: [DOTNET] DateTime/Calender Questions

2002-05-02 Thread Kirk Jackson
And plus you can't assign null to a DateTime, because System.DateTime is a value-type. Kirk -Original Message- From: Marsh, Drew [mailto:[EMAIL PROTECTED]] Sent: Friday, 3 May 2002 5:48 a.m. To: [EMAIL PROTECTED] Subject: Re: [DOTNET] DateTime/Calender Questions Scott Densmore [mailto

Re: [DOTNET] DropDownList binding

2002-05-02 Thread Shawn Wildermuth
Don't forget the magic that is DataTextFormatField...if you need it. Thanks, Shawn Wildermuth [EMAIL PROTECTED] > -Original Message- > From: dotnet discussion [mailto:[EMAIL PROTECTED]] > On Behalf Of Kirk Jackson > Sent: Thursday, May 02, 2002 9:07 PM > To: [EMAIL PROTECTED] > Subject:

Re: [DOTNET] String concatenation performance

2002-05-02 Thread Erick Thompson
Simon, I only see two string copies. When the StringBuilder is created, the string is copied in (I believe, but I could see an internal optimization that wouldn't copy it). Then, the Insert methods and replace method all act on the StringBuilder, which should occur in-place. The final ToString()

Re: [DOTNET] DropDownList binding

2002-05-02 Thread Kirk Jackson
If you don't specify a DataTextField in the drop down list's properties, then I think it just defaults to calling ToString() on each Data Item. You probably also need a DataValueField. Kirk -Original Message- From: Dawid Greyvenstein [AST EH] [mailto:[EMAIL PROTECTED]] Sent: Thursday

Re: [DOTNET] From C# to VB.NET

2002-05-02 Thread Kirk Jackson
The reason 'using' is useful, is that you don't need to worry about an exception being thrown from your first dispose call (as if there is an exception, you'd still want to call cn.Close) Kirk -Original Message- From: Peter Stephens [mailto:[EMAIL PROTECTED]] Sent: Thursday, 2 May 200

Re: [DOTNET] String concatenation performance

2002-05-02 Thread Simon Robinson
Erick Hate to say this but I'm afraid I don't agree with that. I think that Greg had probably got the most efficient method. Greg uses a Replace followed by a string concatenation. That means he'll have to copy the string either once or twice: Twice if the call to String.Replace() needs to do an

Re: [DOTNET] String concatenation performance

2002-05-02 Thread Chris Anderson
Performance-wise (and security-wise wrt possible sql-injecting hacks) I would use a SQLCommand object and a parameterised query rather than a direct SQL string (therefore removing the requirement for this type of function) Merak > I have the following helper method to format sql string parameter

Re: [DOTNET] String concatenation performance

2002-05-02 Thread Bill Schmidt
Greg, IMHO, your code is pretty efficient. Using a StringBuilder might give you a marginal performance benefit, but it wouldn't be noticeable unless you intend to call this 10's of 1000's of times. It wouldn't hurt to use one, but it would only save you one string creation operation, and only i

Re: [DOTNET] String concatenation performance

2002-05-02 Thread Erick Thompson
This should be faster. I'm not sure about the Insert method as far as performance goes but this method shouldn't cause any unneeded string allocations. However, I'm sure it could be improved on. public static string DoQuotes(string sqlParam) { System.Text.StringBuilder sb = new System.Text.St

Re: [DOTNET] String concatenation performance

2002-05-02 Thread Keith Wedinger
Remember...string objects are immutable so each time you "change" one, you actually end up creating a new one. Use StringBuilder from the System.Text namespace instead. J. Keith Wedinger http://bearcatnews.com http://sciotofootball.com -Original Message- From: dotnet discussion [mailto

[DOTNET] String concatenation performance

2002-05-02 Thread Greg Gates
Hello everyone: I have the following helper method to format sql string parameters: public static string DoQuotes(string sqlParam) { if (sqlParam.IndexOf("'") > 0) { sqlParam = sqlParam.Replace("'","''"); } return "'" + sqlParam + "'"; } Is there a better way, performance-wi

[DOTNET] ListView events

2002-05-02 Thread Richard Kucia
I have a ListView in Details view with Multiselect off. I need to place a ComboBox on top of one subitem within the selected ListViewItem. I can do this easily when the user changes the selection. However, I can't find a simple way to detect when the user scrolls the items (so I can move the Combo

Re: [DOTNET] Returning Stream from Remoting under IIS

2002-05-02 Thread Greg Reinacker
The first thing that comes to mind is to check to see if the ASPNET user on the server have access to read (or write, depending on what you're trying to do) the file you're trying to open... Greg Reinacker Reinacker & Associates, Inc. http://www.rassoc.com -Original Message- From: dotne

Re: [DOTNET] Anyone currently using ACT or WAST to test webservices?

2002-05-02 Thread Greg Reinacker
I've used ACT extensively to test web services. Did you have a particular question you were wondering about? Greg Reinacker Reinacker & Associates, Inc. http://www.rassoc.com -Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of Richards,Tom Sent: Thursday,

Re: [DOTNET] Accessing AS400 data through ado.net

2002-05-02 Thread Tom Archer
On start, yes, but then you no longer need to reopen the connection. Personally, I prefer the lower-level coding of APPC because I like to have that level of control. You'll also note that the faster ODBC drivers (such as Showcase) are implemented using APPC for this reason. -Original Messa

Re: [DOTNET] Accessing AS400 data through ado.net

2002-05-02 Thread Dave Heizer
APPC incurs the same overhead on start up as a opening a connection do to the need to start a new job on the 400 to service the requests. My preference has bee to just hold an open connection over writing the routines to handle the APPC communication. -Original Message- From: dotnet disc

Re: [DOTNET] Accessing AS400 data through ado.net

2002-05-02 Thread Tom Archer
>>> 1) I assume you are not creating a new connection each time you access the 400. 400 connections are very costly to create. If for some reason you must create a new connection all the time, verify that 400 is configured to reuse the prestart jobs handling the connection. <<< This would be o

Re: [DOTNET] Extracting the Title of a Page from CodeBehind?

2002-05-02 Thread Kirk Jackson
You could iterate through the controls of the page, looking for a LiteralControl that contains the and strings - but that's probably not the nicest way to do things! E.g. foreach (System.Web.UI.Control c in this.Controls) { if (c is System.Web.UI.LiteralControl) {

Re: [DOTNET] Accessing AS400 data through ado.net

2002-05-02 Thread Dave Heizer
Some thoughts after many years of squeezing what ever I could 1) I assume you are not creating a new connection each time you access the 400. 400 connections are very costly to create. If for some reason you must create a new connection all the time, verify that 400 is configured to reuse the

Re: [DOTNET] Accessing AS400 data through ado.net

2002-05-02 Thread Tom Archer
Sorry. Obviously it's Showcase Corp (not Showtime :) that makes the ODBC drives for the AS/400 -Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]]On Behalf Of Tom Archer Sent: Thursday, May 02, 2002 5:31 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Accessing AS400 da

Re: [DOTNET] Accessing AS400 data through ado.net

2002-05-02 Thread Tom Archer
It's been a few years since I developed on the 400, but other ways that I retrieved data for both Windows and OS/2 were the following: APPC (don't know if you have this skill set in house, but I thought I'd mention it) PC Support API (this was used for OS/2 clients, so you'll need to check to see

Re: [DOTNET] Accessing AS400 data through ado.net

2002-05-02 Thread Tom Archer
Have you looked at some of the other ODBC drivers for the 400 - such as Showtime or Wall Data? -Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]]On Behalf Of Christopher Castelot Sent: Thursday, May 02, 2002 4:30 PM To: [EMAIL PROTECTED] Subject: [DOTNET] Accessing AS4

[DOTNET] Accessing AS400 data through ado.net

2002-05-02 Thread Christopher Castelot
Hi all, I work in an environment which has most inventory and distribution data on an AS400. The company also has an Oracle 8i database for client server apps and web based business. For all intents and purposes the Oracle database is a mirror of the 400. However, all data is entered on to the 40

Re: [DOTNET] XmlSerializer - how to add an extra element to the xml

2002-05-02 Thread Christoph
I can't think of anything to create nodes outside the scope of the object you're serializing. You can always manually insert it into your XML output stream: public static void DoIt( TestClass obj ) { XmlTextWriter writer = new XmlTextWriter( "file.xml", Encoding.UTF8 ); XmlSerializer s

Re: [DOTNET] XmlSerializer - how to add an extra element to the x ml

2002-05-02 Thread Marsh, Drew
Brian Weeres [mailto:[EMAIL PROTECTED]] wrote: > I am trying to add an additional element in my xml when > serializing a class using XmlSerializer but I cannot figure > out how to do it. I *believe* this can be achieved by using on of the XmlSerializer::Serialize overloads which take an XmlWrite

[DOTNET] ANN: Free RegexDesigner.NET tool

2002-05-02 Thread Chris Sells
RegexDesigner.NET [1] is a powerful visual tool for helping you construct and test .NET Regular Expressions. When you are happy with your regular expression, RegexDesigner.NET lets you integrate it into your application through native C# or VB.NET code generation and compiled assemblies (usable fr

Re: [DOTNET] XmlSerializer - how to add an extra element to the xml

2002-05-02 Thread Rama Krishna
Try public class TestClass { public TestClass() { } [XmlAttributeAttribute] public string ClassID = "123"; public string Name = "Bob"; [XmlElement]

[DOTNET] XmlSerializer - how to add an extra element to the xml

2002-05-02 Thread Brian Weeres
I am trying to add an additional element in my xml when serializing a class using XmlSerializer but I cannot figure out how to do it. Here is my class. public class TestClass { public TestClass() { } [XmlAttributeA

Re: [DOTNET] Extracting the Title of a Page from CodeBehind?

2002-05-02 Thread Mathieu Rachlin
Joseph, Does ASP.NET not expose the actual page as an object? I believe it is simply called "Page". You could do something like: Sub Page_Load Dim oControl as LiteralControl For Each oControl In Page.Controls If (UCase(Left(oControl.Text, 7)) = "") Then

Re: [DOTNET] Extracting the Title of a Page from CodeBehind?

2002-05-02 Thread Mathieu Rachlin
My bad... I didn't see this post. (I even forgot the Runat="Server".) Feel free to delete! -Original Message- From: Patten, Dave [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 02, 2002 3:59 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Extracting the Title of a Page from CodeBehind? H

Re: [DOTNET] C# RC4 Encryption Algorithm??

2002-05-02 Thread Jason Bock
>Greetings, > >We are currently using Mike Shaffer's RC4 Stream Encryption algorithm in >classic ASP to encrypt cookie data. With the need to run classic ASP and >ASP.NET at the same time, we would like to use the same encryption >algorithm. > >I don't see that the framework has RC4 built in. Si

[DOTNET] VS.Net demo question

2002-05-02 Thread Reggie Burnett
Ok, my vs.net professional demo expired a couple of days ago and I am about 7 days away from having my MSDN universal up and running and I am having some issues with vs.net. I am trying to keep it running as long as I can to avoid the inevitable! :-D Ok, now when I edit a C# source file the synt

Re: [DOTNET] HTTP Compression of XML WebServices

2002-05-02 Thread Joel Mueller
That's interesting, but I suppose it makes a kind of sense, since the binary serialization for a DataSet sneakily does XML serialization under the covers before it can even start writing to the binary stream. That's unfortunate. > -Original Message- > From: dotnet discussion [mailto:[EMA

Re: [DOTNET] Extracting the Title of a Page from CodeBehind?

2002-05-02 Thread Patten, Dave
That a known Bug? It should not be removing the RunAt... Why should it? I never use Design view for HTML in the IDE, only HTML View. Experienced way too many problems through the Betas/RCs. -Original Message- From: Joseph E Shook [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 02, 20

[DOTNET] Windows Forms Memory optimization..?

2002-05-02 Thread Koneti, Lakshmi_Prasad
Hi, Is there any way I could optimize the memory utilization by a simple system tray application built using Windows Forms..? The thing I figured out is, I've an option in the context menu to open an form. When I minimize the form , the actual usage of ram memory is drastically decreased with in

Re: [DOTNET] HTTP Compression of XML WebServices

2002-05-02 Thread franklin gray
Joellook what I have found. Interesting test results. All done with a dataset with 2 rows with 8 columns. Binary Serialize Takes 30 secs and uses about 115 meg memory Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Re: [DOTNET] Extracting the Title of a Page from CodeBehind?

2002-05-02 Thread Mathieu Rachlin
Hi there, I have not yet created any ASP.NET pages, let alone codebehind, but I'm wondering if you can't just assign the tag an ID attribute. Would this not expose the tag in your codebehind as a generic HTML object (HTMLGenericControl)? You could then have something like: given: This is my

Re: [DOTNET] Extracting the Title of a Page from CodeBehind?

2002-05-02 Thread Joseph E Shook
That is a nice solution. It works. But Visual Studio removes the runat attribute when switching between HTML and Design view. Also I would still like to extract the title from codebehind without having to add attributes. I could just put a constant in each page but this has turned into a perso

Re: [DOTNET] remoting vs. web services

2002-05-02 Thread Mattias Konradsson
> Can you tell me the fundamental differences between Remoting and Web > Services? Why would you prefer to use one over the other? Is one a sub-set > of the other? Yah, it's a bit confusing, why they didn't call it Net services I don't know. Probably IBM didn't want people to think it was ".Net"

Re: [DOTNET] Extracting the Title of a Page from CodeBehind?

2002-05-02 Thread Patten, Dave
Html: Page Title Code Behind: protected HtmlGenericControl PageTitle; private void Page_Load(object sender, System.EventArgs e) { // get or set PageTitle.InnerText = "New Title"; } -Original Message- From: Joseph E Shook [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 0

Re: [DOTNET] HTTP Compression of XML WebServices

2002-05-02 Thread Peter Waldschmidt
You get no benefit by using the binary formatter to serialize a dataset. Unfortunately, the ISerializable interface on the DataSet is implemented by generating XML and saving it to the SerializationInfo object. So, all you get is a binary wrapper around an XML dataset. It's not any smaller. I l

[DOTNET] Extracting the Title of a Page from CodeBehind?

2002-05-02 Thread Joseph E Shook
Does anyone have a clever way of extracting the title of a page in the codebehind? I am talking about the tile that is resident in the following html tags: Page Title . You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other D

Re: [ADVANCED-DOTNET] Keys in collections

2002-05-02 Thread Sean Greer (SBI-Chico)
I was wondering this as well, then I read John Gough's excellent "Compiling for the .NET CLR" [1] and he answered the question. The main problem is with non-sealed classes and their subtypes. Given that you can generate a class at runtime, having all casts statically checked at compile-time woul

[DOTNET] C# RC4 Encryption Algorithm??

2002-05-02 Thread Wareham, Matt
Greetings, We are currently using Mike Shaffer's RC4 Stream Encryption algorithm in classic ASP to encrypt cookie data. With the need to run classic ASP and ASP.NET at the same time, we would like to use the same encryption algorithm. I don't see that the framework has RC4 built in. Since I do

Re: [DOTNET] HTTP Compression of XML WebServices

2002-05-02 Thread Chris Kinsman
I have seen a SoapExtension that used NZipLib to do compression/decompression on both client and server sides. I didn't write it so I can't pass it out freely. I will have to leave that up to the author. SoapExtensions are definitely the way to go in this case... You can read messages from the

Re: [DOTNET] HTTP Compression of XML WebServices

2002-05-02 Thread Joel Mueller
Oh, now this is interesting: If I open up the binary file created by the binary serialization of a DataSet in notepad, the contents of the file are XML! That's really odd; I know for a fact that other types don't produce XML during binary serialization. No wonder the size of the uncompressed binar

Re: [DOTNET] HTTP Compression of XML WebServices

2002-05-02 Thread Joel Mueller
Here's an example for you that does binary serialization of a DataSet, compressing the serialized stream on the fly. On my system, the uncompressed XML from the DataSet is 31,253 bytes, the uncompressed binary version of the dataset is 30,804 bytes, and the compressed binary version is 3,841 bytes

Re: [DOTNET] Adding site to Trusted Sites @ Machine level

2002-05-02 Thread Chris Kinsman
If you figure it out I would love to know how. We have been stymied by this also... You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

Re: [ADVANCED-DOTNET] Transaction Enlistment

2002-05-02 Thread Craig Andera
> I am designing an n-tier system that (for the forseeable > future) will only ever write to one database. > > I have previously used C++ and COM+ to manually enlist pooled > objects into the current transaction (if there is one) for > distributed transactions using OLE DB. (Using ITransactionJoin

Re: [DOTNET] HTTP Compression of XML WebServices

2002-05-02 Thread franklin gray
ohwell that makes things a little different. I guess I should have asked about that sooner:-( Thanks for the info. It might come in very handy. I am still playing with the binary serializtion of a Dataset because I have noticed that for large datasets, it can take a while to create the

Re: [DOTNET] How does ASP.NET interpret tilde (~) in path names?

2002-05-02 Thread Fritz Onion
> I've seen this all over: > >Page.LoadControl("~/DesktopModules/SignIn.ascx") > > What does the "~" do? It's a short-cut to the virtual root for that application. Very convenient to create directory-independent references to pages, images, etc. You can also use it in server-side controls, l

Re: [DOTNET] How does ASP.NET interpret tilde (~) in path names?

2002-05-02 Thread Rama Krishna
~ stands for HttpRuntime.AppDomainAppVirtualPath -Original Message- From: Murphy, James [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 02, 2002 2:05 PM To: [EMAIL PROTECTED] Subject: [DOTNET] How does ASP.NET interpret tilde (~) in path names? I've seen this all over: Page.LoadCont

Re: [DOTNET] HTTP Compression of XML WebServices

2002-05-02 Thread Joel Mueller
Another option would be to do a binary serialization of the dataset, passing the serialization output through the NZipLib compression stream to a MemoryStream, and returning a byte array from the MemoryStream. That ought to allow for even better compression, because you're not compressing XML tags

[DOTNET] How does ASP.NET interpret tilde (~) in path names?

2002-05-02 Thread Murphy, James
I've seen this all over: Page.LoadControl("~/DesktopModules/SignIn.ascx") What does the "~" do? Jim You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

Re: [DOTNET] Webservice to existing object?

2002-05-02 Thread Marsh, Drew
Erskine, Bill [mailto:[EMAIL PROTECTED]] wrote: > If I were not to publish my object through remoting, is there > any way to get a handle on an instance of an object that is > running in an existing thread, and call methods on that > instance of the object? Is this even possible? Are you asking

[DOTNET] Intellisense

2002-05-02 Thread Richard Spence
I've noticed Intellisense doesn't appear to work when programming ASP.Net user Controls. Perhaps I've omitted something. If so I would appreciate your help. Below is a snippet of my User Control file. <%@ Import Namespace="System.Web" %> <%@ Import Namespace="System.Web.UI.WebControls" %> <%@ Im

Re: [DOTNET] Webservice to existing object?

2002-05-02 Thread Erskine, Bill
I apologize, I changed gears on you and I wasn't specific in my question. Although, this was a good answer to what I unintentionally asked. ;-) Let me try again. If I were not to publish my object through remoting, is there any way to get a handle on an instance of an object that is running in

Re: [DOTNET] DateTime/Calender Questions

2002-05-02 Thread Marsh, Drew
Scott Densmore [mailto:[EMAIL PROTECTED]] wrote: > Well null would be ok.. But null logic with dates is a PITA > and I really don't want to go down that road since you could > have something (well in our case) that looks like this Instead of null use DateTime.MaxValue. Sure, you lose one 100 na

Re: [DOTNET] HTTP Compression of XML WebServices

2002-05-02 Thread Marsh, Drew
From: Carl Schei [mailto:[EMAIL PROTECTED]] wrote: > Essentially I need a handle to the response stream that arrives on the client side. > I can't seem to find any way of hooking into this process? The web proxy doesn't > seem to allow one to chain into the response before it processes it. Actua

[DOTNET] Crystal Reports-Inheriting from autogenerated class

2002-05-02 Thread Greg Gates
Hello everyone: I am using a technique whereby I create a class that inherits from the autogenerated class that Crystal Reports creates. I do this so I can create custom constructors and add other code behind the report as needed. Is anyone aware of problems associated with inheriting from an a

Re: [DOTNET] DateTime/Calender Questions

2002-05-02 Thread Scott Densmore
Well null would be ok.. But null logic with dates is a PITA and I really don't want to go down that road since you could have something (well in our case) that looks like this Price3 - overrides price2 but based on price Price2 -- overrides price Price

Re: [DOTNET] HTTP Compression of XML WebServices

2002-05-02 Thread Robert Isaacs
The way you are doing this seems like a lot of work. I take the xml representation of the dataset and compress it into a byte array using NZipLib. The web service returns a byte array. On the client side, I then take the byte array, uncompress it into Xml, and then reinstantiate the dataset f

Re: [DOTNET] XMLSerialisation options...

2002-05-02 Thread Marsh, Drew
Brian Weeres [mailto:[EMAIL PROTECTED]] wrote: > I must be doing something wrong but I can't get rid of the > xmlns: Brian, Hey sorry, should have provided a sample. You need to Add an empty namespace to the XmlSerializerNamespaces object like so: XmlSerializerNamespaces namespaces = new XmlS

Re: [DOTNET] remoting vs. web services

2002-05-02 Thread Kevin Burton
Ingo, Thank you for the clarification. I guess I was just looking for an 'if(clientPlatform == ".NET")' clause when the server platform is not .NET. I can see what you mean now. Kevin Burton .NET Common Language Runtime Unleashed -Original Message- From: Ingo Rammer [mailto:[EMAIL PROTE

Re: [DOTNET] Hosting the browser in a WinForms application

2002-05-02 Thread Ted Faison
For full information on reusing and customizing the WebBrowser in a C# Windows Form, you might want to check out the new book "Component-based Development with Visual C#". It has an entire chapter devoted to WebBrowser reuse. You can find the book at http://www.amazon.com/exec/obidos/ASIN/0764549

[DOTNET] HTTP Compression of XML WebServices

2002-05-02 Thread Carl Schei
Hi There, I am trying to generically compress data between a thick windows client and a web service (thanks to http://discuss.develop.com/archives/wa.exe?A2=ind0203A&L=DOTNET&P=R47498) In order to do this I have created an HttpModule that adds a compression filter to the response stream. All loo

[DOTNET] Returning Stream from Remoting under IIS

2002-05-02 Thread Tewari, Vijay
I am attempting to return a stream object from a remote object (using remoting but hosted under IIS). I basically give a filename from the client and expect to get a stream on that file. I fully aware that this is as bad idea from security but this is a proof of concept and not a "REAL" solution.

Re: [DOTNET] Anyone currently using ACT or WAST to test webservices?

2002-05-02 Thread Curtis Koppang
We tried touse WAST, but had some issues because it ~seemed~ to be choking on the mime type (XML) we were specifying. Unfortunately, I did not pursue it any further because something else came up. It's my intent to though, so I would be very interested in anything you found out with regard to WA

Re: [DOTNET] DateTime/Calender Questions

2002-05-02 Thread franklin gray
Does null cause a problem? I remember doing something like that and having to use a large date, but I can't remember why null wouldn't work. -Original Message- From: Scott Densmore [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 02, 2002 12:13 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNE

Re: [DOTNET] XMLSerialisation options...

2002-05-02 Thread Brian Weeres
<< Absolutely. You can pass an unconfigurad XmlSerializerNamespaces instance to the Serialize call to control this. >> I must be doing something wrong but I can't get rid of the xmlns: ... by doing what is suggested. Here is my code to serialize to a string: XmlSerializer serializer = new XmlS

[DOTNET] Dataset problem

2002-05-02 Thread Richard Grimes
I have tried every combination I can think of, but I cannot get this to work. Has anyone got any suggestions? When I run this code I get the three statements under the element and not under the element. Richard www.grimes.demon.co.uk #using #using #using #using using namespace System;

Re: [DOTNET] remoting vs. web services

2002-05-02 Thread Ingo Rammer
Kevin, No, I only said that if the server platform isn't .NET you might be looking at a Java server instead ;-). This wasn't meant to say .NET's better or worse than Java. I worked with both of them for some time ... -Ingo Author of "Advanced .NET Remoting" http://www.dotnetremoting.cc > -

Re: [DOTNET] DateTime/Calender Questions

2002-05-02 Thread Scott Densmore
I hope not! We are just trying to represent something that never ends... (all date logic driven stuff) and 9998 looks strange... Thanks, scott -Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of Mathieu Rachlin Sent: Thursday, May 02, 2002 12:05 PM To: [EMA

Re: [DOTNET] DateTime/Calender Questions

2002-05-02 Thread franklin gray
I do. I am going to clone me and do a brain transplant :-) -Original Message- From: Mathieu Rachlin [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 02, 2002 12:05 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] DateTime/Calender Questions Do you plan on being around that long? - Mat

Re: [DOTNET] dataset.GetChanges on deleted rows

2002-05-02 Thread franklin gray
I found something that will work but I really wish the GetXML would get it for me because now I have to write my own GetXML function for deleted recs. Note down at the bottom I have... Dim R As DataRowView, C As DataColumn For Each R In V For Each C In V.Table.Columns

Re: [DOTNET] DateTime/Calender Questions

2002-05-02 Thread Mathieu Rachlin
Do you plan on being around that long? - Mat -Original Message- From: Scott Densmore [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 02, 2002 12:13 PM To: [EMAIL PROTECTED] Subject: [DOTNET] DateTime/Calender Questions So why does the calendar control only go to 12/31/9998? What is the

Re: [DOTNET] remoting vs. web services

2002-05-02 Thread Kevin Burton
Ingo, If the server platform is not .NET are you saying that Java is faster, better, easier? I have built remoting applications that talk HTTP/SOAP with non-.NET servers and it seems to work fine. Kevin Burton .NET Common Language Runtime Unleashed -Original Message- From: Ingo Rammer [

Re: [DOTNET] Webservice to existing object?

2002-05-02 Thread Ingo Rammer
Hmmm ... I assume that what you're trying to achieve is to get the URL you used to publish a specific object, right? This isn't supported as such but you could instead publish another object which will be used to return the URL of the object you' re looking for. In this case, you must however pu

Re: [DOTNET] Webservice to existing object?

2002-05-02 Thread Erskine, Bill
Thanks Ingo! This looks like it might do the trick! One last question, could I do something wacky such as enumerating the threads on the machine and get the handle for the object out of the appropriate thread? I'd rather not do it this way, but just checking to see if it could be done. -Ori

Re: [DOTNET] dataset.GetChanges on deleted rows

2002-05-02 Thread franklin gray
Yes, I agree that I have a dataset with two rows in it, but a dataset with two rows in it doesn't do me any good if I can't get to the data. I am not using the data adapter to delete the rows from the DB, we are doing something different with the rows, but I need to know what the rows are. Th

Re: [DOTNET] W2k SP3 - when?

2002-05-02 Thread Willy Denoyette
http://www.microsoft.com/windows2000/downloads/recommended/q313582/default.asp Willy. - Original Message - From: "Thomas Tomiczek" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 02, 2002 4:23 PM Subject: Re: [DOTNET] W2k SP3 - when? > Which I do get where? > > > Regard

Re: [DOTNET] remoting vs. web services

2002-05-02 Thread Ingo Rammer
> But what about the differences between remoting (with soap > over http) and web services? When doing SOAP, ASP.NET Web Services is faster in most cases because of the document style encoding. Remoting uses a RPC-Style SOAP encoding which is slower ... HTH, -Ingo Author of "Advanced .NET Remot

Re: [DOTNET] DateTime/Calender Questions

2002-05-02 Thread Jim Arnold
Actually, I think (I ran into this a while ago) it goes to Novemeber - reason being that in order to display December , it has to display the first few days of January 1. It's really the DateTime struct that craps out as a result, not the Calendar. Jim > -Original Message-

Re: [DOTNET] dataset.GetChanges on deleted rows

2002-05-02 Thread Jim Arnold
If you change this: DataTable delCustTbl = dataSet.Tables["Customers"]; to this: DataTable delCustTbl = delDataSet.Tables["Customers"]; Shawn's code works. I get two rows. Plus, if you call GetChanges() and no rows with a matching RowState are found, you get a null reference back, not an emp

  1   2   >