The issue has to do with the actual values. I have client-side code that
'inverses' a sort by mulitplying by (-1) -- hence the need for the hard-
coded values. Server side sprocs look at the enum/int value and switch
accordingly. I want the client and server side to use the same scheme.
A work
No. Definitely not. Allocate buffers of an appropriate size before
calling ReceiveFrom or BeginReceiveFrom. "Appropriate" depends on your
application protocol.
-- arlie
-Original Message-
From: Moderated discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of Alex I
On Mon, 22 Dec 2003 11:29:40 -0500, Howard Hoffman <[EMAIL PROTECTED]>
wrote:
>I have an enum where each value is fixed. E.g.:
>
>public enum SortCodes
>{
> nameColSort = 1,
> nameColSortDesc = -1,
> addrColSort = 2,
> addrColSortDesc = -2,
> ...
>}
>
>'SortCodes' is an arg to a [WebSer
I'm just guessing based on my experience with ActiveX controls
IE does not cache ActiveX controls on a page that expires immediately. To work around
this you have to send the user to a page that
is marked as cacheable and has the ActiveX .CAB on it... then redirect the user to the
next page.
I would avoid this by using a large buffer. There's nothing in the
documentation that suggests that there's a practical limit to the buffer size
(other than 2^32-1 bytes.)
--Jekke
Alex Ivanoff wrote:
> MSDN says:
> "If the datagram you receive is larger than the size of buffer, the
> ReceiveFrom
>> Make sure the control is strong named
It won't help much. IE will again try to load the control constantly,
although in this case it will read only a part of it (to be able to verify
keys, version stamp, etc). But the server roundtrip - and quite a few KB of
data - are still there, and in mos
Howard Hoffman wrote:
> Minor correction.
>
> It's not xsd.exe (MSDataSetGenerator) that is wrong (IMO), but the 'Add /
> Update Web Reference' (in VS.NET 2003) code generator.
I knew what you meant. It's actually the same as WSDL.EXE then. ;)
See my reply to the original post over on the DOTNET
MSDN says:
"If the datagram you receive is larger than the size of buffer, the
ReceiveFrom method will fill buffer with as much of the message as is
possible, and throw a SocketException. If you are using an unreliable
protocol, the excess data will be lost."
Is there a way not to lose any data wi
This is a well known problem that has no real solution. Somebody at
Microsoft must have been smoking something when they did the design specs
for dynamically loadable WinForms controls (sorry folks, can't put it in any
other way - the architecture is simply unusable)
My own solution (and one that
Make sure the control is strong named
-Original Message-
From: Saravana Prasad S <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Sent: Sun, 21 Dec 2003 23:53:33 -0600
Subject: [ADVANCED-DOTNET] How to cache the assembly at client side ??
Hi All,
I have developed a windows control and emb
Minor correction.
It's not xsd.exe (MSDataSetGenerator) that is wrong (IMO), but the 'Add /
Update Web Reference' (in VS.NET 2003) code generator.
Howard
===
This list is hosted by DevelopMentorĀ® http://www.develop.com
Some .NET courses you may be interested in:
If you want to read up on how such cases can be optimised I suggest you do a
search for the "Train" algorithm for garbage collection. I can't remember
where I found them, but there are some very good papers describing it.
Apparently some of the better JVM implementations use it.
Cheers,
Blake
-
[Apologies -- I mistankenly posted this to WinForms. I meant to post here]
I have an enum where each value is fixed. E.g.:
public enum SortCodes
{
nameColSort = 1,
nameColSortDesc = -1,
addrColSort = 2,
addrColSortDesc = -2,
...
}
'SortCodes' is an arg to a [WebService] method:
Btw, the DOTNET-WEB list might be a better forum for this type of
question.
--ola
-Original Message-
From: Moderated discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of Saravana
Prasad S
Sent: Monday, December 22, 2003 12:54 AM
To: [EMAIL PROTECTED]
Subject: [ADVANC
Sorry for flooding the list, but I didn't see that it's a Windows
control we're talking about. The link I sent probably won't help you.
-Original Message-
From: Moderated discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of Saravana
Prasad S
Sent: Monday, December 22,
This will probably get you going.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenre
f/html/cpconoutputcache.asp
-Original Message-
From: Moderated discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of Saravana
Prasad S
Sent: Monday, December 22,
Hi All,
I have developed a windows control and embedded it on an aspx page.
The problem is that the control is getting loaded from the server everytime
the user access the applicaion (There is no large difference between the
time it takes to load initially and on subsequent loads). The cont
17 matches
Mail list logo