<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://sqlserver.ro/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>Visual Studio</title><link>http://sqlserver.ro/forums/44/ShowForum.aspx</link><description>Visual Studio, .NET Framework, Extensii</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>Re: Ajutor - ListBox VisualStudio ASP.Net</title><link>http://sqlserver.ro/forums/thread/8098.aspx</link><pubDate>Tue, 09 Mar 2010 14:04:42 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:8098</guid><dc:creator>hyghnet</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/8098.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=44&amp;PostID=8098</wfw:commentRss><description>multumesc mult pentru ajutor, problema era de la mine. Am pus o conditie (inainte sa pun  If NOT ISpostBack) in cazul in care SelectedIndex = 0 sa-mi afiseze un mesaj ca sa pot vedea ce valoare are indexul, dupa ce m-ai ajuta am uitat sa scot acea conditie. Acum totul este OK. Multumesc inca o data</description></item><item><title>Re: Ajutor - ListBox VisualStudio ASP.Net</title><link>http://sqlserver.ro/forums/thread/8096.aspx</link><pubDate>Tue, 09 Mar 2010 10:55:20 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:8096</guid><dc:creator>ignatandrei</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/8096.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=44&amp;PostID=8096</wfw:commentRss><description>tocmai ti-am spus in html, nu in aspx ...&lt;br&gt;Ruleaza pagina in IE/FF&amp;nbsp; , da-i View=&amp;gt; Source si cauta lstComplete&lt;br&gt;</description></item><item><title>Re: Ajutor - ListBox VisualStudio ASP.Net</title><link>http://sqlserver.ro/forums/thread/8095.aspx</link><pubDate>Tue, 09 Mar 2010 10:33:26 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:8095</guid><dc:creator>hyghnet</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/8095.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=44&amp;PostID=8095</wfw:commentRss><description>td style="width: 151px" rowspan="3"&lt;br /&gt;                    asp:Label ID="lblComplete" runat="server" Text="Lista complete"/asp:Label&gt;&lt;br /&gt;                    asp:ListBox ID="lstComplete" runat="server" Height="317px" Width="176px"/asp:ListBox /td&lt;br /&gt;                td style="width: 49px"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;respectivul ListBox este pus intr-o celula a unui tabel daca conteaza asta</description></item><item><title>Re: Ajutor - ListBox VisualStudio ASP.Net</title><link>http://sqlserver.ro/forums/thread/8094.aspx</link><pubDate>Tue, 09 Mar 2010 10:18:03 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:8094</guid><dc:creator>ignatandrei</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/8094.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=44&amp;PostID=8094</wfw:commentRss><description>ce este in codul html(nu aspx!) la lstcomplete ?&lt;br&gt;</description></item><item><title>Re: Ajutor - ListBox VisualStudio ASP.Net</title><link>http://sqlserver.ro/forums/thread/8093.aspx</link><pubDate>Tue, 09 Mar 2010 10:06:49 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:8093</guid><dc:creator>hyghnet</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/8093.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=44&amp;PostID=8093</wfw:commentRss><description>scuze, m-am exprimat gresit&lt;br /&gt;&lt;br /&gt;selectez primul item din lstComplete i=0 si&lt;br /&gt;cand apelez &lt;br /&gt;Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click &lt;br /&gt;txtcomplet.Text = lstcomplete.SelectedItem.Value &lt;br /&gt;End Sub &lt;br /&gt;&lt;br /&gt;rezulta &lt;br /&gt;txtcomplet.Text  nu afiseaza nimic ca si cum nu as fi selectat nimic, daca selectez al doilea sau urmatoarele totul este ok.&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: Ajutor - ListBox VisualStudio ASP.Net</title><link>http://sqlserver.ro/forums/thread/8092.aspx</link><pubDate>Tue, 09 Mar 2010 09:08:22 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:8092</guid><dc:creator>ignatandrei</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/8092.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=44&amp;PostID=8092</wfw:commentRss><description>Pai... habar nu am ce intelegi tu prin "nu pot selecta"....&lt;br&gt;</description></item><item><title>Re: Ajutor - ListBox VisualStudio ASP.Net</title><link>http://sqlserver.ro/forums/thread/8090.aspx</link><pubDate>Tue, 09 Mar 2010 06:32:03 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:8090</guid><dc:creator>hyghnet</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/8090.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=44&amp;PostID=8090</wfw:commentRss><description>Am pus autopostback si aceiasi problema, nu pot selecta primul ITEM, index i=0. Multumesc pentru ajutor, in rest functioneza.&lt;br /&gt;Daca populez LisBoxul - cu wizardul pus la bataie de VS se intampla acelasi lucru, item i=0 nu il pot selecta. Banuiesc ca este ceva de la mine.</description></item><item><title>Re: Ajutor - ListBox VisualStudio ASP.Net</title><link>http://sqlserver.ro/forums/thread/8089.aspx</link><pubDate>Mon, 08 Mar 2010 13:39:34 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:8089</guid><dc:creator>ignatandrei</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/8089.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=44&amp;PostID=8089</wfw:commentRss><description>pai poti pune autopostback la true - ca sa faca postback&lt;br&gt;</description></item><item><title>Re: Ajutor - ListBox VisualStudio ASP.Net</title><link>http://sqlserver.ro/forums/thread/8088.aspx</link><pubDate>Mon, 08 Mar 2010 13:06:09 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:8088</guid><dc:creator>hyghnet</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/8088.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=44&amp;PostID=8088</wfw:commentRss><description>OK - multumesc mult (Incepator). Am pus conditia (Not IspostBAck) si functioneaza, insa daca selectez prima linie cu indexul i=0 nu se intampla nimic ca si cum nu as fi selectat nimic.</description></item><item><title>Re: Ajutor - ListBox VisualStudio ASP.Net</title><link>http://sqlserver.ro/forums/thread/8087.aspx</link><pubDate>Mon, 08 Mar 2010 12:53:12 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:8087</guid><dc:creator>ignatandrei</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/8087.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=44&amp;PostID=8087</wfw:commentRss><description>1. Trebuia sa pui if(Not Ispostback) in Page_load , altfel ti se incarca combo-ul de fiecare data&lt;br&gt;&lt;br&gt;2. Daca nu ai nimic in lstcomplete , ce te faci ? ( sa zicem ca nu ai nimic in tabela complet) &lt;br&gt;&lt;br&gt;if not (lstComplete.SelectedItem is nothing) then&lt;br&gt;txtcomplet.Text = lstcomplete.SelectedItem.Value
&lt;br&gt;else&lt;br&gt;' ce pui acolo ?&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</description></item><item><title>Ajutor - ListBox VisualStudio ASP.Net</title><link>http://sqlserver.ro/forums/thread/8086.aspx</link><pubDate>Mon, 08 Mar 2010 12:28:35 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:8086</guid><dc:creator>hyghnet</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/8086.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=44&amp;PostID=8086</wfw:commentRss><description>Urmatoarea situatie - System.NullReferenceException: Object reference not set to an instance of an object. :&lt;br /&gt;Visual Studio 2005 ASP.Net urmatorul cod:&lt;br /&gt;    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load&lt;br /&gt;        cs.Open()&lt;br /&gt;        sqlfltr = "select * from complet"&lt;br /&gt;        da = New SqlDataAdapter(sqlfltr, cs)&lt;br /&gt;        da.Fill(ds, sqlfltr)&lt;br /&gt;        dv = New DataView(ds.Tables(sqlfltr))&lt;br /&gt;        lstcomplete.DataSource = dv&lt;br /&gt;        lstcomplete.DataValueField = "nume"&lt;br /&gt;        lstcomplete.DataTextField = "nume"&lt;br /&gt;        lstcomplete.DataBind()&lt;br /&gt;    End Sub&lt;br /&gt;&lt;br /&gt;    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click&lt;br /&gt;        txtcomplet.Text = lstcomplete.SelectedItem.Value&lt;br /&gt;    End Sub&lt;br /&gt;&lt;br /&gt;Se populeza cu datele din baza apoi da urmatoarea eroare:&lt;br /&gt;Server Error in '/test' Application.&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;Object reference not set to an instance of an object. &lt;br /&gt;Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. &lt;br /&gt;&lt;br /&gt;Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.&lt;br /&gt;&lt;br /&gt;Source Error: &lt;br /&gt;Line 22: &lt;br /&gt;Line 23:     Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click&lt;br /&gt;Line 24:         txtcomplet.Text = lstcomplete.SelectedItem.Value&lt;br /&gt;Line 25:     End Sub&lt;br /&gt;Line 26: &lt;br /&gt;Source File: C:\Inetpub\wwwroot\test\Default.aspx.vb    Line: 24 &lt;br /&gt;&lt;br /&gt;Stack Trace: &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[NullReferenceException: Object reference not set to an instance of an object.]&lt;br /&gt;   _Default.Button1_Click(Object sender, EventArgs e) in C:\Inetpub\wwwroot\test\Default.aspx.vb:24&lt;br /&gt;   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +78&lt;br /&gt;   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +100&lt;br /&gt;   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10&lt;br /&gt;   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13&lt;br /&gt;   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36&lt;br /&gt;   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2863&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3082 &lt;br /&gt;&lt;br /&gt;Multumesc Anticipat ma doare capul de cateva zile si nu-i dau de cap.&lt;br /&gt;&lt;br /&gt;P.S. Incepator in ale programatului</description></item></channel></rss>