﻿<?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 - postback</title><link>http://www.intersoftsolutions.com/Community/Tags/postback/</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>Regarding Loading Dependency WebCombo with MultipleSelectionSettings Enabled="True" Without Postback</title><link>http://www.intersoftsolutions.com/Community/Tags/postback/</link><pubDate>Tue, 25 Apr 2017 16:14:55 GMT</pubDate><dc:creator>sphinxg@usa.net</dc:creator><category>WebCombo</category><category>postback</category><category>Mul</category><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;We are using Web Combo version 6. &lt;/p&gt;&lt;p&gt;We are using multiple WebCombo's with &lt;/p&gt;&lt;p&gt;&lt;span color="#800000" face="Consolas" size="2"&gt;&lt;span color="#800000" face="Consolas" size="2"&gt;&lt;span color="#800000" face="Consolas" size="2"&gt;MultipleSelectionSettings&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span face="Consolas" size="2"&gt;&lt;span face="Consolas" size="2"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span color="#ff0000" face="Consolas" size="2"&gt;&lt;span color="#ff0000" face="Consolas" size="2"&gt;&lt;span color="#ff0000" face="Consolas" size="2"&gt;Enabled&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span color="#0000ff" face="Consolas" size="2"&gt;&lt;span color="#0000ff" face="Consolas" size="2"&gt;&lt;span color="#0000ff" face="Consolas" size="2"&gt;="True"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Based on first WebCombo the second should be filled.&lt;/p&gt;&lt;p&gt;And based on the selected values in the first and second WebCombo the third WebCombo needs to be filled. &lt;/p&gt;&lt;p&gt;&lt;strong&gt;Kindly let us know on achieving the same without Postback.&lt;/strong&gt;&lt;br&gt;&lt;/p&gt;</description></item><item><title>Webcombo behaviour to stop fires AutoPostback</title><link>http://www.intersoftsolutions.com/Community/Tags/postback/</link><pubDate>Tue, 10 Nov 2015 15:33:29 GMT</pubDate><dc:creator>sjain</dc:creator><category>WebCombo</category><category>postback</category><description>&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;Hi,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;I have webcombo on page, when we click on webcombo menu(marked as blue round in attached picture) to&amp;nbsp;&lt;/p&gt;&lt;p&gt;load the data then &amp;nbsp;it fiers the postback event to server side.&lt;/p&gt;&lt;p&gt;which I DON'T want. I want to stop this behaviour.&lt;/p&gt;&lt;p&gt;Please give me solution when we click on webcombo menu then it should not fire sever side page_load event.&lt;/p&gt;&lt;p&gt;Regards&lt;/p&gt;&lt;p&gt;Sachin Jain&lt;/p&gt;</description></item><item><title>WebListBox cant detect Selected item is this a bug?</title><link>http://www.intersoftsolutions.com/Community/Tags/postback/</link><pubDate>Mon, 06 Jun 2011 06:57:41 GMT</pubDate><dc:creator>neil.turner@ntd.co.uk</dc:creator><category>bug</category><category>postback</category><category>weblistbox</category><category>selected</category><category>item</category><description>&lt;p style=""&gt;I'm trying to get the selected item of a WebListBox on post back so i can add one item in a weblistbox to another WebListBox but the selected item isn't being detected selected when the button is clicked&lt;/p&gt;
&lt;p style=""&gt;Code below&lt;/p&gt;
&lt;p style="" /&gt;
&lt;p style=""&gt;               &amp;lt;table cellspacing="0" cellpadding="0"&amp;gt;&lt;/p&gt;
&lt;p style=""&gt;                    &amp;lt;tr valign="top"&amp;gt;&lt;/p&gt;
&lt;p style=""&gt;                    &amp;lt;td&amp;gt;&lt;/p&gt;
&lt;p style=""&gt;                        &amp;lt;ISWebEssentials:WebListBox ID="WebListBox1" runat="server" Height="160px" &lt;/p&gt;
&lt;p style=""&gt;                            Width="250px" &amp;gt;&lt;/p&gt;
&lt;p style=""&gt;                            &amp;lt;Items&amp;gt;&lt;/p&gt;
&lt;p style=""&gt;                                &amp;lt;ISWebEssentials:WebListBoxItem Name="WebListBoxItem0" Text="1" /&amp;gt;&lt;/p&gt;
&lt;p style=""&gt;                                &amp;lt;ISWebEssentials:WebListBoxItem Name="WebListBoxItem1" Text="2" /&amp;gt;&lt;/p&gt;
&lt;p style=""&gt;                                &amp;lt;ISWebEssentials:WebListBoxItem Name="WebListBoxItem2" Text="3" /&amp;gt;&lt;/p&gt;
&lt;p style=""&gt;                                &amp;lt;ISWebEssentials:WebListBoxItem Name="WebListBoxItem3" Text="4" ToolTip="4" /&amp;gt;&lt;/p&gt;
&lt;p style=""&gt;                            &amp;lt;/Items&amp;gt;&lt;/p&gt;
&lt;p style=""&gt;                            &amp;lt;/ItemStyle&amp;gt;&lt;/p&gt;
&lt;p style=""&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=""&gt;                        &amp;lt;/ISWebEssentials:WebListBox&amp;gt;&amp;lt;/td&amp;gt;&lt;/p&gt;
&lt;p style=""&gt;                    &amp;lt;td width="60" align="center" valign="middle"&amp;gt;&lt;/p&gt;
&lt;p style=""&gt;                        &amp;lt;asp:Button ID="Button1" runat="server" Text="Add" ToolTip="Add item" onclick="btnAddItem_Click" /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;/p&gt;
&lt;p style=""&gt;                    &amp;lt;/td&amp;gt;&lt;/p&gt;
&lt;p style=""&gt;                    &amp;lt;td&amp;gt;&lt;/p&gt;
&lt;p style=""&gt;                        &amp;lt;ISWebEssentials:WebListBox ID="WebListBox2" runat="server" Height="160px" Width="250px"&amp;gt;&lt;/p&gt;
&lt;p style=""&gt;                            &amp;lt;Items&amp;gt;&lt;/p&gt;
&lt;p style=""&gt;                                &amp;lt;ISWebEssentials:WebListBoxItem Name="WebListBoxItem0" Text="a" /&amp;gt;&lt;/p&gt;
&lt;p style=""&gt;                            &amp;lt;/Items&amp;gt;&lt;/p&gt;
&lt;p style=""&gt;                        &amp;lt;/ISWebEssentials:WebListBox&amp;gt;&amp;lt;/td&amp;gt;&lt;/p&gt;
&lt;p style=""&gt;                    &amp;lt;/tr&amp;gt;&lt;/p&gt;
&lt;p style=""&gt;                &amp;lt;/table&amp;gt;&lt;/p&gt;
&lt;p style=""&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=""&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=""&gt;Code behind&lt;/p&gt;
&lt;p style=""&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style="" /&gt;
&lt;p style=""&gt;        protected void btnAddItem_Click(object sender, EventArgs e)&lt;/p&gt;
&lt;p style=""&gt;        {&lt;/p&gt;
&lt;p style=""&gt;            foreach (WebListBoxItem wli in WebListBox1.Items)&lt;/p&gt;
&lt;p style=""&gt;            {&lt;/p&gt;
&lt;p style=""&gt;                if (wli.Selected)&lt;/p&gt;
&lt;p style=""&gt;                {&lt;/p&gt;
&lt;p style=""&gt;                    WebListBox2.Items.Add(wli);&lt;/p&gt;
&lt;p style=""&gt;                }&lt;/p&gt;
&lt;p style=""&gt;            }&lt;/p&gt;
&lt;p style=""&gt;        }&lt;/p&gt;
&lt;p /&gt;
&lt;p style=""&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=""&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p /&gt;</description></item><item><title>How to avoid XML in WebGrid's AJAX postback?</title><link>http://www.intersoftsolutions.com/Community/Tags/postback/</link><pubDate>Thu, 25 Nov 2010 11:24:49 GMT</pubDate><dc:creator>Eric</dc:creator><category>WebGrid</category><category>Filter</category><category>AJAX</category><category>postback</category><category>input validation</category><category>IV</category><category>POST</category><category>HTTP</category><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We use the latest version of WebGrid 6.&lt;/p&gt;
&lt;p&gt;In our server infrastructure there are some servers in front of our IIS. These servers do input validation to prevent cross site scripting attacks. I have no control on what is filtered there, but I received a blocking log.&lt;/p&gt;
&lt;p&gt;The problem is that anything that looks like XML will be blocked. A string like:&lt;/p&gt;
&lt;pre&gt;" abc = … &amp;gt;&lt;/pre&gt;

