iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Good day,
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.
Thank you in advance.
Hello,
If you want to use C# code, you will need to use on page_load or FullPostback.
e.g Here is my code that i used on my sample and it worked at my end.
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; }
Hope this helps.
Regards,Handy
Here is my simple sample. You only need to specify the image. Hope this can helps.
How can this be accomplished upon page_load using .NET C# statements -- instead of client side javascript.
I assumed the following would work, but it did not:
ISNet.WebUI.WebDesktop.WebDesktopWindow window = new ISNet.WebUI.WebDesktop.WebDesktopWindow(); window.Name = "wndTest"; window.Text = "Window Text"; window.ContentMode = ISNet.WebUI.WebDesktop.ContentMode.UseIFrame; window.ContentURL = "/Error.aspx"; window.ClientVisible = true; WebDesktopManager1.Windows.Add(window); ISNet.WebUI.WebDesktop.WebDesktopShortcut shortcut = new ISNet.WebUI.WebDesktop.WebDesktopShortcut(); shortcut.Name = "Sample Shortcut"; shortcut.ToolTip = "Tooltip Text"; shortcut.TargetURL = "/Welcome.aspx"; shortcut.Image = "icon.ico"; shortcut.Visible = true; shortcut.WindowName = "wndTest"; WebDesktopManager1.ShortcutIcons.Add(shortcut); }
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname