<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[MySQL DB Connection එක මෙහෙම දැම්මහම errors,warnings මුකුත් එන්නෙ නන් නෑ...ඒත් DB එකට data insert වෙන් නෑ..හේතුව මොකක්ද?.]]></title><description><![CDATA[<p dir="auto">using MySql.Data.MySqlClient;<br />
using System.Data;</p>
<p dir="auto">public partial class index : System.Web.UI.Page<br />
{</p>
<pre><code>    public String connectionString = @"server=localhost;port=3306;user id=root;database=Product;persistsecurityinfo=True;password=ThirtyFirst9731@;";
    protected void Page_Load(object sender, EventArgs e)
    {
    

        if (!IsPostBack)
        {
            clear();
        }

    }


    protected void btnInsert_Click(object sender, EventArgs e)
    {
        MySqlConnection mySqlCon = new MySqlConnection(connectionString);

        try
        {
            using (mySqlCon)
            {
                mySqlCon.Open();
             
                MySqlCommand mySqlCmd = new MySqlCommand("Proc_Store_Products", mySqlCon);
                mySqlCmd.CommandType = CommandType.StoredProcedure;
                mySqlCmd.Parameters.AddWithValue("_productId", Convert.ToInt32(hfProductID.Value == "" ? "0" : hfProductID.Value));
                mySqlCmd.Parameters.AddWithValue("_productCode", txtproductCode.Text.Trim());
                mySqlCmd.Parameters.AddWithValue("_productName", txtproductName.Text.Trim());
                mySqlCmd.Parameters.AddWithValue("_price", Convert.ToDecimal(txtprice.Text.Trim()));
                mySqlCmd.Parameters.AddWithValue("_description", txtdescription.Text.Trim());

                mySqlCmd.ExecuteNonQuery();

                clear();
                lblSuccessMsg.Text = "Submitted Successfully";
            }


        }
        catch (Exception ex)
        {
            lblErrorMsg.Text = ex.Message;
        }




    }
</code></pre>
<p dir="auto">}</p>
]]></description><link>https://lankadevelopers.lk/topic/276/mysql-db-connection-එක-ම-හ-ම-ද-ම-මහම-errors-warnings-ම-ක-ත-එන-න-නන-න-ඒත-db-එකට-data-insert-ව-න-න-හ-ත-ව-ම-කක-ද</link><generator>RSS for Node</generator><lastBuildDate>Mon, 09 Mar 2026 22:02:49 GMT</lastBuildDate><atom:link href="https://lankadevelopers.lk/topic/276.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 21 Jun 2019 06:33:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MySQL DB Connection එක මෙහෙම දැම්මහම errors,warnings මුකුත් එන්නෙ නන් නෑ...ඒත් DB එකට data insert වෙන් නෑ..හේතුව මොකක්ද?. on Fri, 21 Jun 2019 10:05:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://lankadevelopers.lk/uid/1096">@Dinuwan-Kalubowila</a> elzzz</p>
]]></description><link>https://lankadevelopers.lk/post/1739</link><guid isPermaLink="true">https://lankadevelopers.lk/post/1739</guid><dc:creator><![CDATA[Nubelle]]></dc:creator><pubDate>Fri, 21 Jun 2019 10:05:43 GMT</pubDate></item><item><title><![CDATA[Reply to MySQL DB Connection එක මෙහෙම දැම්මහම errors,warnings මුකුත් එන්නෙ නන් නෑ...ඒත් DB එකට data insert වෙන් නෑ..හේතුව මොකක්ද?. on Fri, 21 Jun 2019 10:05:15 GMT]]></title><description><![CDATA[<p dir="auto">wade hti mchn.....button click enet eka watila nehe html eke..dan wada..</p>
]]></description><link>https://lankadevelopers.lk/post/1738</link><guid isPermaLink="true">https://lankadevelopers.lk/post/1738</guid><dc:creator><![CDATA[Dinuwan Kalubowila]]></dc:creator><pubDate>Fri, 21 Jun 2019 10:05:15 GMT</pubDate></item><item><title><![CDATA[Reply to MySQL DB Connection එක මෙහෙම දැම්මහම errors,warnings මුකුත් එන්නෙ නන් නෑ...ඒත් DB එකට data insert වෙන් නෑ..හේතුව මොකක්ද?. on Fri, 21 Jun 2019 08:33:24 GMT]]></title><description><![CDATA[<p dir="auto">reunt nawei mchan runat</p>
]]></description><link>https://lankadevelopers.lk/post/1737</link><guid isPermaLink="true">https://lankadevelopers.lk/post/1737</guid><dc:creator><![CDATA[Nubelle]]></dc:creator><pubDate>Fri, 21 Jun 2019 08:33:24 GMT</pubDate></item><item><title><![CDATA[Reply to MySQL DB Connection එක මෙහෙම දැම්මහම errors,warnings මුකුත් එන්නෙ නන් නෑ...ඒත් DB එකට data insert වෙන් නෑ..හේතුව මොකක්ද?. on Fri, 21 Jun 2019 08:32:39 GMT]]></title><description><![CDATA[<p dir="auto">&lt;form id="Form1" reunt = "server" method="POST"&gt;<br />
&lt;asp:Button Text="Button Name" reunt="server" &gt;<br />
&lt;/form&gt;</p>
<p dir="auto">ASP walath me widiyata form tag eke method eka danna onada bn?</p>
]]></description><link>https://lankadevelopers.lk/post/1736</link><guid isPermaLink="true">https://lankadevelopers.lk/post/1736</guid><dc:creator><![CDATA[Dinuwan Kalubowila]]></dc:creator><pubDate>Fri, 21 Jun 2019 08:32:39 GMT</pubDate></item><item><title><![CDATA[Reply to MySQL DB Connection එක මෙහෙම දැම්මහම errors,warnings මුකුත් එන්නෙ නන් නෑ...ඒත් DB එකට data insert වෙන් නෑ..හේතුව මොකක්ද?. on Fri, 21 Jun 2019 08:23:34 GMT]]></title><description><![CDATA[<p dir="auto">web forms neda gahuwe</p>
]]></description><link>https://lankadevelopers.lk/post/1735</link><guid isPermaLink="true">https://lankadevelopers.lk/post/1735</guid><dc:creator><![CDATA[Nubelle]]></dc:creator><pubDate>Fri, 21 Jun 2019 08:23:34 GMT</pubDate></item><item><title><![CDATA[Reply to MySQL DB Connection එක මෙහෙම දැම්මහම errors,warnings මුකුත් එන්නෙ නන් නෑ...ඒත් DB එකට data insert වෙන් නෑ..හේතුව මොකක්ද?. on Fri, 21 Jun 2019 08:21:33 GMT]]></title><description><![CDATA[<p dir="auto">mchn connect wenwa....mokada display wen tika wenwa...eth insert wen ne...asp.net wala form ekakin insert karaddi POST,GET methods denna onada?</p>
]]></description><link>https://lankadevelopers.lk/post/1734</link><guid isPermaLink="true">https://lankadevelopers.lk/post/1734</guid><dc:creator><![CDATA[Dinuwan Kalubowila]]></dc:creator><pubDate>Fri, 21 Jun 2019 08:21:33 GMT</pubDate></item><item><title><![CDATA[Reply to MySQL DB Connection එක මෙහෙම දැම්මහම errors,warnings මුකුත් එන්නෙ නන් නෑ...ඒත් DB එකට data insert වෙන් නෑ..හේතුව මොකක්ද?. on Fri, 21 Jun 2019 08:08:54 GMT]]></title><description><![CDATA[<p dir="auto">break point ekak dala podak run krala balapn</p>
]]></description><link>https://lankadevelopers.lk/post/1733</link><guid isPermaLink="true">https://lankadevelopers.lk/post/1733</guid><dc:creator><![CDATA[Nubelle]]></dc:creator><pubDate>Fri, 21 Jun 2019 08:08:54 GMT</pubDate></item><item><title><![CDATA[Reply to MySQL DB Connection එක මෙහෙම දැම්මහම errors,warnings මුකුත් එන්නෙ නන් නෑ...ඒත් DB එකට data insert වෙන් නෑ..හේතුව මොකක්ද?. on Fri, 21 Jun 2019 08:06:04 GMT]]></title><description><![CDATA[<p dir="auto">sp ekata normal workbench eke  execute kalahama wada krnw bn...</p>
]]></description><link>https://lankadevelopers.lk/post/1732</link><guid isPermaLink="true">https://lankadevelopers.lk/post/1732</guid><dc:creator><![CDATA[Dinuwan Kalubowila]]></dc:creator><pubDate>Fri, 21 Jun 2019 08:06:04 GMT</pubDate></item><item><title><![CDATA[Reply to MySQL DB Connection එක මෙහෙම දැම්මහම errors,warnings මුකුත් එන්නෙ නන් නෑ...ඒත් DB එකට data insert වෙන් නෑ..හේතුව මොකක්ද?. on Fri, 21 Jun 2019 08:04:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://lankadevelopers.lk/uid/1096">@Dinuwan-Kalubowila</a> sp eke aulk aththe mchan ehenam</p>
]]></description><link>https://lankadevelopers.lk/post/1731</link><guid isPermaLink="true">https://lankadevelopers.lk/post/1731</guid><dc:creator><![CDATA[Nubelle]]></dc:creator><pubDate>Fri, 21 Jun 2019 08:04:16 GMT</pubDate></item><item><title><![CDATA[Reply to MySQL DB Connection එක මෙහෙම දැම්මහම errors,warnings මුකුත් එන්නෙ නන් නෑ...ඒත් DB එකට data insert වෙන් නෑ..හේතුව මොකක්ද?. on Fri, 21 Jun 2019 08:03:45 GMT]]></title><description><![CDATA[<p dir="auto">eth hariyan ne bn</p>
]]></description><link>https://lankadevelopers.lk/post/1730</link><guid isPermaLink="true">https://lankadevelopers.lk/post/1730</guid><dc:creator><![CDATA[Dinuwan Kalubowila]]></dc:creator><pubDate>Fri, 21 Jun 2019 08:03:45 GMT</pubDate></item><item><title><![CDATA[Reply to MySQL DB Connection එක මෙහෙම දැම්මහම errors,warnings මුකුත් එන්නෙ නන් නෑ...ඒත් DB එකට data insert වෙන් නෑ..හේතුව මොකක්ද?. on Fri, 21 Jun 2019 07:50:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://lankadevelopers.lk/uid/1096">@Dinuwan-Kalubowila</a> elzzzz balala kiyapn</p>
]]></description><link>https://lankadevelopers.lk/post/1729</link><guid isPermaLink="true">https://lankadevelopers.lk/post/1729</guid><dc:creator><![CDATA[Nubelle]]></dc:creator><pubDate>Fri, 21 Jun 2019 07:50:05 GMT</pubDate></item><item><title><![CDATA[Reply to MySQL DB Connection එක මෙහෙම දැම්මහම errors,warnings මුකුත් එන්නෙ නන් නෑ...ඒත් DB එකට data insert වෙන් නෑ..හේතුව මොකක්ද?. on Fri, 21 Jun 2019 07:49:47 GMT]]></title><description><![CDATA[<p dir="auto">db cls eka wenam hadana , wenama cs ekak tiygagena balan</p>
<p dir="auto">public MySqlConnection DBConnect()<br />
{<br />
try<br />
{<br />
MySqlConnection con = new MySqlConnection();<br />
con.ConnectionString = ConfigurationManager.ConnectionStrings["any name"].ConnectionString;<br />
return con;<br />
}<br />
catch (MySqlException mye)<br />
{<br />
err.createErrorLog(mye.Message, mye.Source, "MySQL error");<br />
return null;<br />
}<br />
catch (Exception e)<br />
{<br />
err.createErrorLog(e.Message, e.Source, "Data Connection error");<br />
return null;<br />
}<br />
}</p>
]]></description><link>https://lankadevelopers.lk/post/1728</link><guid isPermaLink="true">https://lankadevelopers.lk/post/1728</guid><dc:creator><![CDATA[Nubelle]]></dc:creator><pubDate>Fri, 21 Jun 2019 07:49:47 GMT</pubDate></item><item><title><![CDATA[Reply to MySQL DB Connection එක මෙහෙම දැම්මහම errors,warnings මුකුත් එන්නෙ නන් නෑ...ඒත් DB එකට data insert වෙන් නෑ..හේතුව මොකක්ද?. on Fri, 21 Jun 2019 07:49:18 GMT]]></title><description><![CDATA[<p dir="auto">elama!!! thanks mn blnnm</p>
]]></description><link>https://lankadevelopers.lk/post/1727</link><guid isPermaLink="true">https://lankadevelopers.lk/post/1727</guid><dc:creator><![CDATA[Dinuwan Kalubowila]]></dc:creator><pubDate>Fri, 21 Jun 2019 07:49:18 GMT</pubDate></item><item><title><![CDATA[Reply to MySQL DB Connection එක මෙහෙම දැම්මහම errors,warnings මුකුත් එන්නෙ නන් නෑ...ඒත් DB එකට data insert වෙන් නෑ..හේතුව මොකක්ද?. on Fri, 21 Jun 2019 07:48:42 GMT]]></title><description><![CDATA[<p dir="auto">web config eke define krala balapn mchan<br />
&lt;add name="any name" connectionString="server=localhost; User Id=root; password=example; Persist Security Info=True; database=dbname; Max Pool Size=5000; Connection Timeout=200" providerName="MySql.Data.MySqlClient"/&gt;</p>
]]></description><link>https://lankadevelopers.lk/post/1726</link><guid isPermaLink="true">https://lankadevelopers.lk/post/1726</guid><dc:creator><![CDATA[Nubelle]]></dc:creator><pubDate>Fri, 21 Jun 2019 07:48:42 GMT</pubDate></item><item><title><![CDATA[Reply to MySQL DB Connection එක මෙහෙම දැම්මහම errors,warnings මුකුත් එන්නෙ නන් නෑ...ඒත් DB එකට data insert වෙන් නෑ..හේතුව මොකක්ද?. on Fri, 21 Jun 2019 07:45:06 GMT]]></title><description><![CDATA[<p dir="auto">ow eka thama stored procedure eka....web config eke nan nemi haduwe connection eka nan...eka tring variable ekakkta gatta</p>
]]></description><link>https://lankadevelopers.lk/post/1725</link><guid isPermaLink="true">https://lankadevelopers.lk/post/1725</guid><dc:creator><![CDATA[Dinuwan Kalubowila]]></dc:creator><pubDate>Fri, 21 Jun 2019 07:45:06 GMT</pubDate></item><item><title><![CDATA[Reply to MySQL DB Connection එක මෙහෙම දැම්මහම errors,warnings මුකුත් එන්නෙ නන් නෑ...ඒත් DB එකට data insert වෙන් නෑ..හේතුව මොකක්ද?. on Fri, 21 Jun 2019 07:43:40 GMT]]></title><description><![CDATA[<p dir="auto">Proc_Store_Products kiyane insert query ekada mchan , web.config eke connection string eka hadauwda</p>
]]></description><link>https://lankadevelopers.lk/post/1724</link><guid isPermaLink="true">https://lankadevelopers.lk/post/1724</guid><dc:creator><![CDATA[Nubelle]]></dc:creator><pubDate>Fri, 21 Jun 2019 07:43:40 GMT</pubDate></item></channel></rss>