﻿<?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 - WebAqua - WebFishEyeButton &amp; WebFishEyeStackButton Server Side Click Event</title><link>http://www.intersoftsolutions.com/Community/WebAqua/WebFishEyeButton--WebFishEyeStackButton-Server-Side-Click-Event/</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>WebFishEyeButton &amp; WebFishEyeStackButton Server Side Click Event</title><link>http://www.intersoftsolutions.com/Community/WebAqua/WebFishEyeButton--WebFishEyeStackButton-Server-Side-Click-Event/</link><pubDate>Mon, 21 Jun 2010 15:10:47 GMT</pubDate><dc:creator>joliechu</dc:creator><description>&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Andi,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;I found the answers for the server side click event of WebFishEyeStackButton &amp;amp; WebFishEyeButton.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;&lt;strong&gt;for WebFishEyeButton:&lt;/strong&gt;&lt;br /&gt;in WebFishEye property set &lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;ButtonClick &lt;/span&gt;&lt;/span&gt;event to the name of the event in code behind.&lt;br /&gt;give every button unique ItemName in its property. &lt;br /&gt;&lt;/span&gt;&lt;span style="font-size: 9pt"&gt;and then in the code behind event, with&amp;nbsp;the parameter &lt;span style="color: #2b91af; font-size: 13px"&gt;&lt;span style="color: #2b91af; font-size: 13px"&gt;WebFishEyeButtonEventArgs &lt;/span&gt;&lt;/span&gt;e, use e.button to get the itemName. so&amp;nbsp;it knows which button&amp;nbsp;is clicked.&lt;br /&gt;by select case/if else, implemet the expected functions.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;for WebFishEyeStackButton:&lt;/strong&gt;&lt;br /&gt;&lt;span style="font-size: 9pt"&gt;in WebFishEye property set &lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;StackButtonClick &lt;/span&gt;&lt;/span&gt;event to the name of the event in code behind.&lt;br /&gt;give every button unique ItemName in its property. &lt;br /&gt;&lt;/span&gt;&lt;span style="font-size: 9pt"&gt;and then in the code behind event, with the parameter &lt;span style="color: #2b91af; font-size: 13px"&gt;&lt;span style="color: #2b91af; font-size: 13px"&gt;WebFishEyeButtonEventArgs &lt;/span&gt;&lt;/span&gt;e, use e.button to get the itemName. so it knows which button is clicked.&lt;br /&gt;by select case/if else, implemet the expected functions.&lt;br /&gt;&lt;br /&gt;&lt;span style="text-decoration: underline"&gt;&lt;strong&gt;&lt;span style="font-size: 10pt"&gt;in XAML:&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;&lt;span style="font-size: 9pt"&gt;&lt;span style="text-decoration: underline"&gt;&lt;strong&gt;&lt;span style="font-size: 10pt"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;ISNet_Silverlight_WebAqua&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;WebFishEye&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt; Height&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="128"&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt; HorizontalAlignment&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="Left"&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;..............&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;StackButtonClick&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="WebFishEye_StackButtonClick"&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt; ButtonClick&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="WebFishEye_ButtonClick"&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 13px"&gt;&lt;span style="text-decoration: underline"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;&lt;span style="font-size: 9pt"&gt;&lt;span style="font-size: 13px"&gt;&lt;span style="text-decoration: underline"&gt;&lt;strong&gt;in Code&amp;nbsp;Behind:&lt;/strong&gt;&lt;/span&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;private void WebFishEye_StackButtonClick(object sender,WebFishEyeButtonEventArgs e) &lt;/p&gt;
&lt;p&gt;{ &lt;br /&gt; WebFishEyeStackButton btn = (WebFishEyeStackButton)e.Button;&lt;br /&gt; if (btn.ItemName == "gtafCalendar")&lt;br /&gt; { &lt;br /&gt;   forumCalendar.Visibility = Visibility.Visible;&lt;br /&gt;  } &lt;br /&gt;} &lt;/p&gt;
&lt;p&gt;private void WebFishEye_ButtonClick(object sender, WebFishEyeButtonEventArgs e)&lt;/p&gt;
&lt;p&gt;{ &lt;br /&gt;   WebFishEyeButton btn = (WebFishEyeButton)e.Button; &lt;br /&gt;   if (btn.ItemName == "News")&lt;br /&gt;   { &lt;br /&gt;     penalNews.Visibility = Visibility.Visible; &lt;br /&gt;   } &lt;br /&gt;}&lt;/p&gt;</description></item><item><title>WebFishEyeButton &amp; WebFishEyeStackButton Server Side Click Event</title><link>http://www.intersoftsolutions.com/Community/WebAqua/WebFishEyeButton--WebFishEyeStackButton-Server-Side-Click-Event/</link><pubDate>Fri, 18 Jun 2010 13:12:16 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><description>&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Hi Jolie,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; Unfotunately, we do not have a server side event on the button or image is clicked. However, on the attached file that I provide to you, it will show a workaround to do that scenario.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; We will need to use a hidden input value to set the validation based on the item or button name on the server side.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; I hope my sample will help you. Thank you and have a nice day.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Andi Santoso&lt;/span&gt;&lt;/p&gt;</description></item><item><title>WebFishEyeButton &amp; WebFishEyeStackButton Server Side Click Event</title><link>http://www.intersoftsolutions.com/Community/WebAqua/WebFishEyeButton--WebFishEyeStackButton-Server-Side-Click-Event/</link><pubDate>Thu, 17 Jun 2010 10:27:01 GMT</pubDate><dc:creator>joliechu</dc:creator><description>&lt;p&gt;How to hook up the server side click event for WebFishEyeButton &amp; WebFishEyeStackButton?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item></channel></rss>