how to code asp.net (.aspx) to show ballon on system tray - asp.net

I created a page named discussion_monitoring.aspx for fraud monitoring, impolite wording monitor. When detected, I just want to show balloon on system tray. but I haven't found that code to show balloon on taskbar system tray. Most example code I found is on Windows forms, not webform.
Environment: ASP.Net 2.0, Windows XP.

You want to show a balloon in the user's system tray? You can't do it. A web page doesn't have the level of desktop access (shy of an ActiveX control) necessary to make changes like that.
The closest you can hope to achieve is some kind of notification on the web page itself.
If you want the balloon to appear on the server's desktop, you should be able to use the same code that you've seen in a WinForms context. Just import the appropriate WinForms assemblies (System.Windows.Forms, probably System.Drawing), and you're good to go.
Note that it can get hairy, triggering GUI activity on your server from a webapp. You don't want to do things like open a dialog and wait for a response you're never going to get, for instance.

As "Michael Petrotta" said, you can't... But here is the Javascript for showing baloon in the page: http://mckay.cshl.edu/balloons.html

Related

identify button is not visible while spying objects in blue prism

While spying objects in blueprism using application modeller, i am not able to see identify button, instead just seeing only launch option.
It's because the application that you are tring to spy on, isn't launched.
You need to launch it first(from BP)and then Blue Prism alow you to spy on it. If you open aplication "on your own" BP wont see it.
In Win 10, some applications like calculator cannot be spyed as in Win 7.
In order to get identify button you need to do belows:
Launch the application in an object using Navigate stage.
For example, you can create an object with the name "Launch".
Attach the application. You need to create another object using Navigate stage with the name "Attach".
Then you need to use Page stage referencing "Attach" page after Launch stage.
When you complete above, please run it and then, click on the Application Modeler. You can be able to use Identify button at that time.
My blue prism object screen
Kindly reconfigure the application in application modeller, while doing so, give attention to the options you select in application modeller. Setting the correct options like web based or windows based application the problem will be resolved.
Can be two reasons:
Either your application is not launched properly.
Sometimes we face problems with some versions of applications.
The best way to fix your problem is
Edit your settings remove the application path from the navigate stage.
Launch the application separately
Open Navigate stage > Action > Attach
Provide the window title within quotes (example: "Calculator")
Click OK then run the object
Now if you go to application modeller
You will be able to see the identify button under the element.
Hope this will help you.
"Microsoft.WindowsCalculator" use in the application executable path in application modeller.put Microsoft.WindowsCalculator in between < >

Is it possible to modify/customize the Component "Info" details in Tridion 2011

Is it possible to modify/customize the Component "Info" tab details according to user. Please see the details below:
Now in above image, I want to show full path of Image like (d:\images\Chrysanthemum.jpg) "Original File:" as it was coming Tridion 2009.
Is it possible?
Unfortunately these are ReadOnly fields set by the system.
If the item was uploaded using the SDL Tridion UI, this should contain the full path of the original image (I am surprised to see only the filename without the path), however it won't tell you from which editor's machine the path was on, so it is of very little use.
What are you trying to achieve and why? Perhaps someone can suggest a different approach.
Showing extra image information, such as size and dimensions, is a great idea and a good candidate for a gui extension.
Your solution has 4 parts:
Backend, talking with the Tridion API using Core Service to get the MM Image and perform size and dimension calculations. (maybe the dimensions could be calculated in javascript?). In the Core Service write some C# code to get the image from Tridion and calculate image size.
Expose the backend call via a Web Service. I like to use ServiceStack.Net and create a very simple, thin web service on top of the C# code. If you create an asp.net web app and host the ServiceStack web service there then make sure to deploy it to a 'Web App' or Virtual Directory under the Tridion 2011 IIS site. This will help with any Post actions since it will use the same port # and not be considered cross-domain. Pluralsight has a great training video on Servicestack. Also, you can use Rest Console in the Chrome browser to test the web service.
Call web service from an HTML page with jQuery. Create a small web form, serialize it with jQuery, and call the ServiceStack web service. The jQuery response will be a JSON object with image info.
Create an ASCX control, configure Tridion to use it as a Tab extension. Copy/paste your working HTML / jQuery into the tab.
All done!

