|
the upper one is the JavaScript code and the lower one in HTML code that I am using in ASPX file for applying the onmouseover functionality on the login button.
Now I would like to use this button (login) as to navigate to some other page (main.aspx ) after clicking it.
Can somone please tell me the function that I should write in the codebehind page for doing as above................ (I am working in C#)
|
|
|
|
|
Use an imagebutton and handle the onclick event to redirect to a new page.
only two letters away from being an asset
|
|
|
|
|
Is it possible to compile and run my .NET code in .NET 1.1 and .NET2.0 both???
Actually while compiling my code in .NET 2.0, which has been developed in .NET 1.1 getting these errors
Error 1 Warning as Error: 'System.Web.UI.Page.RegisterClientScriptBlock(string, string)' is obsolete: 'Use ClientScript.RegisterClientScriptBlock(string key, string script) instead. http://go.microsoft.com/fwlink/?linkid=14202' D:\FileManagerLibrary\Controls\FileManagerTree.cs 147 4 FileManagerLibrary
Error 201 Warning as Error: 'System.Configuration.ConfigurationSettings.AppSettings' is obsolete: 'This method is obsolete, it has been replaced by ConfigurationManager.AppSettings' D:\FileManagerLibrary\Util.cs 173 22 FileManagerLibrary
Error 175 Warning as Error: 'System.Web.UI.Page.RegisterClientScriptBlock(string, string)' is obsolete: 'Use ClientScript.RegisterClientScriptBlock(string key, string script) instead. http://go.microsoft.com/fwlink/?linkid=14202' D:\FileManagerLibrary\Controls\FileManagerSearchView.cs 563 4 FileManagerLibrary
Anyone please help
Thanks in advance.
|
|
|
|
|
You can run an application written with 1.1 in a 2.0 environment. Your application will still run, these are just warning, however as indicated there are newer methods in 2.0.
only two letters away from being an asset
|
|
|
|
|
Hi,
I would have thought finding a decent WinForms text editor control was a no-brainer when I started my most recent project, but there seem to be no mid-range text editors (RTF or otherwise) on the market at prices I can afford or feel good about paying.
Perhaps my needs just fall into a gray zone in the market, but here's what I'd like to get without spending $600 or more:
1. Should support bullets and numbering (multi-indent)
2. Should support standard formatting (right/left/center justify; indent, outdent etc.)
3. Should support drag and drop
4. Should support standard text decoration (font, bold, italic, fore-color, back-color)
I've gone a fair way to just building one myself, but the subtleties of RTF are a constant drain on my time - particularly things like numbered bullets and multi-level (indented) bullets; I'd really rather just buy something and get on with it since the text editor is a small part of the overall project. It doesn't make sense to take on the responsibility of authoring and fully testing a component like this when it really only makes up a small percentage of my application's features.
Any helpful suggestions are welcome and appreciated. Thanks for your help.
P.S. Yes, I've looked at TX Edit, PinEdit WP and their contemporaries. They're really nice products, but pretty expensive and they tend to be a little too feature-rich for my needs. What I would really like would be something along the lines of FreeTextBox for WinForms.
The most exciting phrase to hear in science, the one that heralds the most discoveries, is not 'Eureka!' ('I found it!') but 'That's funny...’
|
|
|
|
|
Hello,
Is it possible for C# projects and C++ projects share the same library (that's written in either C++/C# also)? By this I mean that the library will contain exposed methods which are accessible by both the C# and C++ projects.
How do you do this?
Thanks,
~Rafferty
|
|
|
|
|
Yes. As a matter of fact, you can compile C++ and C# projects in the same solution.
Best,
Jun
|
|
|
|
|
C# can access C++ functiosn directly using p/invoke. To do the reverse, it's necessary to expose the C# code using a com object.
|
|
|
|
|
If everything is in .NET then just create a C# or C++/CLI class library and reference it from either a C# or C++/CLI project.
If you want unmanaged then what the others suggest is the way to go.
Kevin
|
|
|
|
|
Hi there,
I like to start n number of instances of a .net application from my .net windows serivce. I was wondering if there is a limit for n. Because I tried implementing it but I saw some a .net framework error while I am able to start any number instaces of the same application when I convert this service to a Windows Application. Any idea what's going on here?
Thanks,
|
|
|
|
|
I think you might run into some security problems trying to start a windows application from a service. Try setting the login credentials of your service.
|
|
|
|
|
Thanks for responding. Service is already running under an admin account's privileges, and I noticed that it starts few of the processes but stops starting anymore after 24 processes.
|
|
|
|
|
I started the jit on dev machine and found a clue that this exection is win32exception and raising in the Windows Application (Form Appliction) which is being started by this service. Here is the what I saw, but I am still not sure why this error comes after 24 processes are started without such error. Any comment?
Errors:
1.
An unhandled exception of type 'System.ComponentModel.Win32Exception' occurred in system.windows.forms.dll
Additional information: The parameter is incorrect
And
2.
An unhandled exception of type 'System.ComponentModel.Win32Exception' occurred in system.windows.forms.dll
Additional information: Error creating window handle.
|
|
|
|
|
Ok, I have a question:
Say I have a panel, and in that panel I have a couple of images, arranged in a row, side by side.
Using a timer, I want to 'grow' one of the images and also allow it to grow outside of the panel control without getting clipped.
Is this possible? If so, how would I go about doing this?
|
|
|
|
|
seanwright wrote: Using a timer, I want to 'grow' one of the images and also allow it to grow outside of the panel control without getting clipped.
Is this possible?
Yes, use scrolled window.
Best,
Jun
|
|
|
|
|
Could you be more specific?
|
|
|
|
|
I don't think you actually draw outside the control. What you could do is:
1) Use a scrolled window as your container control. When the image grows larger than the window, use the scroll bar to view the hidden portion.
Or
2) Support panning capability. Basically, when the image is larger than the window, press the left key and drag the image so that the control window shows the portion that you want to see.
In implementation, you draw the entire image to a graphic buffer and only render a portion of it (the same size as the constrol) to the control window.
Hope this helps.
Best,
Jun
|
|
|
|
|
A control normally won't draw outside it's specified area. Of course you can draw outside the control, but there is no way that you can keep what you have drawn up to date. The control will not get any notification that what you have drawn has been erased and needs redrawing.
Create a new control that has the size to contain what you want to draw, place it on top of your control, and use the new control to do the drawing.
---
b { font-weight: normal; }
|
|
|
|
|
Hi
I written code in vc7 win32 console application.Now i want to integrate this code in c# that's why i have to generate a .dll file throgth .Net class library but same code is not compiled in class library.
Even a single line of c++ programe in not compile
i produces errors below
aaa error LNK2020: unresolved token (0A000006) _CxxThrowException
aaa error LNK2020: unresolved token (0A000017) delete
aaa fatal error LNK1120: 2 unresolved externals
plz tell me solution
Parshant
|
|
|
|
|
Parshant Verma wrote: same code is not compiled in class library
That is right. The source code consists of two portions: your code and compiler generated code. The compiler generated code differs between an App and class library. What you should do is creating a new class library project and then moving your own code to the class library. Also, you may need to change your code to fit class library.
Best,
Jun
|
|
|
|
|
How to register an assembly in asp.net web app?How to register an assembly in asp.net web app?How to register an assembly in asp.net web app?How to register an assembly in asp.net web app?How to register an assembly in asp.net web app?How to register an assembly in asp.net web app?How to register an assembly in asp.net web app?How to register an assembly in asp.net web app?How to register an assembly in asp.net web app?How to register an assembly in asp.net web app?How to register an assembly in asp.net web app?How to register an assembly in asp.net web app?How to register an assembly in asp.net web app?How to register an assembly in asp.net web app?How to register an assembly in asp.net web app?How to register an assembly in asp.net web app?How to register an assembly in asp.net web app?
|
|
|
|
|
Sorry, perhaps instead of asking over and over, you should have explained what you mean ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I am looking for a commercial component that does HTML editing for WinForms/C#/.NET 2.0, with full source code.
I am using HTMLEditors MSHTML currently (http://www.itwriting.com/htmleditor/index.php), but it is missing too many features, which turn out to be too expensive to develop.
Can anybody recommend on experience with a good HTML Editor component?
Thanks
Yuval
"The true sign of intelligence is not knowledge but imagination." - Albert Einstein
|
|
|
|
|
My name is Brady, and I have never used .NET security. I now have to deploy a ClickOnce application to various external clients. The application unzips files, reads the registry, and does database and file updates. Running in the Internet Zone I see a problem here. Where do I start?
|
|
|
|
|
Hi Brady
One way of doing it is to add the URL (or website) of the clickonce application to the "trusted sites" zone in Internet Explorer. This should be read by the security mechanism of the CLR.
If this doesn't work - reply again and we'll try something else
Kind regards - Jakob
*********************************************
Three kinds of people in the world:
- Those who can count..
- Those who can't!
10 kinds of people in the world:
- Those who understand binary
- Those who don't
|
|
|
|