Asynchronous calls
Hi all,
Is there a way to cancel an asynchronous call?
For example, using the Socket class, if you call BeginReceive, can you
cancel the call if some timeout has expired?
Thank you in advance for your help Tag: Using The Equivalent Of 'On Error Resume Next' In A Try/Catch Tag: 62893
UNINSTALLING VISUAL STUDIO.NET 2002 Pro
I am trying to Uninstall The VS.NET 2002 Pro and it tels
me <there was an error processing setup data files. Please
Contact product support if this problem persists.> i click
ok and then <A problem has been encountered while loading
the setup components. Canceling setup.> and i click again
ok and nothing happens . How can i remove it from my
computer? Tag: Using The Equivalent Of 'On Error Resume Next' In A Try/Catch Tag: 62892
Reference problems & custom controls disappearing
Hi all,
I really hope someone out there can help me as I've been tearing my
hair out on this one for a good while and I'm getting really
frustrated now!
My problem is this - my custom controls periodically disappear from my
project when I build it. First of I get the message about a missing
dependency, then if I rebuild after that - the control just physically
disappears from the form, and I get an object not found error when I
run, (though sometimes when I rebuild the control can reappear)
My background - I'm working in a small team of developers, we are
using vb.net in visual studio with visual source safe.
As I've said I've been battling with this for a while and have done
some reading on this - I know that it is to do with references.
Therefore I am trying to do what all the Microsoft articles I've read
recommend with regard to references: - setting copy to local = true,
using project references not file references, and setting the build
order but to no avail. (Incidentally I still get this problem when
using file references).
Some more information - the custom controls are using a data access
object, and this data access object is also being used by another
object which the main form also uses. It is the reference to this data
access object that is the one that that I get the message about the
missing dependency.
Please help - now to add insult to injury - I can not now even re-add
my custom control from the toolbox. I can put it into the toolbox but
when I try to drag it from the toolbox on to the form on nothing
happens- not even a warning message.
Many thanks
Suzanne Tag: Using The Equivalent Of 'On Error Resume Next' In A Try/Catch Tag: 62891
HELP - ".Net" user interface under Internet Explorer.. what to do ?
Hello all,
Once windows mmi programming was very easy - vb forms.. nice & easy.
nowdays, our customers have became IE freaks !!!
So, my question is, what is the best way to develop mmi in the ".Net"
environment, over an intranet / lan environment.
the first alternative is "Asp.Net".. though Microsoft is trying to
push it very hard, to me the idea seems to be very wrong. I think
that client code should be seperated from server code. Mixing client &
server code (without even mentioning screen refreshe issues) does not
feel right to me and my co-workers.
The second alternative is pure html code (+xml islands). I dont like
this idea... developing html in the 21 century seems a bit retro and
difficult.
My last alternative is ".Net Winforms" under IE. does anoyone has
experience with this alternative? theoreticly it seems to be a perfect
idea..
is it?
Thanks in advance,
Eran Eldor Tag: Using The Equivalent Of 'On Error Resume Next' In A Try/Catch Tag: 62888
When is it unsafe to use static members in your class?
Hi all,
I understand the concept of static fields and members
inside a class and the fact that static members belong to
the class rather than to an instance of the class.
I also understand that each class that calls a static
member of another class takes a copy of that member into
its own thread and therefor it's safe to call a static
member concurrency wise.
I have 3 questions though:
1. Are my above understandings correct?
2. when is it unsafe to call/use static members in a class
3. when should one use static members and when shouldn't
he?
Any info would be greatly appreciated! Tag: Using The Equivalent Of 'On Error Resume Next' In A Try/Catch Tag: 62886
BUG or BY DESIGN? Filehandling on .NET is not windows compatible for NTFS and FAT
Hi,
On the file handling methods, if you are dealing with files (Windows
filesystem is case INSENSITIVE) yet when you specify file A.BLAH and its
a.blah on windows, you get FileNotFoundException.
If this by design for cross platform and different file systems or a bug?
Shouldnt this be defaulting to INSENSITIVE instead of SENSITIVE on windows
NTFS (for FATxx for that matter)?
Thanks. Tag: Using The Equivalent Of 'On Error Resume Next' In A Try/Catch Tag: 62885
TCP/IP app Desgin Question
this is a question on how to design an TCP Listener application.
background:
There will be several threads that listen on several ports (one per port).
when another app requests to connect, the connection will be accepted. then
messages will be received and passed to the main thread via a delegate or
event for processing. Messages will also be sent in return to the other
application in an asynchronous manner.
Questions:
1) from what it seems to me, delegates are thread safe but events are not.
is this true? should i use delegates to call back to the main thread rather
than events?
2) what is a clean way to have the main thread pass a message to a listener
thread to write messages? (a reverse call back)
thanks for your help
m Tag: Using The Equivalent Of 'On Error Resume Next' In A Try/Catch Tag: 62882
.net framework-newbie
I'm a .Net learner.I've got few questions to ask.could
anyone please help me out?
What exactly is .Net framework ? What is .Net framework
SDK?
Is there any difference between environment and platform?
If so,what?(few examples)
What are the components of Visual studio.net?
What are the .Net web development tools?
thnaks in advance,
reiks Tag: Using The Equivalent Of 'On Error Resume Next' In A Try/Catch Tag: 62874
Trace Switch Issue
Hi,
I'm having a strange problem with the BooleanSwitch loaded
from a config file.
<!-- The config file -->
<configuration>
<system.diagnostics>
<switches>
<add name="switchOn" value="1" />
</switches>
<trace autoflush="false" indentsize="4">
<add name="TextListener"
type="System.Diagnostics.TextWriterTraceListener, System"
initializeData="trace.log" />
</trace>
</system.diagnostics>
</configuration>
// The code
BooleanSwitch s = new BooleanSwitch("switchOn", "bla");
Console.WriteLine(s.Enabled);
s.Enabled is always false, regardless the value in config
file. If I remove the trace element from the config file,
s.Enabled is initialized correctly according to its value.
I've tried the different permutations of full type name
for the TextWriterTraceListener:
type="System.Diagnostics.TextWriterTraceListener, System,
version=1.0.5000.0, culture=neuture,
PublicKeyToken=b77a5c561934e089"
But the result is always the same. I'm using VS.NET 2003
with .NET Framework 1.1 on Windows XP. Does anyone have
the same problem? Any solutions?
Thanks,
Donald Xie Tag: Using The Equivalent Of 'On Error Resume Next' In A Try/Catch Tag: 62872
.aspx page will not run
For some reason my web server does not recognize .aspx
pages. I get this error: A dynamic link library (DLL)
initialization routine failed.
It's a stand alone W2k server with IIS 5.0.
Thanks Tag: Using The Equivalent Of 'On Error Resume Next' In A Try/Catch Tag: 62865
Extracting .NET framework 1.1 failed
I'm trying to extract the files from the dotnetfx.exe file
with the /T:<path> and /C switches, but every time I try,
it pops up an error saying "Extracting file failed. It is
most likely caused by low memory (low disk space for
swapping file) or corrupted Cabinet file." I've downloaded
and tried it on two different PC's and I'm constantly
getting the same error.
Thanks. Tag: Using The Equivalent Of 'On Error Resume Next' In A Try/Catch Tag: 62863
What's my Mode?
What might be the best way to detect in code whether (C#)
system is in design mode or running? In other words, how
to tell the system if I want something to happen in a
control constructor when I am dropping the control onto a
form, but don't want it to happen when the control is
initialized in a running form.
Thanks! Tag: Using The Equivalent Of 'On Error Resume Next' In A Try/Catch Tag: 62861
Namespace Security
Is there any way to secure a Namespace so that it can only be accessed from
a designated Namespace? I believe there is a way but cannot locate the
exact sytax to do so.
Thanks Tag: Using The Equivalent Of 'On Error Resume Next' In A Try/Catch Tag: 62860
Regex - NFA, DFA, POSIX - seeking clarification
The framework help says: "Microsoft .NET Framework regular expressions incorporate the most popular features of other regular expression implementations such as those in Perl and awk. Designed to be compatible with Perl 5 regular expressions, .NET Framework regular expressions include features not yet seen in other implementations, such as right-to-left matching and on-the-fly compilation."
Perl is traditional NFA (non-POSIX), while awk (and most of its derivatives) are DFA (which are mostly POSIX anyway), so the help is a little ambiguous regarding the nature of Regex's engine
..NET's Regex doesn't (seem) to implement the POSIX longest-leftmost mandate. Jeffrey E. F. Friedl explains this mandate using the expression "(to|top)(o|polo)?(gical|o?logical)" and an input of "topological" (ignore the quotes)
A POSIX engine would be expected to return "top", "", and "ological" for the subexpressions (see Mr. Friedl's book for an explanation of why). However, .NET's Regex returns "to", "polo", and "gical"
So, is it NFA, DFA, semi-POSIX, or ...? Or, am I doing something wrong (a real possibility)
Thanks in advance for any additional info or resources you might provide Tag: Using The Equivalent Of 'On Error Resume Next' In A Try/Catch Tag: 62859
How to create SSL socket?
Does anyone know how to create an SSL socket using the .NET Framework?
Jon Tag: Using The Equivalent Of 'On Error Resume Next' In A Try/Catch Tag: 62856
Shortcut
I am development an application in C# and i want to know
this:
How can i create a new sortcut for a file having the path
of that file.
Thanks. Tag: Using The Equivalent Of 'On Error Resume Next' In A Try/Catch Tag: 62853
Register Primary Interop Assembley
I have a Windows Form app that uses the Windows Media Player Active-X
control. It works fine on my development machine, but on a client computer
the app crashes becuase the wmppia.dll hasn't been registered and installed
in the global assembly cache. I 've looked around and can't find a way to
automaticlly register the wmppia.dll during installation.
So as a test, I followed the instructions the do it manually on a
non-development machine that had Framework 1.1.4322 on it. I can "regasm
c:\Program Files\MyProgram\wmppia.dll" with no problem. But the Global
Assembly Cache installer; Gacutil.exe is missing. Isn't this supposed to
come with the Framwork? If not, how can I expect my end users to have it?
My question goes back to my origional thought: How can I set up my
installer to automaticlly register and install the wmppia.dll to the Global
Assembly Cache?
thanks Tag: Using The Equivalent Of 'On Error Resume Next' In A Try/Catch Tag: 62850
Question - >net framework 1.1 install without admin rights
Hi, is it possible to install .net framework 1.1
redistributable without administrator privileges.
Thanks .... Joe Tag: Using The Equivalent Of 'On Error Resume Next' In A Try/Catch Tag: 62849
File stuck open after ThreadAbortException
Hello,
I am having a problem in which a file can get stuck open when a thread
that is attempting to write to it gets aborted (ThreadAbortedException
occurs). The log file gets stuck open until the process is shut down
(cannot delete file from Windows Explorer, for example). My test
application stops execution with: An unhandled exception of type
'System.IO.IOException' occurred in mscorlib.dll Additional
information: The process cannot access the file "c:\abort_test.txt"
because it is being used by another process.
I figured I was not closing things properly, but I think I'm OK. I
created a simple test application and am still stumped. Here's my code
(added to a visual studio.net 2003 Windows application):
public static void ThreadProc()
{
// Just keep writing to the log file until thread gets aborted
for (; true;)
{
try
{
using ( FileStream fs = File.Open(@"c:\abort_test.txt",
FileMode.Append,FileAccess.Write))
{
using (StreamWriter sw = new StreamWriter(fs))
{
sw.WriteLine(DateTime.Now.ToString()+" A line of text");
}
}
}
catch (ThreadAbortException e)
{
using ( FileStream fs = File.Open(@"c:\abort_test2.txt",
FileMode.Append,FileAccess.Write))
{
using (StreamWriter sw = new StreamWriter(fs))
{
sw.WriteLine(DateTime.Now.ToString()+ e.Message + "--" +
e.StackTrace);
}
}
}
Thread.Sleep(0);
}
}
private void Form1_Load(object sender, System.EventArgs e)
{
// Sometimes code aborts in non-harmful places, so loop enough
times to almost guarantee a problem
for (int i = 0; i < 10; i++)
{
Thread t = new Thread(new ThreadStart(ThreadProc));
t.Start();
Thread.Sleep(1000);
t.Abort();
t.Join();
}
}
Here's the contents from my c:\abort_test2.txt:
11/14/2003 3:43:02 PMThread was being aborted.-- at
Microsoft.Win32.Win32Native.CreateFile(String lpFileName, Int32
dwDesiredAccess, FileShare dwShareMode, SECURITY_ATTRIBUTES
securityAttrs, FileMode dwCreationDisposition, Int32
dwFlagsAndAttributes, IntPtr hTemplateFile)
at Microsoft.Win32.Win32Native.UnsafeCreateFile(String lpFileName,
Int32 dwDesiredAccess, FileShare dwShareMode, SECURITY_ATTRIBUTES
securityAttrs, FileMode dwCreationDisposition, Int32
dwFlagsAndAttributes, IntPtr hTemplateFile)
at System.IO.FileStream..ctor(String path, FileMode mode,
FileAccess access, FileShare share, Int32 bufferSize, Boolean
useAsync, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode,
FileAccess access, FileShare share)
at System.IO.File.Open(String path, FileMode mode, FileAccess
access, FileShare share)
at System.IO.File.Open(String path, FileMode mode, FileAccess
access)
at TestFileAbortProblem.Form1.ThreadProc() in
c:\programs\dotnet\testing\testfileabortproblem\testfileabortproblem\form1.cs:line
98
Any ideas on how I can make sure the file gets closed or how I can
prevent the ThreadAbortException exception from being thrown during
file manipulation?
Thanks in advance,
Mark Tag: Using The Equivalent Of 'On Error Resume Next' In A Try/Catch Tag: 62847
Unhandled Exception handler
I'm trying to install an UnhandledException handler in a Console
application. I have done the following as the first few lines of code in
Main:
AppDomain currentDomain = AppDomain.CurrentDomain;
currentDomain.UnhandledException += new
UnhandledExceptionEventHandler(HandleTheException);
Then my handler is defined:
public static void HandleTheException ( object sender,
UnhandledExceptionEventArgs e )
{
Console.WriteLine ( "Exception: {0}",
(Exception)e.ExceptionObject).Message );
Console.ReadLine ( );
}
When an UnhandledException is thrown and I have the JIT debbugging options
all UN checked I still get a dialog that has "Common Language Runtime
Debugging Services" in the title bar and a message saying that the
application has generated an exception that could not be handled. Click OK
to terminate that application or Click CANCEL to debug the application. If
I click OK then my handler gets invoked.
Is there any way to disable this dialog box? I just want my handler to do
all the work with no other dialogs.
Thanks
Ken Tag: Using The Equivalent Of 'On Error Resume Next' In A Try/Catch Tag: 62845
Question about framework 1.1
Does anyone know if and where we can check the source
code for the .net framework 1.1 class library? Just like
the MFC class library?
Thanks.
Roy Tag: Using The Equivalent Of 'On Error Resume Next' In A Try/Catch Tag: 62832
Question
Does anyone know if and where we can check the source
code for the .net frame class library? Just like the MFC
class library?
Thanks.
Roy Tag: Using The Equivalent Of 'On Error Resume Next' In A Try/Catch Tag: 62831
Insert a clob into Oracle
I have to store a large XML document in a Oracle Database
(9i). I have specified a field as a clob. Can someone show
me some code (c#) how to insert this.
Thanks Tag: Using The Equivalent Of 'On Error Resume Next' In A Try/Catch Tag: 62827
include image file in an other type of file.
Hi group
I try to include a image file into my App type of file (.MyApp files), like
you can add image in your word .doc.
When i open my open a .MyApp file, i need that the image file containing in
appears in a PictureBox.
for the momment i create a new image file (.GIF .JPG .BMP ...) which i add
in my picture box, and after i used it, i delete it.
How can i do to create some kind of temporary image file to populate my
picture box, without create file, the perfection consist inhave a byte[] in
place of a file.
thank you for your help
ROM Tag: Using The Equivalent Of 'On Error Resume Next' In A Try/Catch Tag: 62826
WebProxy & authentication
Does WebProxy handle anything other than Basic Authentication - if so, more
info would be much appreciated!
Cheers
Sparky Tag: Using The Equivalent Of 'On Error Resume Next' In A Try/Catch Tag: 62824
URGENT: Vbc fails with error code 128
I have a .NET application that compiles fine and runs fine
under most circumstances.
However when tested with heavy user load, it runs for a
while (9 hours) and then starts failing with the following
message displayed to the user.
Any ideas what could cause that?
/Stan
Error message:
Compilation Error
Description: An error occurred during the compilation of a
resource required to service this request. Please review
the following specific error details and modify your
source code appropriately.
Compiler Error Message: The compiler failed with error
code 128.
Show Detailed Compiler Output:
C:\WINNT\system32> "c:\winnt\microsoft.net\framework\v1.1.4
322
\vbc.exe" /t:library /utf8output /R:"c:\winnt\assembly\gac\
system.web\1.0.5000.0__b03f5f7f11d50a3a\system.web.dll" /R:
"c:\winnt\microsoft.net\framework\v1.1.4322\temporary
asp.net files\vistaaspnet\84d4bfb8\8a98fbbc\assembly\dl2
\d1defa8c\00f91e4b_0aa6c201
\interop.pominterfaces.dll" /R:"c:\winnt\microsoft.net\fram
ework\v1.1.4322\temporary asp.net
files\vistaaspnet\84d4bfb8
\8a98fbbc\l5yofysr.dll" /R:"c:\winnt\microsoft.net\framewor
k\v1.1.4322\temporary asp.net files\vistaaspnet\84d4bfb8
\8a98fbbc\hsp9dv3e.dll" /R:"c:\winnt\microsoft.net\framewor
k\v1.1.4322\temporary asp.net files\vistaaspnet\84d4bfb8
\8a98fbbc\bz0zz1vv.dll" /R:"c:\winnt\microsoft.net\framewor
k\v1.1.4322\temporary asp.net files\vistaaspnet\84d4bfb8
\8a98fbbc\maffrs7u.dll" /R:"c:\winnt\microsoft.net\framewor
k\v1.1.4322\temporary asp.net files\vistaaspnet\84d4bfb8
\8a98fbbc\assembly\dl2\0c2a136a\006aca0d_2728c201
\interop.adomd.dll" /R:"c:\winnt\microsoft.net\framework\v1
.1.4322\temporary asp.net files\vistaaspnet\84d4bfb8
\8a98fbbc\assembly\dl2\9bd2daf5\405219ce_e5aac301
\vistaexport.dll" /R:"c:\winnt\microsoft.net\framework\v1.1
.4322\temporary asp.net files\vistaaspnet\84d4bfb8
\8a98fbbc\assembly\dl2\e634931a\803995b6_e9aac301
\vistaaspnet.dll" /R:"c:\winnt\microsoft.net\framework\v1.1
.4322\temporary asp.net files\vistaaspnet\84d4bfb8
\8a98fbbc\assembly\dl2\eb4d3b95\00981176_415cc301
\interop.msxmlanalysissclib.dll" /R:"c:\winnt\assembly\gac\
system.xml\1.0.5000.0__b77a5c561934e089
\system.xml.dll" /R:"c:\winnt\microsoft.net\framework\v1.1.
4322\temporary asp.net files\vistaaspnet\84d4bfb8
\8a98fbbc\assembly\dl2\890304c9\0047adec_18a6c201
\interop.dso.dll" /R:"c:\winnt\assembly\gac\system.enterpri
seservices\1.0.5000.0__b03f5f7f11d50a3a\system.enterprisese
rvices.dll" /R:"c:\winnt\microsoft.net\framework\v1.1.4322
\temporary asp.net files\vistaaspnet\84d4bfb8
\8a98fbbc\assembly\dl2\5e2129a8\0070c1b0_9536c301
\interop.vba.dll" /R:"c:\winnt\assembly\gac\system.drawing\
1.0.5000.0__b03f5f7f11d50a3a\system.drawing.dll" /R:"c:\win
nt\microsoft.net\framework\v1.1.4322\temporary asp.net
files\vistaaspnet\84d4bfb8\8a98fbbc\assembly\dl2\1327e3a8
\0009d450_21a6c201
\interop.msolapadminlib2.dll" /R:"c:\winnt\microsoft.net\fr
amework\v1.1.4322\temporary asp.net
files\vistaaspnet\84d4bfb8\8a98fbbc\assembly\dl2\c7402bd4
\b0ee02cd_05aac301
\vista.dll" /R:"c:\winnt\microsoft.net\framework\v1.1.4322
\temporary asp.net files\vistaaspnet\84d4bfb8
\8a98fbbc\mlaly9cs.dll" /R:"c:\winnt\assembly\gac\system.we
b.mobile\1.0.5000.0__b03f5f7f11d50a3a\system.web.mobile.dll
" /R:"c:\winnt\assembly\gac\system.data\1.0.5000.0__b77a5c5
61934e089
\system.data.dll" /R:"c:\winnt\microsoft.net\framework\v1.1
.4322\temporary asp.net files\vistaaspnet\84d4bfb8
\8a98fbbc\assembly\dl2\22995fc8\1063dbce_e5aac301
\vistanet.dll" /R:"c:\winnt\assembly\gac\system.web.service
s\1.0.5000.0__b03f5f7f11d50a3a\system.web.services.dll" /R:
"c:\winnt\assembly\gac\system\1.0.5000.0__b77a5c561934e089
\system.dll" /out:"C:\WINNT\Microsoft.NET\Framework\v1.1.43
22\Temporary ASP.NET Files\vistaaspnet\84d4bfb8
\8a98fbbc\liutf_nl.dll" /D:DEBUG=1 /debug+ /win32resource:"
C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary
ASP.NET Files\vistaaspnet\84d4bfb8
\8a98fbbc\liutf_nl.res" "C:\WINNT\Microsoft.NET\Framework\
v1.1.4322\Temporary ASP.NET Files\vistaaspnet\84d4bfb8
\8a98fbbc\liutf_nl.0.vb"
Show Complete Compilation Source:
Line 1: '-----------------------------------------------
-------------------------------
Line 2: ' <autogenerated>
Line 3: ' This code was generated by a tool.
Line 4: ' Runtime Version: 1.1.4322.573
Line 5: '
Line 6: ' Changes to this file may cause incorrect
behavior and will be lost if
Line 7: ' the code is regenerated.
Line 8: ' </autogenerated>
Line 9: '-----------------------------------------------
-------------------------------
Line 10:
Line 11: Option Strict Off
Line 12: Option Explicit On
Line 13:
Line 14: Imports ASP
Line 15: Imports Microsoft.VisualBasic
Line 16: Imports System
Line 17: Imports System.Collections
Line 18: Imports System.Collections.Specialized
Line 19: Imports System.Configuration
Line 20: Imports System.Text
Line 21: Imports System.Text.RegularExpressions
Line 22: Imports System.Web
Line 23: Imports System.Web.Caching
Line 24: Imports System.Web.Security
Line 25: Imports System.Web.SessionState
Line 26: Imports System.Web.UI
Line 27: Imports System.Web.UI.HtmlControls
Line 28: Imports System.Web.UI.WebControls
Line 29:
Line 30: Namespace ASP
Line 31:
Line 32:
<System.Runtime.CompilerServices.CompilerGlobalScopeAttribu
te()> _
Line 33: Public Class dimension_aspx
Line 34: Inherits VistaAspNet.dimension
Line 35: Implements
System.Web.SessionState.IRequiresSessionState
Line 36:
Line 37:
Line 38: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaDim\dimension.aspx",42)
Line 39: Protected LanguagesCtl As
ASP.SupportedLanguages_ascx
Line 40:
Line 41: #End ExternalSource
Line 42:
Line 43:
Line 44: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaDim\dimension.aspx",97)
Line 45: Protected LoginCtl As ASP.LoginInfo_ascx
Line 46:
Line 47: #End ExternalSource
Line 48:
Line 49:
Line 50: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaDim\dimension.aspx",97)
Line 51: Protected StateCtl As ASP.State_ascx
Line 52:
Line 53: #End ExternalSource
Line 54:
Line 55: Private Shared __initialized As Boolean
= false
Line 56:
Line 57: Private Shared __stringResource As
Object
Line 58:
Line 59: Private Shared __fileDependencies As
System.Collections.ArrayList
Line 60:
Line 61:
Line 62: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaDim\dimension.aspx",9)
Line 63:
Line 64: Dim PageSettings As
Settings = CType(LoadControl("../Controls/Settings.ascx"),
Settings)
Line 65: Dim PageSettings1 As New
VistaAspNet.Settings1
Line 66:
Line 67: #End ExternalSource
Line 68:
Line 69: Public Sub New()
Line 70: MyBase.New
Line 71: Dim dependencies As
System.Collections.ArrayList
Line 72: If
(ASP.dimension_aspx.__initialized = false) Then
Line 73:
ASP.dimension_aspx.__stringResource =
System.Web.UI.TemplateControl.ReadStringResource(GetType
(ASP.dimension_aspx))
Line 74: dependencies = New
System.Collections.ArrayList
Line 75: dependencies.Add
("D:\VistaSolution\VistaAspNet\bin\VistaAspNet.DLL")
Line 76: dependencies.Add
("D:\VistaSolution\VistaAspNet\bin\Interop.MSOLAPADMINLib2.
DLL")
Line 77: dependencies.Add
("D:\VistaSolution\VistaAspNet\bin\VistaNet.DLL")
Line 78: dependencies.Add
("D:\VistaSolution\VistaAspNet\bin\Interop.DSO.DLL")
Line 79: dependencies.Add
("D:\VistaSolution\VistaAspNet\VistaApp\toolbar.inc")
Line 80: dependencies.Add
("D:\VistaSolution\VistaAspNet\bin\Vista.DLL")
Line 81: dependencies.Add
("D:\VistaSolution\VistaAspNet\bin\Interop.MSXmlAnalysisSCL
ib.DLL")
Line 82: dependencies.Add
("D:\VistaSolution\VistaAspNet\controls\state.ascx")
Line 83: dependencies.Add
("D:\VistaSolution\VistaAspNet\VistaDim\dimension.aspx")
Line 84: dependencies.Add
("D:\VistaSolution\VistaAspNet\VistaApp\PoweredByLogo.inc")
Line 85: dependencies.Add
("D:\VistaSolution\VistaAspNet\bin\Interop.VBA.DLL")
Line 86: dependencies.Add
("D:\VistaSolution\VistaAspNet\VistaApp\VistaApp.inc")
Line 87: dependencies.Add
("D:\VistaSolution\VistaAspNet\bin\Interop.POMInterfaces.DL
L")
Line 88: dependencies.Add
("D:\VistaSolution\VistaAspNet\bin\Interop.ADOMD.DLL")
Line 89: dependencies.Add
("D:\VistaSolution\VistaAspNet\controls\logininfo.ascx")
Line 90: dependencies.Add
("D:\VistaSolution\VistaAspNet\Controls\Settings.ascx")
Line 91: dependencies.Add
("D:\VistaSolution\VistaAspNet\bin\VistaExport.DLL")
Line 92: dependencies.Add
("D:\VistaSolution\VistaAspNet\VistaApp\logoicon.inc")
Line 93: dependencies.Add
("D:\VistaSolution\VistaAspNet\controls\SupportedLanguages.
ascx")
Line 94:
ASP.dimension_aspx.__fileDependencies = dependencies
Line 95:
ASP.dimension_aspx.__initialized = true
Line 96: End If
Line 97: Me.Server.ScriptTimeout = 30000000
Line 98: End Sub
Line 99:
Line 100: Protected Overrides ReadOnly Property
SupportAutoEvents As Boolean
Line 101: Get
Line 102: Return false
Line 103: End Get
Line 104: End Property
Line 105:
Line 106: Protected ReadOnly Property
ApplicationInstance As ASP.Global_asax
Line 107: Get
Line 108: Return CType
(Me.Context.ApplicationInstance,ASP.Global_asax)
Line 109: End Get
Line 110: End Property
Line 111:
Line 112: Public Overrides ReadOnly Property
TemplateSourceDirectory As String
Line 113: Get
Line 114: Return "/vistaaspnet/VistaDim"
Line 115: End Get
Line 116: End Property
Line 117:
Line 118: Private Function
__BuildControlLanguagesCtl() As System.Web.UI.Control
Line 119: Dim __ctrl As
ASP.SupportedLanguages_ascx
Line 120:
Line 121: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaDim\dimension.aspx",42)
Line 122: __ctrl = New
ASP.SupportedLanguages_ascx
Line 123:
Line 124: #End ExternalSource
Line 125: Me.LanguagesCtl = __ctrl
Line 126:
Line 127: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaDim\dimension.aspx",42)
Line 128:
Me.LanguagesCtl.InitializeAsUserControl(Me.Page)
Line 129:
Line 130: #End ExternalSource
Line 131:
Line 132: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaDim\dimension.aspx",42)
Line 133: __ctrl.ID = "LanguagesCtl"
Line 134:
Line 135: #End ExternalSource
Line 136: Return __ctrl
Line 137: End Function
Line 138:
Line 139: Private Function __BuildControlLoginCtl
() As System.Web.UI.Control
Line 140: Dim __ctrl As ASP.LoginInfo_ascx
Line 141:
Line 142: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaDim\dimension.aspx",97)
Line 143: __ctrl = New ASP.LoginInfo_ascx
Line 144:
Line 145: #End ExternalSource
Line 146: Me.LoginCtl = __ctrl
Line 147:
Line 148: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaDim\dimension.aspx",97)
Line 149: Me.LoginCtl.InitializeAsUserControl
(Me.Page)
Line 150:
Line 151: #End ExternalSource
Line 152:
Line 153: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaDim\dimension.aspx",97)
Line 154: __ctrl.ID = "LoginCtl"
Line 155:
Line 156: #End ExternalSource
Line 157: Return __ctrl
Line 158: End Function
Line 159:
Line 160: Private Function __BuildControlStateCtl
() As System.Web.UI.Control
Line 161: Dim __ctrl As ASP.State_ascx
Line 162:
Line 163: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaDim\dimension.aspx",97)
Line 164: __ctrl = New ASP.State_ascx
Line 165:
Line 166: #End ExternalSource
Line 167: Me.StateCtl = __ctrl
Line 168:
Line 169: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaDim\dimension.aspx",97)
Line 170: Me.StateCtl.InitializeAsUserControl
(Me.Page)
Line 171:
Line 172: #End ExternalSource
Line 173:
Line 174: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaDim\dimension.aspx",97)
Line 175: __ctrl.ID = "StateCtl"
Line 176:
Line 177: #End ExternalSource
Line 178: Return __ctrl
Line 179: End Function
Line 180:
Line 181: Private Sub __BuildControlTree(ByVal
__ctrl As System.Web.UI.Control)
Line 182:
Line 183: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaDim\dimension.aspx",1)
Line 184: Me.__BuildControlLanguagesCtl
Line 185:
Line 186: #End ExternalSource
Line 187: Dim __parser As
System.Web.UI.IParserAccessor = CType
(__ctrl,System.Web.UI.IParserAccessor)
Line 188:
Line 189: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaDim\dimension.aspx",1)
Line 190: __parser.AddParsedSubObject
(Me.LanguagesCtl)
Line 191:
Line 192: #End ExternalSource
Line 193:
Line 194: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaDim\dimension.aspx",1)
Line 195: Me.__BuildControlLoginCtl
Line 196:
Line 197: #End ExternalSource
Line 198:
Line 199: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaDim\dimension.aspx",1)
Line 200: __parser.AddParsedSubObject
(Me.LoginCtl)
Line 201:
Line 202: #End ExternalSource
Line 203:
Line 204: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaDim\dimension.aspx",1)
Line 205: Me.__BuildControlStateCtl
Line 206:
Line 207: #End ExternalSource
Line 208:
Line 209: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaDim\dimension.aspx",1)
Line 210: __parser.AddParsedSubObject
(Me.StateCtl)
Line 211:
Line 212: #End ExternalSource
Line 213: __ctrl.SetRenderMethodDelegate
(AddressOf Me.__Render__control1)
Line 214: End Sub
Line 215:
Line 216: Private Sub __Render__control1(ByVal
__output As System.Web.UI.HtmlTextWriter, ByVal
parameterContainer As System.Web.UI.Control)
Line 217: __output.Write
(""&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&"<!DOCTYPE HTML PUBLIC ""-
//W3C//DTD HTML 4.0
Transitional//EN"">"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)
&"<HTML>"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&"<HEAD>"& _
Line 218: ""&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9))
Line 219: Me.WriteUTF8ResourceString
(__output, 0, 338, true)
Line 220:
Line 221: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaDim\dimension.aspx",18)
Line 222:
Line 223: If InStr
(Request.ServerVariables("HTTP_USER_AGENT"), "MSIE") = 0
Then
Line 224: Response.Write
("<LINK HREF='../Style_NS.aspx' rel=stylesheet
type='text/css'>")
Line 225: Else
Line 226: Response.Write
("<LINK HREF='../Style_IE.aspx' rel=stylesheet
type='text/css'>")
Line 227: End if
Line 228:
Line 229:
Line 230: #End ExternalSource
Line 231: Me.WriteUTF8ResourceString
(__output, 338, 9040, true)
Line 232:
Line 233: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaApp\VistaApp.inc",297)
Line 234: __output.Write(m_rm.GetString
("TableNoLoaded"))
Line 235:
Line 236: #End ExternalSource
Line 237: Me.WriteUTF8ResourceString
(__output, 9378, 355, true)
Line 238:
Line 239: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaApp\VistaApp.inc",310)
Line 240: __output.Write(m_rm.GetString
("TableNoLoaded"))
Line 241:
Line 242: #End ExternalSource
Line 243: Me.WriteUTF8ResourceString
(__output, 9733, 582, true)
Line 244:
Line 245: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaApp\VistaApp.inc",330)
Line 246: __output.Write(m_rm.GetString
("TableNoLoaded"))
Line 247:
Line 248: #End ExternalSource
Line 249: Me.WriteUTF8ResourceString
(__output, 10315, 2857, true)
Line 250:
Line 251: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaApp\VistaApp.inc",425)
Line 252: __output.Write(m_rm.GetString
("LoginName"))
Line 253:
Line 254: #End ExternalSource
Line 255: __output.Write
("""))"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&" bValid =
false;"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(13)&Microsoft.VisualBasic.ChrW(10)&" if (bValid)
{"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9)&"szTemp =
szLogin.toLowerCase();"& _
Line 256: ""&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&" if (szTemp ==
strAdmin) {"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9)
&Microsoft.VisualBasic.ChrW(9)&"alert(szLogin + "" ")
Line 257:
Line 258: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaApp\VistaApp.inc",431)
Line 259: __output.Write(m_rm.GetString
("Reserved"))
Line 260:
Line 261: #End ExternalSource
Line 262: __output.Write
("""); "&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9)&" bValid =
false;"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9)
&"}"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)
&" }"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&" if (bValid)
{"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&" if (!
CheckForLengt"& _
Line 263: "h(object.logintemp,
50, "&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9)
&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW
(9)&"""")
Line 264:
Line 265: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaApp\VistaApp.inc",437)
Line 266: __output.Write(m_rm.GetString
("LoginNameLength"))
Line 267:
Line 268: #End ExternalSource
Line 269: __output.Write
("""))"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9)&" bValid =
false;"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)
&" }"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&" if (bValid)
{"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&" if (!IsAlphaNum
(szLogin,"& _
Line 270: " false, true)) {"&Microsoft.VisualBasic.ChrW
(13)&Microsoft.VisualBasic.ChrW(10)&" alert(""")
Line 271:
Line 272: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaApp\VistaApp.inc",442)
Line 273: __output.Write(m_rm.GetString
("Alphanumeric"))
Line 274:
Line 275: #End ExternalSource
Line 276: __output.Write
(""");"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&"
object.logintemp.select();"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&" myfocus
(object.logintemp);"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&" "& _
Line 277: " bValid =
false;"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)
&" }"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)
&" }"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(13)&Microsoft.VisualBasic.ChrW(10)&" //
Password"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&" if (bValid)
{"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&" "& _
Line 278: " if (IsControlEmpty(object.pwdtemp, """)
Line 279:
Line 280: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaApp\VistaApp.inc",451)
Line 281: __output.Write(m_rm.GetString
("NoPassword"))
Line 282:
Line 283: #End ExternalSource
Line 284: __output.Write
("""))"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&" bValid =
false;"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)
&" }"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&" // look for white
spaces in the Password"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&" if (bValid)
{"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&" if
(szPassword.indexOf("" "") != -1)
{"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&" alert(""")
Line 285:
Line 286: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaApp\VistaApp.inc",457)
Line 287: __output.Write(m_rm.GetString
("Spaces"))
Line 288:
Line 289: #End ExternalSource
Line 290: __output.Write
(""");"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&"
object.pwdtemp.select();"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&" myfocus
(object.pwdtemp);"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&" "& _
Line 291: " bValid = false;"&Microsoft.VisualBasic.ChrW
(13)&Microsoft.VisualBasic.ChrW(10)
&" }"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)
&" }"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&" if (bValid)
{"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&" if (!CheckForLength
(o"& _
Line 292: "bject.pwdtemp, 50, "&Microsoft.VisualBasic.ChrW
(13)&Microsoft.VisualBasic.ChrW(10)
&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9)
&Microsoft.VisualBasic.ChrW(9)&"""")
Line 293:
Line 294: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaApp\VistaApp.inc",465)
Line 295: __output.Write(m_rm.GetString
("PasswordLength"))
Line 296:
Line 297: #End ExternalSource
Line 298: Me.WriteUTF8ResourceString
(__output, 13172, 261, true)
Line 299:
Line 300: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaApp\VistaApp.inc",473)
Line 301: __output.Write(m_rm.GetString
("InvalidEmail"))
Line 302:
Line 303: #End ExternalSource
Line 304: Me.WriteUTF8ResourceString
(__output, 13433, 21504, true)
Line 305: __output.Write
(""&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9)&"<SCRIPT
src=""../VistaDim/dimension.js""></SCRIPT>"&Microsoft.Visua
lBasic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)
&Microsoft.VisualBasic.ChrW(9)
&"</HEAD>"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&"<BODY bgColor=""")
Line 306:
Line 307: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaDim\dimension.aspx",28)
Line 308: __output.Write(PageSettings.BkColor)
Line 309:
Line 310: #End ExternalSource
Line 311: _
output.Write(""" leftMargin=""0""
topMargin=""0"">"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9)&"<TABLE
border=""0"">"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9)
&Microsoft.VisualBasic.ChrW(9)
&"<TR>"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9)
&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW
(9)&"<TD id=""cell1"& _
Line 312: """ vAlign=""top"" width=""1%""
height=""1%"">"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9)
&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9))
Line 313: __output.Write("<a
href='http://www.beyond2020.com'
target=new>"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&" <IMG
SRC=""../Bmp/Vista.gif"" alt"& _
Line 314: "=""")
Line 315:
Line 316: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaApp\logoicon.inc",2)
Line 317: __output.Write(m_rm.GetString
("Beyond2020HomePage"))
Line 318:
Line 319: #End ExternalSource
Line 320: __output.Write
(""" "&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&" Title=""")
Line 321:
Line 322: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaApp\logoicon.inc",3)
Line 323: __output.Write(m_rm.GetString
("Beyond2020HomePage"))
Line 324:
Line 325: #End ExternalSource
Line 326: __output.Write
(""""&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&" border=0
vspace=3>"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)
&"</a>"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10))
Line 327: __output.Write
("</TD>"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9)
&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW
(9)&"<TD id=""cell2"" vAlign=""top""
align=""right"">"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9)
&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9))
Line 328: __output.Write("<TABLE align=right
border=0 cellPadding=0
cellSpacing=0>"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&" <TR
valign=top>"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&" "& _
Line 329: " <TD class=ToolBar
nowrap>"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&" <A
href=""javascript:OnHelp"& _
Line 330: "Window();"">"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&" ")
Line 331:
Line 332: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaApp\toolbar.inc",5)
Line 333: __output.Write(m_rm.GetString
("Help"))
Line 334:
Line 335: #End ExternalSource
Line 336: __output.Write
("</A> |"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&"
</TD> "&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&" <TD class=ToolBar
nowrap>"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&" &nb"& _
Line 337: "sp; "&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&" <A
href=""javascript:OnLogin
('../VistaApp/browsetables.aspx'"& _
Line 338: ",'','');"">"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&" ")
Line 339:
Line 340: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaApp\toolbar.inc",10)
Line 341: __output.Write(m_rm.GetString
("Login"))
Line 342:
Line 343: #End ExternalSource
Line 344: __output.Write
("</A> |"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&"
</TD>"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&" <TD class=ToolBar
nowrap>"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&" &nbs"& _
Line 345: "p; <A href=""javascript:OnDataBank
();"">"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&" ")
Line 346:
Line 347: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaApp\toolbar.inc",14)
Line 348: __output.Write(m_rm.GetString
("DataBank"))
Line 349:
Line 350: #End ExternalSource
Line 351: __output.Write
("</A> |"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&"
</TD>"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&" <TD class=ToolBar
nowrap>"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&" &nbs"& _
Line 352: "p; <A href=""javascript:OnListMyReports
()"">"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&" ")
Line 353:
Line 354: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaApp\toolbar.inc",18)
Line 355: __output.Write(m_rm.GetString
("MyReports"))
Line 356:
Line 357: #End ExternalSource
Line 358: __output.Write
("</A> "&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&"
</TD>"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&"
</TR>"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)
&"</TABLE>"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)
&"<br>"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)
&"<br>"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10))
Line 359: __output.Write
("</TD>"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9)
&Microsoft.VisualBasic.ChrW(9)
&"</TR>"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9)
&"</TABLE>"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9)&"<TABLE
cellSpacing=""10""
border=""0"">"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9)
&Microsoft.VisualBasic.ChrW(9)
&"<TR>"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9)
&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW
(9)& _
Line 360: "<TD id=""cell3""
vAlign=""top""><BR>"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9)
&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9)&"<TABLE id=""MenuTable""
height=""0%"" cellSpa"& _
Line 361: "cing=""0"" cellPadding=""0"" width=""0%""
align=""left"""&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9)
&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9)
&Microsoft.VisualBasic.ChrW(9)
&"border=""0"">"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9)
&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9)
&Microsoft.VisualBasic.ChrW(9))
Line 362:
Line 363: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaDim\dimension.aspx",42)
Line 364: parameterContainer.Controls
(0).RenderControl(__output)
Line 365:
Line 366: #End ExternalSource
Line 367: __output.Write
(""&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9)
&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9)
&Microsoft.VisualBasic.ChrW(9))
Line 368:
Line 369: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaDim\dimension.aspx",43)
Line 370:
Line 371:
StateCtl.InitializeTable(Request.Form("Server"), _
Line 372:
Request.Form("Database"), Request.Form
("CubeName"), _
Line 373:
LoginCtl.VistaUserId, LoginCtl.VistaPassword)
Line 374:
CreateMenu()
Line 375:
LanguagesCtl.CreateLanguageMenu()
Line 376:
Line 377:
Line 378: #End ExternalSource
Line 379: __output.Write
("<tr>"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&"<td>"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9)
&"<br>"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&" <a
href='http://www.beyond2020.com'>"&Microsoft.VisualBasic.Ch
rW(13)&Microsoft.VisualBasic.ChrW(10)&" <IMG SRC='"&
_
Line
380: "../Bmp/Beyond2020sm.gif' "&Microsoft.VisualBasic.Chr
W(13)&Microsoft.VisualBasic.ChrW(10)
&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9)&"alt=""")
Line 381:
Line 382: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaApp\PoweredByLogo.inc",
6)
Line 383: __output.Write(m_rm.GetString
("Beyond2020HomePage"))
Line 384:
Line 385: #End ExternalSource
Line 386: __output.Write
(""" "&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9)
&Microsoft.VisualBasic.ChrW(9)&"Title=""")
Line 387:
Line 388: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaApp\PoweredByLogo.inc",
7)
Line 389: __output.Write(m_rm.GetString
("Beyond2020HomePage"))
Line 390:
Line 391: #End ExternalSource
Line 392: __output.Write
(""" "&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9)
&Microsoft.VisualBasic.ChrW(9)
&"border=0>"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9)
&"</a>"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&"
</td>"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)
&"</tr>"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10))
Line 393: __output.Write
("</TABLE>"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9)
&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW
(9)&"</TD>"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9)
&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW
(9)&"<TD id=""cell4""
vAlign=""top"">"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9)
&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9)&"<form id=""Form1""
onsu"& _
Line 394: "bmit=""return Search
()"" "&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9)
&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9)
&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW
(9)&"onreset=""return resetSearch()""
method=""post"">"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)& _
Line 395: ""&Microsoft.VisualBasic.ChrW(9)
&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9)
&Microsoft.VisualBasic.ChrW(9))
Line 396:
Line 397: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaDim\dimension.aspx",55)
Line 398:
Line 399:
Dim szTitle as String
Line 400:
Line 401: If
m_bLoginChecked And m_bRegistrationChecked Then
Line 402:
InitializeDimension()
Line 403:
szTitle = StateCtl.m_szViewTitle
Line 404:
If szTitle = "" Then
Line 405:
szTitle = StateCtl.m_clOlapCube.CubeTitle
(m_strLanguage)
Line 406:
End If
Line 407:
StateCtl.WriteTableTitle(szTitle, False, True)
Line 408:
Response.Write("<BR>")
Line 409:
Response.Write("<FONT class=DataBodyBold>")
Line 410:
Response.write(m_szDimDesc)
Line 411:
StateCtl.WriteDimensionLink(StateCtl.m_unDim)
Line 412:
If m_szHierarchyDesc <> "" Then
Line 413:
Response.Write(" (" &
m_szHierarchyDesc)
Line 414:
StateCtl.WriteHierarchyLink
(StateCtl.m_unDim, _
Line 415:
m_nCurrentHierarchy)
Line 416:
Response.Write(")")
Line 417:
End If
Line 418:
Response.Write("</FONT>")
Line 419:
DisplaySearchInfo()
Line 420:
Response.write("<BR>")
Line 421:
Response.write("<DIV class=Default>")
Line 422:
Response.write("<NOBR>")
Line 423:
if (NOT m_bIsSearchResult) OR m_unFoundCount > 0
then
Line 424:
DispSelControls()
Line 425:
end if
Line 426:
Response.write("</NOBR>")
Line 427:
Response.write("</DIV>")
Line 428:
If m_bIsSearchResult AND m_unFoundCount = 0 Then
Line 429:
Response.Write("<DIV
class=DimSelectionTree>")
Line 430:
Response.Write(m_rm.GetString
("NoMatchFound"))
Line 431:
Response.Write("</DIV>")
Line 432:
Else
Line 433:
DispAllItems()
Line 434:
End If
Line 435:
End If
Line 436:
StateCtl.Save(True)
Line 437:
StateCtl.WriteFootnotesPopup(PageSettings)
Line 438:
Line 439:
Line 440: #End ExternalSource
Line 441: __output.Write
(""&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9)
&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9)
&Microsoft.VisualBasic.ChrW(9)&"<input type=hidden
value=""")
Line 442:
Line 443: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaDim\dimension.aspx",96)
Line 444: __output.Write(m_strLanguage)
Line 445:
Line 446: #End ExternalSource
Line 447: __output.Write("""
name=VistaLanguage>"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9)
&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9)
&Microsoft.VisualBasic.ChrW(9))
Line 448:
Line 449: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaDim\dimension.aspx",97)
Line 450: parameterContainer.Controls
(1).RenderControl(__output)
Line 451:
Line 452: #End ExternalSource
Line 453:
Line 454: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaDim\dimension.aspx",97)
Line 455: parameterContainer.Controls
(2).RenderControl(__output)
Line 456:
Line 457: #End ExternalSource
Line 458: Me.WriteUTF8ResourceString
(__output, 34937, 3931, true)
Line 459:
Line 460: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaDim\dimension.aspx",249
)
Line 461: __output.Write
(PageSettings1.HoverColor(PageSettings.BkColor))
Line 462:
Line 463: #End ExternalSource
Line 464: Me.WriteUTF8ResourceString
(__output, 38868, 310, true)
Line 465:
Line 466: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaDim\dimension.aspx",261
)
Line 467: __output.Write(PageSettings.BkColor)
Line 468:
Line 469: #End ExternalSource
Line 470: Me.WriteUTF8ResourceString
(__output, 39178, 1410, true)
Line 471:
Line 472: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaDim\dimension.aspx",318
)
Line 473: __output.Write
(PageSettings1.HoverColor(PageSettings.BkColor))
Line 474:
Line 475: #End ExternalSource
Line 476: Me.WriteUTF8ResourceString
(__output, 40588, 3467, true)
Line 477:
Line 478: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaDim\dimension.aspx",457
)
Line 479: __output.Write(m_szOrigSearchString)
Line 480:
Line 481: #End ExternalSource
Line 482: __output.Write
(""";"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&" setSearchHelper
(document.forms[0].SearchString, val,
true);"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)
&"}"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(13)&Microsoft.VisualBasic.ChrW(10)&"function"& _
Line 483: " onPageLoad()"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)
&"{"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&"document.forms[0].VistaLanguage.value = """)
Line 484:
Line 485: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaDim\dimension.aspx",463
)
Line 486: __output.Write(m_strLanguage)
Line 487:
Line 488: #End ExternalSource
Line 489: __output.Write
(""";"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&"document.forms[0].Server.value = """)
Line 490:
Line 491: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaDim\dimension.aspx",464
)
Line 492: __output.Write(StateCtl.m_strServer)
Line 493:
Line 494: #End ExternalSource
Line 495: __output.Write
(""";"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&"document.forms[0].Database.value = """)
Line 496:
Line 497: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaDim\dimension.aspx",465
)
Line 498: __output.Write
(StateCtl.m_strDatabase)
Line 499:
Line 500: #End ExternalSource
Line 501: __output.Write
(""";"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&"document.forms[0].CubeName.value = """)
Line 502:
Line 503: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaDim\dimension.aspx",466
)
Line 504: __output.Write
(StateCtl.m_clOlapCube.CubeName)
Line 505:
Line 506: #End ExternalSource
Line 507: __output.Write
(""";"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&"document.forms[0].Advanced.value = """)
Line 508:
Line 509: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaDim\dimension.aspx",467
)
Line 510: __output.Write(Request.Form
("Advanced"))
Line 511:
Line 512: #End ExternalSource
Line 513: __output.Write
(""";"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(13)&Microsoft.VisualBasic.ChrW(10)
&Microsoft.VisualBasic.ChrW(9)&"document.forms
[0].Dim.value = ")
Line 514:
Line 515: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaDim\dimension.aspx",469
)
Line 516: __output.Write(StateCtl.m_unViewDim)
Line 517:
Line 518: #End ExternalSource
Line 519: __output.Write
(";"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&"document.forms[0].FirstItem.value = ")
Line 520:
Line 521: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaDim\dimension.aspx",470
)
Line 522: __output.Write
(StateCtl.m_unFirstItem)
Line 523:
Line 524: #End ExternalSource
Line 525: __output.Write
(";"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(13)&Microsoft.VisualBasic.ChrW(10)
&Microsoft.VisualBasic.ChrW(9)&"if (document.layers)
{"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9)&"onPageLoadGlobal
();"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&"}"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&"else {"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9)&"setVistaScrol"& _
Line 526: "l();"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&"}"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&"if (!document.layers)"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9)&"setTimeout
(""document.body.style.cursor = 'au"& _
Line 527: "to';"", 1);"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)
&"}"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(13)&Microsoft.VisualBasic.ChrW(10)&"setSearch
();"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&"document.forms
[0].DimPageSize.value = ")
Line 528:
Line 529: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaDim\dimension.aspx",483
)
Line 530: __output.Write
(StateCtl.m_unDimPageSize)
Line 531:
Line 532: #End ExternalSource
Line 533: __output.Write
(";"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9)
&"</SCRIPT>"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9))
Line 534:
Line 535: #ExternalSource
("D:\VistaSolution\VistaAspNet\VistaDim\dimension.aspx",485
)
Line 536:
Line 537: If NOT m_bLoginChecked Then
Line 538: Response.Write("<SCRIPT>")
Line 539: Response.Write("OnLogin
('../VistaView/dimension.aspx','" _
Line 540: & m_strErrorMsg & "','');")
Line 541: Response.Write("</SCRIPT>")
Line 542: ElseIf NOT m_bRegistrationChecked Then
Line 543: Response.Write("<SCRIPT>")
Line 544: Response.Write("OnRegistration
('../VistaView/dimension.aspx','" _
Line 545: & m_strErrorMsg & "','');")
Line 546: Response.Write("</SCRIPT>")
Line 547: ElseIf m_bIsSearchResult then
Line 548: CheckFoundItems()
Line 549: End If
Line 550:
Line 551:
Line 552: #End ExternalSource
Line 553: __output.Write
(""&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9)
&"<SCRIPT>"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&" if (!
document.layers)"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&" document.body.style.cursor
= 'wait';"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&" setTimeout(""onPageLoad
();"", 1);"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&Microsoft.VisualBasic.ChrW(9)
&"</SCRIPT>"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW
(9)&"</BODY>"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10)
&"</HTML>"&Microsoft.VisualBasic.ChrW(13)
&Microsoft.VisualBasic.ChrW(10))
Line 554: End Sub
Line 555:
Line 556: Protected Overrides Sub
FrameworkInitialize()
Line 557: SetStringResourcePointer
(ASP.dimension_aspx.__stringResource, 44055)
Line 558: Me.__BuildControlTree(Me)
Line 559: Me.FileDependencies =
ASP.dimension_aspx.__fileDependencies
Line 560: Me.EnableViewStateMac = true
Line 561: Me.Request.ValidateInput
Line 562: End Sub
Line 563:
Line 564: Public Overrides Function
GetTypeHashCode() As Integer
Line 565: Return -545058712
Line 566: End Function
Line 567: End Class
Line 568: End Namespace
Line 569: Tag: Using The Equivalent Of 'On Error Resume Next' In A Try/Catch Tag: 62823
HttpWebRequest timeouts?
I create a HttpWebRequest as follows:
m_req = (HttpWebRequest) WebRequest.Create(url);
m_req.Timeout = 1000*1000;
m_req.Method = "POST";
// issue request
I issue my request and receive the HTTP headers. However as the
request is a long running dynamic request for computed data the body
will not be sent for some time. What happens to me is that the request
times out on the Read way before my 1000secs is up! I can see no other
timeout to set to prevent this happening - is there any other
workaround?
HttpWebResponse res = (HttpWebResponse) m_req.GetResponse();
// I can see res.Headers
// Read on res.GetResponseStream() times out
The reason that the server sends the HTTP headers before the body is
because the requests are dynamic it can NOT predict the size of the
response document and therefore just produces it as it process the
request (e.g. a large database query of indeterminate response size).
Many thanks in advance for any useful answers! Tag: Using The Equivalent Of 'On Error Resume Next' In A Try/Catch Tag: 62820
Windows Forms No-Touch Deployment problems using DAO on User-Level Secured Access DB to access groups .
I have a VB windows forms application that accesses a Microsoft Access
database that has been secured using user-level security. The
application is being deployed using No-Touch deployment. The objective
in utilizing this new deployment method is to reduce the maintenance
overhead as well as making it easier for my users to setup and run the
application initially. I have VS 2002, Windows XP, Access XP(2000
format).
He is my problem. Since the database is secured, I must provide a way
for my users to change their passwords. Also, some forms access tables
that certain permission groups do not have access to. So instead of
letting the error come up when they open the form and try to update,
at logon I am searching through the groups that the user belongs to
and locking out access to these forms if they do not have permission.
The only way I know to do these 2 functions is to use DAO. However,
for accessing and updating my data, I'm using ADO.NET.
So I have included DAO 3.6 using Project>>Add References>>COM tab in
the VS project.
I No-Touch deployed it and most users are working, running the gamut
from Windows NT 4.0 to Windows XP, admins and non-admins.
Then there was this 1 machine, then another...It is now 3 machines.
Each have different errors or none at all(app won't even open). On 1
of the 3 I have a strong belief due to the nature of the errors that
it is just something wrong with the machine. The user has reported
problems with the unit before my app was placed on it.
Now on the last 2 machines....1 is Windows NT 4.0 and crashes before
the app even opens, the other is Windows 2000 and has the error of
"QueryInterface for interface DAO._DBEngine failed.". I thought that
maybe installing MDAC would work. So I put the version of MDAC that
all the machines have including mine(2.6) on both, and same error. I
have also made sure that the Jet 4.0 engine is setup and current. I
thought that maybe the dao360.dll was not properly registered or set
up which is why I did these steps. No change. I checked the registry
and "HKEY_CLASSES_ROOT\DAO.DBEngine.36\CLSID" is present. I don't know
if that even matters. Also, I have a VB6 app that uses dao360.dll on
these machines and this VB6 app works. The more I work on this, the
more I think it is not just this machine, but rather something(s) I'm
doing wrong in .NET(also taking into account the 2 other users and
even more mentioned below). The framework version on these machines
is the same as mine 1.0.3705.
NOW HERE IS THE DOOZY:
Since this is No-Touch deployment I am accessing the app by clicking a
link in the browser of course(IE 6.0). It errors. If I instead browse
out to the folder using Windows Explorer....IT RUNS FINE ON BOTH
MACHINES!!? My limited knowledge about .NET No-Touch doesn't help me
understand this much. This re-enforces my belief it is me and not the
just the machines.
But if I understand right, doesn't No-Touch put the assemblies in the
GAC. Maybe I can force what I need into the GAC or something along
those lines. How could I remedy/do this? It seems that on the NT 4.0
machine it can't find any assemblies even to open and the Windows 2000
machine just can't find the DAO assembly.....but I'm probably way
off??
Here is the .NET code and the spot that errors out when No-Touch is
used:
Dim wks As DAO.Workspace
Dim theEngine As New DAO.DBEngine()
' Open the workspace, specifying the system database to use
'***************** error
theEngine.SystemDB = AccessDatabasePath & AccessWorkgroupName'this is
the line that errors
'***************** error
wks = theEngine.CreateWorkspace("", UserName, OldPassword)
' Change the password for the user Admin
wks.Users(UserName).NewPassword(OldPassword, NewPassword)
ChangePassword = True
'I have a loop that gets the users permission groups here
As a matter of fact if I try to reference any of the DBEngine's
methods or properties it errors on this machine.
Also,
I tried latebinding:
Dim theEngine As DAO.DBEngine
theEngine = CreateObject("DAO.DBEngine.36")
and it errors with a message: "Specified cast is not valid."
Here is the VB6 code that works:
Dim wks As DAO.Workspace
Dim usr As DAO.User
' Open the workspace, specifying the system database to use
DBEngine.SystemDB = theSysDB
Set wks = DBEngine.CreateWorkspace("", UserName, OldPassword)
' Change the password for the user Admin
wks.Users(UserName).NewPassword OldPassword, NewPassword
DAOChangePassword = True
WHAT I'D LIKE TO KNOW:
I know that .NET is trying to avoid "DLL HELL" and that by using COM
items I'm throwing myself back into it. I'd love to use ADO.NET(or
anything else in the framework) to do what I'm doing with DAO
but....how....can it even do it(getting user group and password in
from *.mdw)?
How does No-Touch work, for instance, the point I made above about the
app running from the folder and not the browser, could the method of
No-Touch deployment be the problem, and if so how can one fix it,
something like forcing stuff into the GAC or other method? Basically
why does it work when executed from the folder directly, but not from
the Browser using No-Touch deployment on this particular machine(yes I
know you would have to see the machine, but what COULD it be, maybe
just some things for me to check)?
Even if ADO.NET or other item can do what the DAO is doing I'd still
like to know the way to get COM items to work with the "No-Touch"
philosophy. Meaning little to no maintenance. In addition to the 3
user mentioned above I have had others with errors. I was able to
resolve them simply by installing MDAC 2.6 or later. This kind of
defeats my purpose.
Is it possible to deploy(via No-Touch deployment) projects using COM
items and still fully reap the benefits of No-Touch in every case(ie
no DLL HELL)?
Is there some special tricks that can perhaps still use COM items and
avoid "DLL HELL", or is it that if you go using COM items your just
stuck taking the risks?
If there are tricks, what are they?
If no tricks, then if COM must be used, are there precautions that can
reduce the problems?
Are there any books, etc. that are very thorough on "No-Touch"
deployment
Any other pointers would be most appreciated. Thanks in advance.
JL Tag: Using The Equivalent Of 'On Error Resume Next' In A Try/Catch Tag: 62815
'System.ArithmeticException' in system.drawing.dll, from font constructor
Hi group
i use some class Line, herited from Forms.Panel
in this control i have a Button (named Insert) which possess a special font
(for design purpose).
this font is declare like that (in the InitializeComponent method) :
this.Insert.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point,
((System.Byte)(0)));
I have two way of call the Line.InitializeComponent method.
i create a Formulaire class instance with the method ReadFormulaire(byte[]
source)
- from a byte array extract from a file on hard drive, or
- from a byte array extract from a RFID device
note that the two way are strictly identical from the Line point of view, i
can't anderstand the difference.
Formulaire are composed of some Rubrique(s), wich are composed of some
Line(s). (Line where there is my bug)
The two ways of creacting the Formulaire instance are the same, passingg
throw the same method (ReadFormulaire).
In the first way, ReadFormulaire is called from the program itself, and in
the second way, ReadFormulaire is called from an extern Dll.
In the first way, the bug never happend.
In the second way, a 'System.ArithmeticException' in system.drawing.dll is
thrown
french information says something like : there was a positive or negative
capaciy overflow in the arithmetic operation.
if i comment the font declaration, the bug do not appears, so i am lead to
think the exception comes from System.Drawing.Font constructor.
It looks like all the fonts aren't be loaded in the second way (from the
DLL), so i had System.drawing to the dll references.
is somebody can help ??
Thank you
ROM Tag: Using The Equivalent Of 'On Error Resume Next' In A Try/Catch Tag: 62810
Marking an object for inclusion in WSDL
Hi - does anyone know if it is possible to single out an object for
inclusion in the WSDL of a Web Service?
I have a .asmx file with an associated code-behind file. The code-behind
file has a method:
[WebMethod]
public object[] MyMethod(C1 c1, C2 c2)
The return type is object[] due to the fact that object of differing types
(C3 and C4) can be returned. The types of these objects are all available in
the project.
Now, the WSDL tool does not include the types of the returned objects C3 and
C4, because their types are not explicitly present in the method signature.
My current workaround is to create a dummy web method that contains all the
types in the argument list like this:
[WebMethod]
public void DontCallMe(C1 c1, C2 c2, C3 c3, C4 c4)
which I think is a hack.
I'd be cool if I could do something like this:
[SOAPObject]
public class C3 { ... }
which would cause the object to be included in the WSDL.
Any help would be appreciated.
Regards
Thomas Koch Tag: Using The Equivalent Of 'On Error Resume Next' In A Try/Catch Tag: 62809
Application or Cache
Hi there,
I have a question.
In my application I have a table which is frequently used to fill a combo. I
want to store it in the application or cache object. it is never updated.
What's the besta container to improve performance and scalability, Cache or
Application object?
Thanks in advance
Stefano Mostarda
Rom Italy Tag: Using The Equivalent Of 'On Error Resume Next' In A Try/Catch Tag: 62807
FEATURE REQUEST XmlTextReaderWriter
Hi,
XmlTextReaderWriter as I would like to be able to modify an XML value
inplace of an existing file which would require both read and write
operations.
I want to be able to modify like I would a .INI file, inplace. So I can
say something like update this node from this value to this value but I dont
want to have to read in all the nodes and values and then rewrite them all.
Thanks Tag: Using The Equivalent Of 'On Error Resume Next' In A Try/Catch Tag: 62806
Slow in regular expression
I have a string "=?big5?B?VHdpbnMgpbys9azb?=" ( a MIME encoded string )
I want to use regular expression to capture the strings "big5", "B",
"VHdpbnMgpbys9azb"
So I use this pattern string "\=\?(.*)+\?[QqBb]\?(.*)+\?\="
When I use Regex.Match for matching, the program doesn't have any response
for more than 1 min.
I would like to know if it is the problem of the pattern or the problem of
the regular expression service which .NET prvoides.
Thanks.
--
Franz Wong
My C++ and C# Site (Traditional Chinese) :
http://www.franzwong.com/Programming Tag: Using The Equivalent Of 'On Error Resume Next' In A Try/Catch Tag: 62797
VB.net+W2K - File or assembly name stdole, or one of its dependencies, was not found
Hi group, first sorry for my poor english
We have a vb.net app, run whit any problem in our pcs (whit vs.net 2003
installed).
The app have a ocx that draw a binary tree (the only external component,
all the rest is standart).
When our client need the app, we say "only install the framework 1.1"
(only???, poor of us !!!).
Well, the first problem we have is registered the ocx, library not found
message, but, whit the dependencies program whit vs.net i found the gdiplus
dependencies, copy the file whit the ocx, and... magic, i can register.
The problem not finish, i run the app very well, since use the form whit the
ocx... a msg box appear whit "File or assembly name stdole, or one of its
dependencies, was not found" exception.
In other machine i have the same problem, and the only solution was install
the vs.net (all the vs.net), the same message whit the prerequisites and
framework 1.1 previusly installed. Like you imagine, this is not the
solution, "all the pc whit vs.net.... naaaa".
So, i have that problem, i cant find a solution in web, not whit the exact
problem i have.
The ocx was write in C++.net and if you need information, work whit a oracle
DB (the form whit the ocx). All the rest of app run very nice, only have
problem whit the 2 forms whit the ocx.
The exception, not give me much information like you see.
Really, i look hours the web to find a light of solution of that.
If you need more information to give me a clue, of course i will.
Thanks in advance
Federico.
Argentina. Tag: Using The Equivalent Of 'On Error Resume Next' In A Try/Catch Tag: 62796
Framework deployment
Hey,
I have a setup file for my Frontend to an sql database
and it all installs just fine, i was wondering if there
was a way to setup the .net framework automatically in
the setup of the Frontend? Instead of installing it
seperatly.
Also on windows 98 machines i need to install the latest
MDAC so can i include that aswell (for win 98)?
Any hel por documentation would be great.
Thanks. Tag: Using The Equivalent Of 'On Error Resume Next' In A Try/Catch Tag: 62790
Where is the DESCRIPTION property for a Windows Service?
I've been creating and installing Windows Services, but my services never
display a "Description" in the computer management console.
The DisplayName I specify with the ServiceInstaller class works great to
display the friendly name of the service in the computer management console
and I figured the same class should also have something like a
DisplayDescription, but no luck.
How do I specify desciptions for my services? Tag: Using The Equivalent Of 'On Error Resume Next' In A Try/Catch Tag: 62788
Explorer
Dear Sir or Madam
We are absolutely delighted to be able to announce an exciting new software
in our range of developments.
ImageExplorer
ImageExplorer,the fastest, most powerful, and easiest-to-use image viewer
available for Windows!
This innovative software with following distinctive features:
Full-featured image viewer.
Quickly Browser.
Photo Editor.
I am pleased to enclose our sales literature for your perusal.If you require
any further information,please do not hesitate to go to
https://www.Qwerks.com/order/buynow.asp?ProductID=6872
We look forward to hearing from you.
Yours faithfully
KeleaSoft
Sales Director Tag: Using The Equivalent Of 'On Error Resume Next' In A Try/Catch Tag: 62787
ImageExplorer
Dear Sir or Madam
We are absolutely delighted to be able to announce an exciting new software
in our range of developments.
ImageExplorer
ImageExplorer,the fastest, most powerful, and easiest-to-use image viewer
available for Windows!
This innovative software with following distinctive features:
Full-featured image viewer.
Quickly Browser.
Photo Editor.
I am pleased to enclose our sales literature for your perusal.If you require
any further information,please do not hesitate to go to
https://www.Qwerks.com/order/buynow.asp?ProductID=6872
We look forward to hearing from you.
Yours faithfully
KeleaSoft
Sales Director Tag: Using The Equivalent Of 'On Error Resume Next' In A Try/Catch Tag: 62786
C# works with Excel 2002 but not 2000?
This code runs fine on win xp and office xp:
string sheetPassword = "Senior1993";
string sheetToOpen = "NewRpt1c.xls";
Excel.Application excelApp = new Excel.Application();
excelApp.Visible=true;
object spreadsheetFileName = Environment.CurrentDirectory
+ "\\" + sheetToOpen;
Excel.Workbook excelWorkbook = excelApp.Workbooks.Open
(Convert.ToString(spreadsheetFileName), 0,false,
Type.Missing, sheetPassword, Type.Missing, Type.Missing,
Type.Missing, Type.Missing, Type.Missing, Type.Missing,
Type.Missing, Type.Missing, Type.Missing, Type.Missing);
Excel.Sheets excelSheets = excelWorkbook.Worksheets;
excelApp.Visible=true;
Application.Exit();
However, on Windows 2000 (.net framework 1.1 installed)
with office 2000 installed it does not work! I need this
to work with office 2000. Am I doing it wrong? Please
give code examples on how to work with excel 2000
workbooks (already exist in the application folder) with
c#. Please Help!!!! Tag: Using The Equivalent Of 'On Error Resume Next' In A Try/Catch Tag: 62785
How Can I Get the Dotnet Framework?
How can I get the Dotnet framework?
I've been to the Microsoft website called "How to Get the .NET Framework
1.1", but the only option it gives me is to use Windows Update, which
doesn't work. Is there any other way to get the framework?
-TC Tag: Using The Equivalent Of 'On Error Resume Next' In A Try/Catch Tag: 62781
Setting assembly attributes
I have a legacy C/C++ header file which I use to set the version for
DLLs thru' the .rc files while compiling legacy DLLs every day. I
update this header file for every build and would like to use the
constants I defined in this header file for the .NET projects
AssemblyInfo.cs file instead of updating the AssemblyInfo.cs for every
build. Below I came up with a strategy to use the legacy header file
but it is not working.
Contents of VersionConstants.h C/C++ Header legacy file
------------------------------------------
#ifndef _VERSIONCONSTANTS_H
#define _VERSIONCONSTANTS_H
#endif
#define VERSIONNUM "6.3.4.123"
#define COPYRIGHT "Copyright 2003"
#define COMPANYNAME "My Company Inc."
#endif // _VERSIONCONSTANTS_H
-------------------------------------------
I created a small managed C++ class something like this:
#using <mscorlib.dll>
#include "VersionConstants.h"
namespace MyCompany
{
public __gc class VersionInfo
{
public static string Copyright = COPYRIGHT;
public static string VersionNumber = VERSIONNUM;
public static string CompanyName = COMPANYNAME;
...
}
}
In the C# projects, I added a reference to this new assembly and add
code like this in AssemblyInfo.cs
C# code (AssemblyInfo.cs):
...
using MyNamespace;
...
[assembly: AssemblyCopyright(MyCompany.VersionInfo.Copyright)]
[assembly: AssemblyVersion(MyCompany.VersionInfo.VersionNumber)];
...
The managed C++ layer is there strictly as the portal from the
unmanaged world to the managed world so that (managed) C# code can
access the stuff defined in the (unmanaged code) C/C++ header files.
When I do that I get compile error at AssemblyCopyright and
AssmblyVersion attributes in AssemblyInfo.cs file.
CS0182: An attribute argument must be a constant expression, typeof
expression or array creation expression.
I understand why this error is coming because I guess you must have a
constant expression such as string literal and cannot be a variable.
Am I at dead end and the only way to do it is updating AssemblyInfo.cs
everyday. Tag: Using The Equivalent Of 'On Error Resume Next' In A Try/Catch Tag: 62758
How to save Data in a Grafics to a Bitmap ?
How can you save all or a portion of the Grafics object to a Image/Bitmap ?
I am try to save the Images from Cards.dll to a BitMap file.
I can read in the Images to the Grafics, but when I try this with a Bitmap
the results are Black.
Can you somehow Clip the Grafic and Paste it into the Bitmap ?
Mark Johnson, Berlin Germany
mj10777@mj10777.de Tag: Using The Equivalent Of 'On Error Resume Next' In A Try/Catch Tag: 62757
Simple C++ Client with .NET Remoting Server
Hi All,
Is it possible to have a .NET Remoting Server talk to a simple
DCOM Client.
How should be the server and the client application be setup to work? I need
some articles which can explain a system where the .Net server communicates
with the DCOM client.
Any reference articles would be useful.
Abhishek. Tag: Using The Equivalent Of 'On Error Resume Next' In A Try/Catch Tag: 62756
FREE Webinar - Service Oriented Development of Applications - Exposing Your Components for J2EE
Magic Software invites you to join us this coming Tuesday (November 18th, 2003)
at 12:00 EDT / 17:00 GMT for a FREE live Webinar:
Title: Service Oriented Development of Applications - Exposing Your Components
for J2EE
Date: November 18, 2003
Time: 12PM EST / 17:00 GMT
Presenter: Avishai Shafir
Description:
Application development using .NET and Java are becoming increasingly popular.
This two part webinar series will show how the eDeveloper development
environment can be used to easily and rapidly integrate and communicate with
both .NET and Java environments.
In this second session, participants will learn how eDeveloper seamlessly
connects with the J2EE environment. The benefits that eDeveloper offers J2EE
developers will be discussed as well as techniques for rapid development. By way
of a live demonstration, participants will be able to view the ease and speed in
which eDeveloper can integrate and communicate with J2EE.
Who should attend this event?
Any developer interested in learning how eDeveloper can be used to quickly and
easily communicate and integrate with the J2EE environments. Attendance in this
session does not require the participant to have previous experience with
eDeveloper.
Register Today: http://www.magicsoftware.com/news/event.jsp?o=ne_events^l171
Upcoming Webinars:
Future Proofing the Enterprise for Business Change - In conjunction with ebizQ
Nov 20, 2003 12:00 PM EST / 17:00 GMT
Understanding Business Process Management Dec 2, 2003 12:00 PM EST / 17:00 GMT
Legacy Integration with eDeveloper Dec 16, 2003 12:00 PM EST / 17:00 GMT
Register to attend http://www.magicsoftware.com/home/webinars
For additional information on this or any of our upcoming Webinars visit us at
http://www.magicsoftware.com or email us at webinars@magicsoftware.com
Archives:
Visit the Magic Webinar archive:
http://www.magicsoftware.com/home/webinars/archive.jsp Tag: Using The Equivalent Of 'On Error Resume Next' In A Try/Catch Tag: 62755
Saving Group IV Tiff images as black and white
Thanks to help from a few people this very economical
amount of code creates a copy of a tif images, writes
data to it and saves as with a new name. It does almost
everything I want it to do and in an acceptable amount of
time.
My problem is that the resulting TIF image is not saved
as a black and white, grayscaled image, but with colors
and I don't know how to turn this off. Also the
resulting tif comes out to over 100K instead of around 10-
15K.
If I overload the bitmap.Save method with
System.Drawing.Imaging.ImageFormat.Tiff not only does the
size jump to nearly 350K, but I then end up with a TIF
image that requires LZW compression instead of the Group
IV TIF I want.
I have seen examples that use unsafe code to accomplish
this, but the example is slower than I'd like and is
several hundreds of lines of code when it seems to me
like I should be able to add a line or two of code to the
following dozen or so lines I have and be done.
What am I missing?
Thanks,
Jeff Gress
private Font textFont;
private FontFamily serifFontFamily;
serifFontFamily = new FontFamily
(GenericFontFamilies.Serif);
textFont = new Font(serifFontFamily, 24);
string textToDraw;
Image image = Image.FromFile(@"c:\apps\amod2.tif");
Bitmap bitmap = new Bitmap(image);
Graphics g = Graphics.FromImage(bitmap);
g.TextRenderingHint = TextRenderingHint.ClearTypeGridFit;
g.PixelOffsetMode =
System.Drawing.Drawing2D.PixelOffsetMode.HighQuality;
textToDraw = "Welcome back my friend";
g.DrawString(textToDraw, textFont, new SolidBrush
(Color.Black), 184, 342);
// Set the resolution and save the bitmap object
bitmap.SetResolution(200,200);
bitmap.Save(@"c:\apps\amod3.tif"); Tag: Using The Equivalent Of 'On Error Resume Next' In A Try/Catch Tag: 62752
License Class and .NET
Hello all -
I've written some custom controls using VS.NET 2003 and .NET 1.1 - I've been
trying to get the licensing to work in the control using the examples at
http://windowsforms.net/articles/Licensing.aspx - for some reason though a
continually get exceptions from the validate method of the LicenseManager
class whenever I try to use the control in another project in my solution.
I've basically setup two projects in a solution - a custom user control
project and a windows form project for testing the control. The code to use
the licenses classes is simple enough, and I think I am creating the .LIC
file correctly in the custom control project - but I always get an
System.ComponentModel.LicenseException whenever I try to use the custom
control - also the licenses.licx never gets created (I think it is supposed
to be created when I drop the control onto the form in the designer).
Any tips on what I am doing wrong - I'm almost sure I've got everything, but
documentation on what to do "outside" the classes with files needing to be
created seems to be lacking and I can't seem to find a tutorial that covers
everything in a clear manor.
Thank you,
Matt Tag: Using The Equivalent Of 'On Error Resume Next' In A Try/Catch Tag: 62751
C# registry problem
I have a program that encrypts a datetime objects "to=20
long datetime string" string to and encrypted sequence. =20
The problem is this: if I use the following source code=20
it works (key is declared earlier and works fine):
string valueName=3D "Date Installed";
key.SetValue(valueName, "=B2=E395=EC.*=FA=DEx =
e=06=B8<=01=A1uO2s=01=AFE=08=D4");
The problem is this code doesn't:
string valueName =3D "Date Installed";
object s1 =3D "=B2=E395=EC.*=FA=DEx e=06=B8<=01=A1uO2s=01=AFE=08=D4";
//(I have tried string instead of object)
key.SetValue(valueName, Convert.ToString(s1));
When I check the registry in this case, only "=B2=E395=EC.*=FA=DEx"=20
was written. Please help if you can! This is driving me=20
crazy! Tag: Using The Equivalent Of 'On Error Resume Next' In A Try/Catch Tag: 62748
Deleting a Datarow from a windows form datagrid
I am having a problem deleting a database row from a datagrid. I have the following code:
CurrencyManager cm1=(CurrencyManager)dataGrid1.BindingContext[dataGrid1.DataSource];
DataRowView drv=(DataRowView) cm1.Current;
DataRow myRow = drv.Row;
myRow.Delete();
ProcessSQLData.SetData("ExpenseLines", ExpLineServSet); 'Sends the databack to the webservice for update
I get an error that says concurreny error 0 records where updated. It seems the the deleted flag for the row in the
dataset is not being set by the above code. Does anyone know what I need to set that flag.
Thanks, Tag: Using The Equivalent Of 'On Error Resume Next' In A Try/Catch Tag: 62747
"Complex" URL in App.config-file
Hi,
Using C# I need to retrieve a setting from my App.config-file (console
application). The key I need to retrieve is shown below.
<appSettings>
<add key="HtmlString"
value=@"http://ADDRESS.com/opdat.php?name=NAME&domain=DOMAIN&pw=PW&silent=1"
/>
</appSettings>
I use the following code to retrieve the setting.
string htmlString = ConfigurationSettings.AppSettings["HtmlString"];
However, I get a runtime error doing this (ConfigurationException). If I
replace the value in the key with something more simple - such as "Test" for
example, it works fine. This leads me to believe that it somehow is the
composition of the URL that is the problem... But what can I do to solve it?
Thanks in advance.
--
Michael Barrett Tag: Using The Equivalent Of 'On Error Resume Next' In A Try/Catch Tag: 62740