How to integrate website with client-side application?

I want to develop a webapp using ASP.NET but it have to use some client-side functionality provided by desktop application also developed by me.
Existing example: in Picasa Web Album you can click a link called "Download to Picasa" which opens Picasa desktop application and downloads album.
I suppose it require different approaches on different platforms. What are the possibilities to make it work on both Windows and Mac OS X?
Register a custom URL Protocol Handler. Look here: https://stackoverflow.com/a/2429803/449906
I don't know Picasa in detail, but your case sounds like, you start a download by clicking the link "download to picasa". This download will start a link like this:
picasa:///downloadfeed/?uname=ASDFASDFASDF .....
According to your OS any protocol may be associated with a different external program. For information on this you may have a look at the mozilla board .
REGEDIT4
[HKEY_CLASSES_ROOT\foo]
#="URL:foo Protocol"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\foo\shell]
[HKEY_CLASSES_ROOT\foo\shell\open]
[HKEY_CLASSES_ROOT\foo\shell\open\command]
#="\"C:\\Program Files\\Application\\program.exe\" \"%1\""
If you start such a link, your external programm will start and do what ever you want.
hth

Asp.net - implementing Help window

I am working in ASP.Net Web Application. In my application , i have model dialogs opened. After opening model dialog , if i press F1 using keyboard , which should open .htm help files.
In windows application . i have help provider control. But i could not able to find anything here.
Kindly help me in this.
the basic is get the key press in java script , match the key then using jquery (my personal perf) open the link of the page.
and other thing
how are you opening modal dialogs, like using thick box or other java script based plugins or using ajax control toolkit?

Link from ASP.NET yellow error page directly to VS source code

When an ASP.NET application errors out and generates the yellow-screen display, I'd like to create some kind of link from the error page which would jump directly to the correct line of code in Visual Studio.
I'm not sure how to approach this, or if there are any tools already in existence which accomplish it - but I'd love some feedback on where to start.
In the event that generating a new error page is necessary, is it possible to replace the standard yellow screen across an entire webserver, rather than having to configure the customized error output for each application?
You would probably need to embed an ActiveX control in the page for something like that to be possible.
The yellow screen of death is served by the default ASP.NET HTTPHandler.
In order to intercept it, you would need to add another HTTPHandler in front of it that intercepts all uncaught exceptions.
At that point, you could do whatever you want for your error layout.
Creating a way to directly jump to Visual Studio would be tricky. I could see it done in IE via a COM/ActiveX object.
The yellow screen of death is just a 500 error as far as the server is concerned, you can redirect to a custom screen using the error section of the web.config. To make a whole server change in the same manner you could probably override it at the iis level? Or perhaps even set the default behaviour in the machine.config file (not 100% sure about that one though)
The yellow screen of death is just a 500 error as far as the server is concerned, you can redirect to a custom screen using the error section of the web.config. To make a whole server change in the same manner you could probably override it at the iis level? Or perhaps even set the default behaviour in the machine.config file (not 100% sure about that one though)
If you let it bubble up all the way to IIS you will not have any way to access the Exception information. Its better to catch the Exception before the YSOD and serve your own.
This can be done at the application level.
Don't forget that you need the Program Debug Database (pdb) file to find the source code line number. An application in release mode won't have the same level of information as a debug release.
The easiest, laziest thing I could think of would be to have the process happen thusly:
The yellow screen is modified so the line is source code is clickable. When clicked it delivers a small text file with the source file name and line number.
A small program on the PC is tied to the extension of the small file the yellow screen let you download. The program uses visual studio's extensibility model to open the source file and goto that line. The program may need to know where your source code is.
A simple Google search
gives helpful pointers on how to manipulate VS with an external program such as this post on MSDN.
If you want to go snazzier, then there are certainly other methods, but I'd rather write out a quick and dirty program, and get it out of my way so I can be about my business.
Don't let the tools become projects...
-Adam

Resources