&lt;p&gt;anywhere in a POST data field will be blocked. And I found a blocked (AJAX?) POST request, looking like it came from WebGrid.&lt;/p&gt;
&lt;p&gt;Interestingly our application works - including all WebGrid functionality. But we do see some problems.&lt;/p&gt;
&lt;p&gt;Questions:&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;Does your WebGrid support such industry-standard high security environments in general?&lt;/li&gt;&lt;li&gt;Is there a way to avoid XML data in POST fields?&lt;/li&gt;&lt;li&gt;Is there a known bug in data encoding?&lt;/li&gt;&lt;li&gt;Do these AJAX postbacks have a special HTTP header field that could be used to distinguish if this is a special postback and not a standard form post? If yes, maybe the input validation can be disabled (or relaxed) for such requests.&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;It would be great if you could answer these four questions.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Eric&lt;/p&gt;</description></item><item><title>Unbound WebGrid example wanted / Help on common design</title><link>http://www.intersoftsolutions.com/Community/Tags/postback/</link><pubDate>Mon, 07 Jun 2010 12:13:20 GMT</pubDate><dc:creator>Eric</dc:creator><category>WebGrid</category><category>Server-side</category><category>WebGrid 6</category><category>Unbound</category><category>example</category><category>postback</category><category>new row</category><category>add row</category><description>&lt;p&gt;Hi, I have a screen with lots of controls and one list of items. This item list is shown in a WebGrid. I have two buttons to add and remove items into/from that list. When adding, another modal dialog pops up to select the correct item. When deleting, this is done by a checkbox column in the grid. And there's a save button on the form to save all data together back to the database. When a new row gets added to the WebGrid, this may not be saved to the database at that time, only later, if the user clicks on Save.&lt;/p&gt;
&lt;p&gt;I had to make bigger changes of this existing (working) page, because of bad design. Actually I almost had to rewrite it.&lt;/p&gt;
&lt;p&gt;In Page.Load I read in all data from the database (including the list of items) and store this in a local structure. I do not want to use session variables. Storing data in ViewState would be ok.&lt;/p&gt;
&lt;p&gt;What is the correct way of implementing something like this? It seems to be a standard problem. Is there a demo for this available somewhere? Should I make the WebGrid somehow unbound?&lt;/p&gt;
&lt;p&gt;In Page.Load I read in the data. And in grid.&lt;span style="font-size: 13px"&gt;InitializeDataSource I set the e.DataSource to the values from what I read in Page.Load earlier (by creating a table and assigning it). On Postback, I cannot read in the data again, because this would overwrite the current data. So after a Postback, the internal variable doesn't contain any data anymore. When clicking on Save, I save all fields back to the database. Is this design correct so far?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 13px"&gt;But how would I implement the insert/delete of the rows to the WebGrid? For the Add button (&amp;lt;asp:Button&amp;gt;) I &lt;/span&gt;have an attribute like this: OnClientClick="ModalDialog(...&lt;/p&gt;
&lt;p&gt;In the click handler on the server side I read the ID of the selected item from a session variable (still bad design, but unchanged), which was set in the selection dialog, then get some more info from the DB and I think then I should add this data as a row to the WebGrid. Is that correct? How would I add this row? In the Button click event adding a row to the grid.RootTable? And even if this would work, how should I afterwards refresh the grid?&lt;/p&gt;
&lt;p&gt;Please help getting this designed correct with your control. We are using WebGrid version 6.0.7200.218. An example would be even better. But just help on the design is also ok. I think because this is a common problem, maybe there is already an example somewhere.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item></channel></rss>