﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebDesktop - WebDesktop - Programmatically Create Shortcuts</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebDesktop---Programmatically-Create-Shortcuts/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>WebDesktop - Programmatically Create Shortcuts</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebDesktop---Programmatically-Create-Shortcuts/</link><pubDate>Wed, 14 Oct 2009 06:13:10 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><category>WebDesktop</category><category>shortcuts</category><category>dynamically</category><category>programmatically</category><category>create</category><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;If you want to use C# code, you will need to use on page_load or FullPostback.&lt;/p&gt;
&lt;p&gt;e.g Here is my code that i used on my sample and it worked at my end.&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;protected void Page_Load(object sender, EventArgs e)
    {
        WebDesktopShortcut shortcut1 = new WebDesktopShortcut();
        shortcut1.Name = "Shortcut";
        shortcut1.Text = "Shortcut";
        shortcut1.Image = "~/images/1.gif";
        shortcut1.TargetURL = "http://www.google.com";
        shortcut1.ToolTip = "";
        shortcut1.WindowName = "wdShorCut";
        shortcut1.TargetControlBoxImage = "~/images/2.gif";
        WebDesktopManager1.ShortcutIcons.Add(shortcut1);
        WebDesktopManager1.ShortcutIconsVisible = true;
    }&lt;/pre&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;
&lt;p /&gt;</description></item><item><title>WebDesktop - Programmatically Create Shortcuts</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebDesktop---Programmatically-Create-Shortcuts/</link><pubDate>Tue, 13 Oct 2009 23:06:43 GMT</pubDate><dc:creator>alex@millhorn.com</dc:creator><category>WebDesktop</category><category>shortcuts</category><category>dynamically</category><category>programmatically</category><category>create</category><description>&lt;p&gt;How can this be accomplished upon page_load using .NET C# statements -- instead of client side javascript.  &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I assumed the following would work, but it did not:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;ISNet.WebUI.WebDesktop.WebDesktopWindow window = new ISNet.WebUI.WebDesktop.WebDesktopWindow();&lt;br /&gt;            window.Name = "wndTest";&lt;br /&gt;            window.Text = "Window Text";&lt;br /&gt;            window.ContentMode = ISNet.WebUI.WebDesktop.ContentMode.UseIFrame;&lt;br /&gt;            window.ContentURL = "/Error.aspx";&lt;br /&gt;            window.ClientVisible = true;&lt;br /&gt;            WebDesktopManager1.Windows.Add(window);&lt;br /&gt;            ISNet.WebUI.WebDesktop.WebDesktopShortcut shortcut = new ISNet.WebUI.WebDesktop.WebDesktopShortcut();&lt;br /&gt;            shortcut.Name = "Sample Shortcut";&lt;br /&gt;            shortcut.ToolTip = "Tooltip Text";&lt;br /&gt;            shortcut.TargetURL = "/Welcome.aspx";&lt;br /&gt;            shortcut.Image = "icon.ico";&lt;br /&gt;            shortcut.Visible = true;&lt;br /&gt;            shortcut.WindowName = "wndTest";&lt;br /&gt;            WebDesktopManager1.ShortcutIcons.Add(shortcut);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        }&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>WebDesktop - Programmatically Create Shortcuts</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebDesktop---Programmatically-Create-Shortcuts/</link><pubDate>Tue, 13 Oct 2009 21:57:38 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><category>WebDesktop</category><category>shortcuts</category><category>dynamically</category><category>programmatically</category><category>create</category><description>&lt;p&gt;Here is my simple sample. You only need to specify the image. Hope this can helps.&lt;/p&gt;&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>WebDesktop - Programmatically Create Shortcuts</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebDesktop---Programmatically-Create-Shortcuts/</link><pubDate>Tue, 13 Oct 2009 15:40:39 GMT</pubDate><dc:creator>alex@millhorn.com</dc:creator><category>WebDesktop</category><category>shortcuts</category><category>dynamically</category><category>programmatically</category><category>create</category><description>&lt;p&gt;Good day,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I'd like to make our WebDesktop shortcuts / taskbar items populate dynamically based upon the privs of the currently logged in user.  Can you kindly provide C# examples for programmatically creating a shortcut, specifying its targetURL, iconURL, and window properties.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thank you in advance.&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>