<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.dotnetzone.gr:443/cs/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>ASP.NET WebForms</title><link>https://www.dotnetzone.gr:443/cs/forums/13/ShowForum.aspx</link><description>Θέματα για web εφαρμογές, σε ASP.NET WebForms</description><dc:language>el</dc:language><generator>CommunityServer 2.1 SP3 (Build: 20423.1)</generator><item><title>Απ: Πρόβλημα με διπλό insert σε formview και detailsview με objectDataSource</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/11474.aspx</link><pubDate>Sun, 02 Apr 2006 19:58:57 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:11474</guid><dc:creator>dimkasta</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/11474.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=11474</wfw:commentRss><description>H σελίδα είναι έτσι κι αλλιώς postback&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Παρ' όλα αυτά το δοκίμασα και πάλι δεν παίζει.&lt;br /&gt;&lt;br /&gt;Άν το βάλω με !Page.isPostBack δεν βάζει τίποτα, και το βάλω χωρίς ! το βάζει 2 φορές.</description></item><item><title>Απ: Πρόβλημα με διπλό insert σε formview και detailsview με objectDataSource</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/11471.aspx</link><pubDate>Sun, 02 Apr 2006 18:48:43 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:11471</guid><dc:creator>KelMan</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/11471.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=11471</wfw:commentRss><description>Μήπως συμβαίνει λόγω postback? Δοκίμασες να κάνεις πρώτα έλεγχο στο Page.IsPostBack πριν το DetailsView1.InsertItem?</description></item><item><title>Απ: Πρόβλημα με διπλό insert σε formview και detailsview με objectDataSource</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/11467.aspx</link><pubDate>Sun, 02 Apr 2006 09:14:10 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:11467</guid><dc:creator>dimkasta</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/11467.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=11467</wfw:commentRss><description>Kαλό σαν σκέψη αλλά δεν είναι αυτό τελικά.&lt;br /&gt;&lt;br /&gt;Το δοκίμασα και στο indexchanged και στο indexchanging</description></item><item><title>Απ: Πρόβλημα με διπλό insert σε formview και detailsview με objectDataSource</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/11466.aspx</link><pubDate>Sun, 02 Apr 2006 09:07:46 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:11466</guid><dc:creator>dimkasta</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/11466.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=11466</wfw:commentRss><description>Θα κάνω μια δοκιμή να μην κάνει αν το selectedItemIndex είναι -1</description></item><item><title>Απ: Πρόβλημα με διπλό insert σε formview και detailsview με objectDataSource</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/11465.aspx</link><pubDate>Sun, 02 Apr 2006 08:57:25 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:11465</guid><dc:creator>KelMan</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/11465.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=11465</wfw:commentRss><description>Πάντως, νομίζω ότι το πρόβλημα του διπλού fire του event οφείλεται στο ότι κάθε φορά που αλλάζεις το selected item, γίνεται fire μία φορά γιατί γίνεται deselect το current (selectedItemIndex=-1) και μία δεύτερη γιατί γίνεται select το νέο item.</description></item><item><title>Απ: Πρόβλημα με διπλό insert σε formview και detailsview με objectDataSource</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/11464.aspx</link><pubDate>Sun, 02 Apr 2006 08:18:41 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:11464</guid><dc:creator>cap</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/11464.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=11464</wfw:commentRss><description>Το εφτιαξα καπως. Απλά τώρα κάτι έχει γίνει και ορισμένα sequences γίνονται render σε smilies. Μαλλον καποια αλλαγή που έκανε ο Γιώργος στον editor, θα το τσεκάρουμε.</description></item><item><title>Απ: Πρόβλημα με διπλό insert σε formview και detailsview με objectDataSource</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/11462.aspx</link><pubDate>Sun, 02 Apr 2006 05:46:35 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:11462</guid><dc:creator>dimkasta</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/11462.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=11462</wfw:commentRss><description>Κατι δεν πάει καλά με το code quote&lt;br /&gt;&lt;br /&gt;Μόλις το έβγαλα τα έδειξε κανονικά</description></item><item><title>Απ: Πρόβλημα με διπλό insert σε formview και detailsview με objectDataSource</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/11423.aspx</link><pubDate>Sat, 01 Apr 2006 07:07:10 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:11423</guid><dc:creator>Χρήστος Γεωργακόπουλος</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/11423.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=11423</wfw:commentRss><description>Ξανακάνε post τον κώδικά σου, γιατί βγήκε μπλεγμένος με html...</description></item><item><title>Πρόβλημα με διπλό insert σε formview και detailsview με objectDataSource</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/11421.aspx</link><pubDate>Sat, 01 Apr 2006 06:09:54 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:11421</guid><dc:creator>dimkasta</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/11421.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=11421</wfw:commentRss><description>&lt;P&gt;Τελευταία αντιμετωπίζω το παρακάτω πρόβλημα&lt;/P&gt;
&lt;P&gt;Έχω ένα gridview, στο οποίο έχω ένα ΡΚ.&lt;/P&gt;
&lt;P&gt;Έχω ορίσει στο selectedIndexChanged, να καλεί το insert ενός detailsview.&lt;/P&gt;
&lt;P&gt;Στη συνέχεια, στο ItemInserting του detailsView ορίζω ένα ένα τα parameters από τις τιμές ενός άλλου πίνακα.&lt;/P&gt;
&lt;P&gt;Το πρόβλημα είναι ότι για κάθε selectedIndexChanged, κάνει 2 insert&lt;/P&gt;
&lt;P&gt;Έχει κανείς καμιά ιδέα τι μπορεί να τρέχει?&lt;/P&gt;
&lt;P&gt;Δείγμα του κώδικα&lt;/P&gt;
&lt;P&gt;&lt;span style="color: Black;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt; &lt;br /&gt;&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;protected&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;void&lt;/span&gt; list_SelectedIndexChanged(&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;object&lt;/span&gt; sender, EventArgs e)&lt;br /&gt;{&lt;br /&gt; DetailsView1.InsertItem(&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;false&lt;/span&gt;);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;protected&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;void&lt;/span&gt; DetailsView1_ItemInserting(&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;object&lt;/span&gt; sender, DetailsViewInsertEventArgs e)&lt;br /&gt;{&lt;br /&gt; e.Values[&lt;span style="color: #666666;background-color: #e4e4e4;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"name"&lt;/span&gt;] &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; list.SelectedRow.Cells[3].Text &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;+&lt;/span&gt; &lt;span style="color: #666666;background-color: #e4e4e4;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;" "&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;+&lt;/span&gt; list.SelectedRow.Cells[4].Text;&lt;br /&gt; e.Values[&lt;span style="color: #666666;background-color: #e4e4e4;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"address"&lt;/span&gt;] &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; list.SelectedRow.Cells&lt;img src="/cs/emoticons/emotion-14.gif" alt="Devil [6]" /&gt;.Text;&lt;br /&gt; e.Values[&lt;span style="color: #666666;background-color: #e4e4e4;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"num"&lt;/span&gt;] &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; list.SelectedRow.Cells[7].Text;&lt;br /&gt; e.Values[&lt;span style="color: #666666;background-color: #e4e4e4;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"area"&lt;/span&gt;] &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; list.SelectedRow.Cells&lt;img src="/cs/emoticons/emotion-29.gif" alt="Music [8]" /&gt;.Text;&lt;br /&gt; e.Values[&lt;span style="color: #666666;background-color: #e4e4e4;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"city"&lt;/span&gt;] &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; list.SelectedRow.Cells[9].Text;&lt;br /&gt; e.Values[&lt;span style="color: #666666;background-color: #e4e4e4;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"postalCode"&lt;/span&gt;] &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; list.SelectedRow.Cells[10].Text;&lt;br /&gt; e.Values[&lt;span style="color: #666666;background-color: #e4e4e4;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"state"&lt;/span&gt;] &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; list.SelectedRow.Cells[11].Text;&lt;br /&gt; e.Values[&lt;span style="color: #666666;background-color: #e4e4e4;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"country"&lt;/span&gt;] &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; list.SelectedRow.Cells[12].Text;&lt;br /&gt;&lt;br /&gt;}&lt;/span&gt;&lt;/P&gt;</description></item></channel></rss>