|
Second again, thanks for the response and the information.
Actually, I am expecting the same effect. However, a customer is claiming otherwise, so I needed to confirm this since I have not actually started using .NET custom controls in IE yet.
We ship ActiveX GIS engine to this customer, they use it to create Active Document for an intranet application for a big company and this is installed on a server. Individuals are to download the files and install. But they are not supposed to exercise admin rights on their machines - personally hoping administrative handling of MSI could handle the problem.
We wanted to configure the ActiveX GIS to allow non-admin registration, but the customer claims .NET is the way to solve their problem
With no active document in .NET, they are most likely going to create .NET custom/user control to be used in the IE. Hoping this will solve their problem, we are under pressure to give them a .NET version
I, therefore, have no choice but to arm myself with more information
Best regards,
Paul.
Jesus Christ is LOVE! Please tell somebody.
|
|
|
|
|
Paul Selormey wrote:
personally hoping administrative handling of MSI could handle the problem.
You can programmatically request for temporary local admin rights. Discuss it with the MIS in your company.
Paul Selormey wrote:
the customer claims .NET is the way to solve their problem
I have the right article [^]for you.
sometimes it helps to look at the IL generated code
a MS guy on develop.com "answering" .NET issues
|
|
|
|
|
StephaneRodriguez wrote:
I have the right article for you
Thanks, but have you read it? I could not help myself after reading the summary:
In the past, Web developers often used ActiveX controls if they
wanted customized client-side functionality incorporated into
their Web applications. Now, they can build objects supported by
the Microsoft .NET Framework which are more compact, lightweight,
secure, and seamlessly integrated.
Best regards,
Paul.
Jesus Christ is LOVE! Please tell somebody.
|
|
|
|
|
Read it thoroughly Paul. There is everything you need there.
In summary,
- the client must download the .NET run-time, and install the .NET run-time
- he must use the .NET framework control panel to ensure that .NET controls hosted in IE (with IEHost.exe) will work
- to ease end user configuration and approval, in much the same way than with standard ActiveX, you'd better sign them : create a .snk file (public key).
- of course, if your component does a certain r/w access on the filesystem, your component may require the end user to further slide down the IE security level.
I guess what would be fine for you is .NET controls running on the server-side, while being displayed on the client-side. I am not sure about whether it is possible. However I am pretty sure that you'll probably need in the ideal case a deep ASP.NET integration.
Have you tried MS KB and product support ?
sometimes it helps to look at the IL generated code
a MS guy on develop.com "answering" .NET issues
|
|
|
|
|
StephaneRodriguez wrote:
There is everything you need there.
Yes. It is a well written article. Just the part "compact, lightweight" in the summary makes it interesting
StephaneRodriguez wrote:
...However I am pretty sure that you'll probably need in the ideal case a deep ASP.NET integration.
I have done much work with .NET controls in a prototype product here, but 1% on ASP.NET so far - mainly playing with simple samples. I will be looking into this possibility too. Also, the server-side control running on the client will be a great idea - will search more on this.
StephaneRodriguez wrote:
Have you tried MS KB and product support ?
The last time I tried MS product support was with MS Fortran PowerStation 4.0 - guess the year! student days
In our company, there is one in charge of this, I will discuss these points with him. I tried the KB and could not get far, may be my search strings were not informative enough. I have being using the MS product newsgroups on .NET related issues to find some way out.
Thanks for your support too.
Best regards,
Paul.
Jesus Christ is LOVE! Please tell somebody.
|
|
|
|
|
How do I create a "latest news article" viewer, which are very common. The CodeProject home page has one on the right side. I need it to basically show the last X articles, read from the database of course. It should show the first Y characters of the article. Thanks in advance.
|
|
|
|
|
Basically you just need to post an http query (WebRequest )and get the HTML response (WebResponse.GetResponseStream() ) from it. That's what this[^]CP article does.
You usually have a text file, or xml file, listing all URLs, such like in here (web resource provider)[^].
Because it is HTML, you may have to strip all the formatting, such like in here (html parser)[^].
if you start putting in too manay features, it no longer remains useful for beginners
quote in a CP article comment, shiraz baig
|
|
|
|
|
I guess my question is more basic. What control do I place on my ASP.NET web form page?
|
|
|
|
|
I don't know. Try the "Web development" forum. Or Asp.NET[^]
if you start putting in too manay features, it no longer remains useful for beginners
quote in a CP article comment, shiraz baig
|
|
|
|
|
That's way too hard. All the work is already done for you if you use the CP WebService.
Norm Almond: I seen some GUI's in my life but WTF is this mess
Leppie: I made an app for my sister and she wouldnt use it till it was colorful enough
Norm:good point leppie, from that statement I can only deduce that this GUI must be aimed at children
Leppie:My sister is 25
-Norm on the MailMagic GUI
|
|
|
|
|
Client-side and server-side are different things, right ?
sometimes it helps to look at the IL generated code
a MS guy on develop.com "answering" .NET issues
|
|
|
|
|
Yeeeahh... But I don't think he specified where the processing had to take place did he?
Norm Almond: I seen some GUI's in my life but WTF is this mess
Leppie: I made an app for my sister and she wouldnt use it till it was colorful enough
Norm:good point leppie, from that statement I can only deduce that this GUI must be aimed at children
Leppie:My sister is 25
-Norm on the MailMagic GUI
|
|
|
|
|
What has to be done to create a new key in local_machine in the registry? I've given unlimited rights to my assembly, but that only gives me access to Current_User.
Any help would be greatly appreciated.
-Steve
|
|
|
|
|
Can somebody tell me what is a good book that i can buy that is a good started guide for VS .Net.
I am really looking forward to learning everything about VS.NET and I need a good book that will help me.
|
|
|
|
|
Although there are a few about VS .NET, you'll want to pick what language you'd like to learn, whether it be Visual Basic, C# or C++.
If you have no experience with VB then you'll probably have no problem with .NET's design, and as such should little trouble moving to VB.NET. Alternatively, you may choose to take a look at the C-style C# since this is being pushed quite heavily. It benefits from (in my opinion) a very clean syntax compare to either VB or C++.
C++ on the other hand provides the greatest flexibility, it is the only language that allows you to produce native code (i.e. non .NET), but also allows you to produce managed and unmanaged code in the same application. Managed refers to whether instances of objects on the managed heap are monitored by the Garbage Collector, unmanaged refers to those outside of the GC's control (and so you have to manually delete them as with traditional C++).
I started to use .NET with C# (primarily for ASP.NET web applications), and the odd Windows app, however, I've recently been using C++ and its actually been pretty good (if a little frustrating at times), take a look at my Email Validator Control for an example of C++.NET solution involving Win32 API calls, and also the Credit Card Validator control for an example of C# code.
Once you've chosen a language you'll be able to get a book that covers it. For C++ I'd recommend Developing Applications with Visual Studio .NET by Richard Grimes (of many ATL books fame ). I'm not aware of many other books, but if you want to get into C# development (specifically windows rich clients) then Charles Petzold's weight tome is also pretty good.
--
Paul
"I need the secure packaging of Jockeys. My boys need a house!"
- Kramer, in "The Chinese Woman" episode of Seinfeld
MS Messenger: paul@oobaloo.co.uk
Sonork: 100.22446
|
|
|
|
|
Paul Ingles wrote:
but if you want to get into C# development (specifically windows rich clients) then Charles Petzold's weight tome is also pretty good.
It's called Programming Windows with C#, I think, and he's also now translated it into Visual Basic .NET, if you prefer that.
Kevin
|
|
|
|
|
IMHO a lot of so-called .NET books these days are fluff useless marketing. You get nothing but a biased view. And there are so many new topics to be covered that the book is either 10000 pages or it is just 800 and 1000 pages (in this case, this is not enough to cover thoroughly a SINGLE topic).
I would recommend the MSDN doc itself, now that MS has figured out they had to publish tutorials to help us developers embrace the new framework. The tutorials I am talking about is not what is known as the quickstart in the docs. I am really talking about the tutorials.
And also quite of note are the samples on the VS.NET cd. Amazing, and even almost not even mentioned in the docs...
if you start putting in too manay features, it no longer remains useful for beginners
quote in a CP article comment, shiraz baig
|
|
|
|
|
Hi
I have a web control for which I am using a Designer that is derived from
System.Web.UI.Design.ReadWriteControlDesigner.
Now at Runtime I can hide certain controls using the Visible property -
however I cannot determine how to hide controls
programmatically during Design time ie so that they do not show up in the
Visual Studio Design window in HTML view.
I've overridden Render() in my Control class and GetDesignTimeHtml() in my
Designer class but its all to no avail.
Please can you assist me.
Shaun
Stupidity dies.
The end of future offspring.
Evolution wins.
- A Darwin Awards Haiku
|
|
|
|
|
I created a simple app (Localization1) with form (Form1). I want to add russian localization to this application after the compilation. I set Localizable property to True in Form1. In my main function I typed Thread.CurrentThread.CurrentUICulture = new CultureInfo("ru-RU"). After it I copied Form1.resx to Form1.ru.resx, launched "winres.exe Form1.ru.resx" and translated all I need. After it I called "resgen.exe Form1.ru.resx" that created Form1.ru.resources. Then I called "al /t:lib /embed:Form1.ru.resources /culture:ru /out:Localization1.resources.dll /template:bin\debug\Localization1.exe". This command generated Localization1.resources.dll. I copied it to my bin\debug\ru folder and launched Localization1.exe, but it ramains in english locale. What's wrong?
Thanks. Nikita Shamgunov.
|
|
|
|
|
Try to use the code below
Thread.CurrentThread.CurrentUICulture = new CultureInfo("ru").
43 68 65 65 72 73 2c
4d 69 63 68 61 65 6c
|
|
|
|
|
Hi.
How can I determine the amount of free space and total amount of space at a drive using the .NET classes?
Regards
EnkelIk
|
|
|
|
|
declaration:
using System.Runtime.InteropServices;
[DllImport("kernel32", CharSet=CharSet.Auto)]
static public extern bool GetDiskFreeSpaceEx(
string lpDirectoryName,
out Int64 lpFreeBytesAvailable,
out Int64 lpTotalNumberOfBytes,
out Int64 lpTotalNumberOfFreeBytes
);
usage :
Int64 freebytes = 0, totalbytes = 0, totalfreebytes = 0;
GetDiskFreeSpaceEx(@"c:\\tmp", out freebytes, out totalbytes, out totalfreebytes);
Warning : 64-bit output.
if you start putting in too manay features, it no longer remains useful for beginners
quote in a CP article comment, shiraz baig
|
|
|
|
|
StephaneRodriguez wrote:
Int64
Just curious; any particular reason you are using Int64 instead of long? So far I haven't had to deal with a situation where I needed a 64 bit number so please enlighten me of any problems
James
Sig code stolen from David Wulff
|
|
|
|
|
No problem until now. I want to make sure those who use interop functions such like GetFreeDiskSpaceEx know that the result is not 32 bits. You probably know that GetFreeDiskSpace() raised a lot of problems for us 32-(bit people, as this API method was there before huge drives came in the market.
if you start putting in too manay features, it no longer remains useful for beginners
quote in a CP article comment, shiraz baig
|
|
|
|
|
I attempted to use this function in J# but the compiler issues this message:
'Cannot resolve name 'System.Runtime.InteropServices'
How can I solve this problem?
Thanks
Arash
Arash Afifi
Software Engineer
Fax: +1(309)276-7070
E-mail: afifi@sympatico.ca
|
|
|
|