<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Ashraf's Blog &#187; VB.NET</title>
	<atom:link href="http://ashrafur.wordpress.com/category/programming/vbnet-programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://ashrafur.wordpress.com</link>
	<description>Weblogs of Ashrafur Rahaman</description>
	<lastBuildDate>Wed, 16 Dec 2009 14:32:26 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='ashrafur.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/ee9ead71c89b7a06482cd3fb859f57a3?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Ashraf's Blog &#187; VB.NET</title>
		<link>http://ashrafur.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://ashrafur.wordpress.com/osd.xml" title="Ashraf&#8217;s Blog" />
		<item>
		<title>Create a button run time</title>
		<link>http://ashrafur.wordpress.com/2008/01/07/create-a-button-run-time-2/</link>
		<comments>http://ashrafur.wordpress.com/2008/01/07/create-a-button-run-time-2/#comments</comments>
		<pubDate>Mon, 07 Jan 2008 05:20:29 +0000</pubDate>
		<dc:creator>ashraf</dc:creator>
				<category><![CDATA[VB.NET]]></category>
		<category><![CDATA[vb.net]]></category>

		<guid isPermaLink="false">http://ashrafur.wordpress.com/2008/01/07/create-a-button-run-time-2/</guid>
		<description><![CDATA[&#8216;Create the button
Dim btn As New Button()
&#8216;Specify the location and the size
btn.Location = New System.Drawing.Point(200, 30)
btn.Size = New System.Drawing.Size(100, 20)
btn.Text = &#8220;New Button&#8221;
&#8216;Add it to the forms control collection
Me.Controls.Add(btn)
&#8216;Link the event to the event handler
AddHandler btn.Click, AddressOf Me.ClickButton
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashrafur.wordpress.com&blog=1768637&post=6&subd=ashrafur&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>&#8216;Create the button<br />
Dim btn As New Button()<br />
&#8216;Specify the location and the size<br />
btn.Location = New System.Drawing.Point(200, 30)<br />
btn.Size = New System.Drawing.Size(100, 20)<br />
btn.Text = &#8220;New Button&#8221;<br />
&#8216;Add it to the forms control collection<br />
Me.Controls.Add(btn)<br />
&#8216;Link the event to the event handler<br />
AddHandler btn.Click, AddressOf Me.ClickButton</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ashrafur.wordpress.com/6/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ashrafur.wordpress.com/6/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ashrafur.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ashrafur.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ashrafur.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ashrafur.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ashrafur.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ashrafur.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ashrafur.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ashrafur.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ashrafur.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ashrafur.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashrafur.wordpress.com&blog=1768637&post=6&subd=ashrafur&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ashrafur.wordpress.com/2008/01/07/create-a-button-run-time-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4dbea6e5000e7de0a2e678852c3f6d78?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ashraf</media:title>
		</media:content>
	</item>
		<item>
		<title>DataBind with RadioButtonList in VB.NET</title>
		<link>http://ashrafur.wordpress.com/2006/10/09/databind-with-radiobuttonlist-in-vbnet/</link>
		<comments>http://ashrafur.wordpress.com/2006/10/09/databind-with-radiobuttonlist-in-vbnet/#comments</comments>
		<pubDate>Mon, 09 Oct 2006 09:34:10 +0000</pubDate>
		<dc:creator>ashraf</dc:creator>
				<category><![CDATA[VB.NET]]></category>
		<category><![CDATA[vb.net]]></category>

		<guid isPermaLink="false">http://ashrafur.wordpress.com/2006/10/09/databind-with-radiobuttonlist-in-vbnet/</guid>
		<description><![CDATA[white these code to page_load so Radio Button List will be generated
Dim strConnection As String = &#8220;data source=(local);initial catalog=testDB; user id=sa; password=1234;&#8221;
Dim strSQLforListBox As String = &#8220;SELECT distinct FirstName, ID &#8220;
strSQLforListBox += &#8220;FROM Users&#8221;
Dim objConnection As New SqlConnection(strConnection)
Dim objCommand As New SqlCommand(strSQLforListBox, objConnection)
objConnection.Open()
radEmployees.DataSource = objCommand.ExecuteReader()
radEmployees.DataTextField = &#8220;FirstName&#8221;
radEmployees.DataValueField = &#8220;ID&#8221;
radEmployees.DataBind()
objConnection.Close()
 
Then we need to write the following [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashrafur.wordpress.com&blog=1768637&post=56&subd=ashrafur&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>white these code to page_load so Radio Button List will be generated</strong><br />
Dim strConnection As String = &#8220;data source=(local);initial catalog=testDB; user id=sa; password=1234;&#8221;</p>
<p>Dim strSQLforListBox As String = &#8220;SELECT distinct FirstName, ID &#8220;<br />
strSQLforListBox += &#8220;FROM Users&#8221;</p>
<p>Dim objConnection As New SqlConnection(strConnection)<br />
Dim objCommand As New SqlCommand(strSQLforListBox, objConnection)</p>
<p>objConnection.Open()<br />
radEmployees.DataSource = objCommand.ExecuteReader()<br />
radEmployees.DataTextField = &#8220;FirstName&#8221;<br />
radEmployees.DataValueField = &#8220;ID&#8221;<br />
radEmployees.DataBind()<br />
objConnection.Close()<br />
<strong> </strong></p>
<p><strong>Then we need to write the following codes in SelectedIndexChanged</strong></p>
<p>Dim strConnection As String = &#8220;data source=(local);initial catalog=testDB; user id=sa; password=1234;&#8221;</p>
<p>Dim strSQLforGrid As String = &#8220;SELECT &#8220;<br />
strSQLforGrid += &#8221; FirstName, LastName, &#8220;<br />
strSQLforGrid += &#8220;phone, PermanentAddress1 &#8220;<br />
strSQLforGrid += &#8220;FROM Users &#8220;<br />
strSQLforGrid += &#8220;WHERE ID= &#8221; &amp; radEmployees.SelectedItem.Value</p>
<p>Dim objConnection As New SqlConnection(strConnection)<br />
Dim objCommand As New SqlCommand(strSQLforGrid, objConnection)</p>
<p>objConnection.Open()<br />
DataGrid1.DataSource = objCommand.ExecuteReader()<br />
DataGrid1.DataBind()<br />
objConnection.Close()</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ashrafur.wordpress.com/56/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ashrafur.wordpress.com/56/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ashrafur.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ashrafur.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ashrafur.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ashrafur.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ashrafur.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ashrafur.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ashrafur.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ashrafur.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ashrafur.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ashrafur.wordpress.com/56/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashrafur.wordpress.com&blog=1768637&post=56&subd=ashrafur&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ashrafur.wordpress.com/2006/10/09/databind-with-radiobuttonlist-in-vbnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4dbea6e5000e7de0a2e678852c3f6d78?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ashraf</media:title>
		</media:content>
	</item>
		<item>
		<title>SqlConnection in VB.NET</title>
		<link>http://ashrafur.wordpress.com/2006/10/09/sqlconnection-in-vbnet/</link>
		<comments>http://ashrafur.wordpress.com/2006/10/09/sqlconnection-in-vbnet/#comments</comments>
		<pubDate>Mon, 09 Oct 2006 07:53:47 +0000</pubDate>
		<dc:creator>ashraf</dc:creator>
				<category><![CDATA[VB.NET]]></category>
		<category><![CDATA[vb.net]]></category>

		<guid isPermaLink="false">http://ashrafur.wordpress.com/2006/10/09/sqlconnection-in-vbnet/</guid>
		<description><![CDATA[Dim strConnection As String = &#8220;data source=(local);initial catalog=testDB; user id=sa; password=1234;&#8221;
Dim objConnection As New SqlConnection(strConnection)
Dim strSQL As String = &#8220;SELECT * from tblTest;&#8221;
Dim objCommand As New SqlCommand(strSQL, objConnection)
objConnection.Open()
Response.Write(&#8220;ServerVersion: &#8221; &#38; objConnection.ServerVersion &#38; _
vbCrLf &#38; &#8220;Datasource: &#8221; &#38; objConnection.DataSource &#38; _
vbCrLf &#38; &#8220;Database: &#8221; &#38; objConnection.Database)
DataGrid1.DataSource = objCommand.ExecuteReader()
DataGrid1.DataBind()
objConnection.Close()
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashrafur.wordpress.com&blog=1768637&post=55&subd=ashrafur&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Dim strConnection As String = &#8220;data source=(local);initial catalog=testDB; user id=sa; password=1234;&#8221;<br />
Dim objConnection As New SqlConnection(strConnection)</p>
<p>Dim strSQL As String = &#8220;SELECT * from tblTest;&#8221;<br />
Dim objCommand As New SqlCommand(strSQL, objConnection)</p>
<p>objConnection.Open()</p>
<p>Response.Write(&#8220;ServerVersion: &#8221; &amp; objConnection.ServerVersion &amp; _<br />
vbCrLf &amp; &#8220;Datasource: &#8221; &amp; objConnection.DataSource &amp; _<br />
vbCrLf &amp; &#8220;Database: &#8221; &amp; objConnection.Database)</p>
<p>DataGrid1.DataSource = objCommand.ExecuteReader()<br />
DataGrid1.DataBind()<br />
objConnection.Close()</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ashrafur.wordpress.com/55/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ashrafur.wordpress.com/55/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ashrafur.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ashrafur.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ashrafur.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ashrafur.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ashrafur.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ashrafur.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ashrafur.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ashrafur.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ashrafur.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ashrafur.wordpress.com/55/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashrafur.wordpress.com&blog=1768637&post=55&subd=ashrafur&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ashrafur.wordpress.com/2006/10/09/sqlconnection-in-vbnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4dbea6e5000e7de0a2e678852c3f6d78?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ashraf</media:title>
		</media:content>
	</item>
		<item>
		<title>request response in vb .net</title>
		<link>http://ashrafur.wordpress.com/2006/10/09/request-response-in-vb-net/</link>
		<comments>http://ashrafur.wordpress.com/2006/10/09/request-response-in-vb-net/#comments</comments>
		<pubDate>Mon, 09 Oct 2006 06:55:24 +0000</pubDate>
		<dc:creator>ashraf</dc:creator>
				<category><![CDATA[VB.NET]]></category>
		<category><![CDATA[vb.net]]></category>

		<guid isPermaLink="false">http://ashrafur.wordpress.com/2006/10/09/request-response-in-vb-net/</guid>
		<description><![CDATA[response goes like that
Response.Cookies(&#8220;name&#8221;).Value = TextBox1.TextResponse.Cookies(&#8220;pass&#8221;).Value = TextBox2.Text
Response.Redirect(&#8220;newForm.aspx&#8221;)
 Request takes such way
Label1.Text = Request.Cookies(&#8220;name&#8221;).Value &#38; &#8221; &#8221; &#38; Request.Cookies(&#8220;pass&#8221;).Value

       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashrafur.wordpress.com&blog=1768637&post=54&subd=ashrafur&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>response goes like that</strong></p>
<p><font size="2">Response.Cookies(&#8220;name&#8221;).Value = TextBox1.Text</font><font size="2">Response.Cookies(&#8220;pass&#8221;).Value = TextBox2.Text</p>
<p>Response.Redirect(&#8220;newForm.aspx&#8221;)</p>
<p><strong> Request takes such way</strong></p>
<p><font size="2">Label1.Text = Request.Cookies(&#8220;name&#8221;).Value &amp; &#8221; &#8221; &amp; Request.Cookies(&#8220;pass&#8221;).Value</font></p>
<p></font></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ashrafur.wordpress.com/54/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ashrafur.wordpress.com/54/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ashrafur.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ashrafur.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ashrafur.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ashrafur.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ashrafur.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ashrafur.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ashrafur.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ashrafur.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ashrafur.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ashrafur.wordpress.com/54/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashrafur.wordpress.com&blog=1768637&post=54&subd=ashrafur&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ashrafur.wordpress.com/2006/10/09/request-response-in-vb-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4dbea6e5000e7de0a2e678852c3f6d78?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ashraf</media:title>
		</media:content>
	</item>
		<item>
		<title>XML Reader in VB.NET</title>
		<link>http://ashrafur.wordpress.com/2006/08/08/xml-reader-in-vbnet/</link>
		<comments>http://ashrafur.wordpress.com/2006/08/08/xml-reader-in-vbnet/#comments</comments>
		<pubDate>Tue, 08 Aug 2006 09:28:11 +0000</pubDate>
		<dc:creator>ashraf</dc:creator>
				<category><![CDATA[VB.NET]]></category>
		<category><![CDATA[vb.net]]></category>

		<guid isPermaLink="false">http://ashrafur.wordpress.com/2006/08/08/xml-reader-in-vbnet/</guid>
		<description><![CDATA[Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
 ReadXMLFromFile()
End Sub
Private Sub ReadXMLFromFile()
 Dim reader As New XmlTextReader(&#8220;c:dom.xml&#8221;)
 Dim contents As String = &#8220;&#8221;
 While reader.Read()
  reader.MoveToContent()
  If reader.NodeType = XmlNodeType.Element Then
   contents &#38;= reader.Name &#38; &#8220;: &#8220;
  End If
  If reader.NodeType = XmlNodeType.Text Then
   contents &#38;= reader.Value &#38; ControlChars.CrLf
  End If
 End While
 TextBox1.Text = contents
End Sub
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashrafur.wordpress.com&blog=1768637&post=39&subd=ashrafur&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<br />
 ReadXMLFromFile()<br />
End Sub<br />
Private Sub ReadXMLFromFile()<br />
 Dim reader As New XmlTextReader(&#8220;c:dom.xml&#8221;)<br />
 Dim contents As String = &#8220;&#8221;<br />
 While reader.Read()<br />
  reader.MoveToContent()<br />
  If reader.NodeType = XmlNodeType.Element Then<br />
   contents &amp;= reader.Name &amp; &#8220;: &#8220;<br />
  End If<br />
  If reader.NodeType = XmlNodeType.Text Then<br />
   contents &amp;= reader.Value &amp; ControlChars.CrLf<br />
  End If<br />
 End While<br />
 TextBox1.Text = contents<br />
End Sub</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ashrafur.wordpress.com/39/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ashrafur.wordpress.com/39/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ashrafur.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ashrafur.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ashrafur.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ashrafur.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ashrafur.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ashrafur.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ashrafur.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ashrafur.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ashrafur.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ashrafur.wordpress.com/39/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashrafur.wordpress.com&blog=1768637&post=39&subd=ashrafur&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ashrafur.wordpress.com/2006/08/08/xml-reader-in-vbnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4dbea6e5000e7de0a2e678852c3f6d78?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ashraf</media:title>
		</media:content>
	</item>
		<item>
		<title>Insert Data in MSAccess (OleDb data Provider)</title>
		<link>http://ashrafur.wordpress.com/2006/07/18/insert-data-in-msaccess-oledb-data-provider/</link>
		<comments>http://ashrafur.wordpress.com/2006/07/18/insert-data-in-msaccess-oledb-data-provider/#comments</comments>
		<pubDate>Tue, 18 Jul 2006 06:40:59 +0000</pubDate>
		<dc:creator>ashraf</dc:creator>
				<category><![CDATA[VB.NET]]></category>
		<category><![CDATA[vb.net]]></category>

		<guid isPermaLink="false">http://ashrafur.wordpress.com/2006/07/18/insert-data-in-msaccess-oledb-data-provider/</guid>
		<description><![CDATA[Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim str As String
Dim cmd As OleDb.OleDbCommand
Dim icount As Integer
Dim conn As OleDb.OleDbConnection
Try
 conn = GetConnection()
 conn.Open()
        str = &#8220;insert into address values(&#8221; &#38; CInt(TextBox1.Text) &#38; &#8220;,&#8217;&#8221; &#38; TextBox2.Text &#38; &#8220;&#8216;,&#8217;&#8221; &#38; TextBox3.Text &#38; &#8220;&#8216;,&#8217;&#8221; &#38; TextBox4.Text &#38; &#8220;&#8216;,&#8217;&#8221; &#38; TextBox5.Text &#38; &#8220;&#8216;)&#8221;
        &#8217;string stores the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashrafur.wordpress.com&blog=1768637&post=37&subd=ashrafur&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<br />
Dim str As String<br />
Dim cmd As OleDb.OleDbCommand<br />
Dim icount As Integer<br />
Dim conn As OleDb.OleDbConnection<br />
Try<br />
 conn = GetConnection()<br />
 conn.Open()<br />
        str = &#8220;insert into address values(&#8221; &amp; CInt(TextBox1.Text) &amp; &#8220;,&#8217;&#8221; &amp; TextBox2.Text &amp; &#8220;&#8216;,&#8217;&#8221; &amp; TextBox3.Text &amp; &#8220;&#8216;,&#8217;&#8221; &amp; TextBox4.Text &amp; &#8220;&#8216;,&#8217;&#8221; &amp; TextBox5.Text &amp; &#8220;&#8216;)&#8221;<br />
        &#8217;string stores the command and CInt is used to convert number to string<br />
        cmd = New OleDb.OleDbCommand(str, conn)<br />
        icount = cmd.ExecuteNonQuery<br />
        MessageBox.Show(&#8220;No of row inserted:&#8221; &amp; icount)<br />
Catch ex As Exception<br />
        MsgBox(&#8220;Exception from insert:&#8221; &amp; ex.ToString())<br />
End Try<br />
conn.Close()<br />
End Sub</p>
<p>Public Function GetConnection() As OleDb.OleDbConnection<br />
&#8216;return a new connection to the database<br />
Return New OleDb.OleDbConnection(&#8220;Provider=Microsoft.Jet.OleDb.4.0;data source=C:test.mdb;&#8221;)<br />
End Function</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ashrafur.wordpress.com/37/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ashrafur.wordpress.com/37/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ashrafur.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ashrafur.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ashrafur.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ashrafur.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ashrafur.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ashrafur.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ashrafur.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ashrafur.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ashrafur.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ashrafur.wordpress.com/37/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashrafur.wordpress.com&blog=1768637&post=37&subd=ashrafur&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ashrafur.wordpress.com/2006/07/18/insert-data-in-msaccess-oledb-data-provider/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4dbea6e5000e7de0a2e678852c3f6d78?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ashraf</media:title>
		</media:content>
	</item>
		<item>
		<title>Data Access using MSAccess (OleDb data Provider)</title>
		<link>http://ashrafur.wordpress.com/2006/07/18/data-access-using-msaccess-oledb-data-provider/</link>
		<comments>http://ashrafur.wordpress.com/2006/07/18/data-access-using-msaccess-oledb-data-provider/#comments</comments>
		<pubDate>Tue, 18 Jul 2006 06:34:19 +0000</pubDate>
		<dc:creator>ashraf</dc:creator>
				<category><![CDATA[VB.NET]]></category>
		<category><![CDATA[vb.net]]></category>

		<guid isPermaLink="false">http://ashrafur.wordpress.com/2006/07/18/data-access-using-msaccess-oledb-data-provider/</guid>
		<description><![CDATA[Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim conn As OleDb.OleDbConnection = GetConnection()
Dim ds As New DataSet
Dim sql As String = &#8220;select * from address&#8221;
Dim da As OleDb.OleDbDataAdapter = New OleDb.OleDbDataAdapter(sql, conn)
da.Fill(ds, &#8220;address&#8221;)
DataGrid1.DataSource = ds.Tables(&#8220;address&#8221;)
End Sub
Public Function GetConnection() As OleDb.OleDbConnection
&#8216;return a new connection to the database
Return New OleDb.OleDbConnection(&#8220;Provider=Microsoft.Jet.OleDb.4.0;data source=C:test.mdb;&#8221;)
End Function
  [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashrafur.wordpress.com&blog=1768637&post=36&subd=ashrafur&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<br />
Dim conn As OleDb.OleDbConnection = GetConnection()<br />
Dim ds As New DataSet<br />
Dim sql As String = &#8220;select * from address&#8221;<br />
Dim da As OleDb.OleDbDataAdapter = New OleDb.OleDbDataAdapter(sql, conn)<br />
da.Fill(ds, &#8220;address&#8221;)<br />
DataGrid1.DataSource = ds.Tables(&#8220;address&#8221;)<br />
End Sub</p>
<p>Public Function GetConnection() As OleDb.OleDbConnection<br />
&#8216;return a new connection to the database<br />
Return New OleDb.OleDbConnection(&#8220;Provider=Microsoft.Jet.OleDb.4.0;data source=C:test.mdb;&#8221;)<br />
End Function</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ashrafur.wordpress.com/36/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ashrafur.wordpress.com/36/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ashrafur.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ashrafur.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ashrafur.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ashrafur.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ashrafur.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ashrafur.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ashrafur.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ashrafur.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ashrafur.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ashrafur.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashrafur.wordpress.com&blog=1768637&post=36&subd=ashrafur&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ashrafur.wordpress.com/2006/07/18/data-access-using-msaccess-oledb-data-provider/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4dbea6e5000e7de0a2e678852c3f6d78?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ashraf</media:title>
		</media:content>
	</item>
		<item>
		<title>read text file in vb.net</title>
		<link>http://ashrafur.wordpress.com/2006/07/17/read-text-file-in-vbnet/</link>
		<comments>http://ashrafur.wordpress.com/2006/07/17/read-text-file-in-vbnet/#comments</comments>
		<pubDate>Mon, 17 Jul 2006 07:39:38 +0000</pubDate>
		<dc:creator>ashraf</dc:creator>
				<category><![CDATA[VB.NET]]></category>
		<category><![CDATA[vb.net]]></category>

		<guid isPermaLink="false">http://ashrafur.wordpress.com/2006/07/17/read-text-file-in-vbnet/</guid>
		<description><![CDATA[Dim oFile As System.IO.File
Dim oRead As System.IO.StreamReader
Dim LineIn As String
oRead = oFile.OpenText(&#8220;C:sample.txt&#8221;)
While oRead.Peek -1
LineIn &#38;= oRead.ReadLine()
End While
RichTextBox1.Text = LineIn
oRead.Close()
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashrafur.wordpress.com&blog=1768637&post=35&subd=ashrafur&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Dim oFile As System.IO.File<br />
Dim oRead As System.IO.StreamReader<br />
Dim LineIn As String<br />
oRead = oFile.OpenText(&#8220;C:sample.txt&#8221;)<br />
While oRead.Peek -1<br />
LineIn &amp;= oRead.ReadLine()</p>
<p>End While<br />
RichTextBox1.Text = LineIn<br />
oRead.Close()</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ashrafur.wordpress.com/35/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ashrafur.wordpress.com/35/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ashrafur.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ashrafur.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ashrafur.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ashrafur.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ashrafur.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ashrafur.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ashrafur.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ashrafur.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ashrafur.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ashrafur.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashrafur.wordpress.com&blog=1768637&post=35&subd=ashrafur&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ashrafur.wordpress.com/2006/07/17/read-text-file-in-vbnet/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4dbea6e5000e7de0a2e678852c3f6d78?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ashraf</media:title>
		</media:content>
	</item>
		<item>
		<title>read a text file in vb.net</title>
		<link>http://ashrafur.wordpress.com/2006/07/17/read-a-text-file-in-vbnet/</link>
		<comments>http://ashrafur.wordpress.com/2006/07/17/read-a-text-file-in-vbnet/#comments</comments>
		<pubDate>Mon, 17 Jul 2006 07:36:36 +0000</pubDate>
		<dc:creator>ashraf</dc:creator>
				<category><![CDATA[VB.NET]]></category>
		<category><![CDATA[vb.net]]></category>

		<guid isPermaLink="false">http://ashrafur.wordpress.com/2006/07/17/read-a-text-file-in-vbnet/</guid>
		<description><![CDATA[Dim oFile As System.IO.File
Dim oRead As System.IO.StreamReader
Dim LineIn As String
oRead = oFile.OpenText(&#8220;C:sample.txt&#8221;)
While oRead.Peek &#60;&#62; -1
 LineIn &#38;= oRead.ReadLine()
End While
RichTextBox1.Text = LineIn
oRead.Close()
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashrafur.wordpress.com&blog=1768637&post=34&subd=ashrafur&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><font size="2">Dim oFile As System.IO.File<br />
Dim oRead As System.IO.StreamReader<br />
Dim LineIn As String<br />
oRead = oFile.OpenText(&#8220;C:sample.txt&#8221;)<br />
While oRead.Peek &lt;&gt; -1<br />
 LineIn &amp;= oRead.ReadLine()<br />
End While<br />
RichTextBox1.Text = LineIn<br />
oRead.Close()</font></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ashrafur.wordpress.com/34/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ashrafur.wordpress.com/34/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ashrafur.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ashrafur.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ashrafur.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ashrafur.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ashrafur.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ashrafur.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ashrafur.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ashrafur.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ashrafur.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ashrafur.wordpress.com/34/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashrafur.wordpress.com&blog=1768637&post=34&subd=ashrafur&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ashrafur.wordpress.com/2006/07/17/read-a-text-file-in-vbnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4dbea6e5000e7de0a2e678852c3f6d78?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ashraf</media:title>
		</media:content>
	</item>
		<item>
		<title>write text file in vb.net</title>
		<link>http://ashrafur.wordpress.com/2006/07/17/write-text-file-in-vbnet/</link>
		<comments>http://ashrafur.wordpress.com/2006/07/17/write-text-file-in-vbnet/#comments</comments>
		<pubDate>Mon, 17 Jul 2006 07:30:34 +0000</pubDate>
		<dc:creator>ashraf</dc:creator>
				<category><![CDATA[VB.NET]]></category>
		<category><![CDATA[vb.net]]></category>

		<guid isPermaLink="false">http://ashrafur.wordpress.com/2006/07/17/write-text-file-in-vbnet/</guid>
		<description><![CDATA[Dim oFile As System.IO.File
Dim oWrite As System.IO.StreamWriter
oWrite = oFile.CreateText(&#8220;C:sample.txt&#8221;)
oWrite.WriteLine(&#8220;Write a line to the file&#8221;)
oWrite.WriteLine()
oWrite.Close()
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashrafur.wordpress.com&blog=1768637&post=33&subd=ashrafur&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><font size="2">Dim oFile As System.IO.File<br />
Dim oWrite As System.IO.StreamWriter<br />
oWrite = oFile.CreateText(&#8220;C:sample.txt&#8221;)<br />
oWrite.WriteLine(&#8220;Write a line to the file&#8221;)<br />
oWrite.WriteLine()<br />
oWrite.Close()</font></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ashrafur.wordpress.com/33/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ashrafur.wordpress.com/33/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ashrafur.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ashrafur.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ashrafur.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ashrafur.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ashrafur.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ashrafur.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ashrafur.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ashrafur.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ashrafur.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ashrafur.wordpress.com/33/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashrafur.wordpress.com&blog=1768637&post=33&subd=ashrafur&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ashrafur.wordpress.com/2006/07/17/write-text-file-in-vbnet/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4dbea6e5000e7de0a2e678852c3f6d78?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ashraf</media:title>
		</media:content>
	</item>
	</channel>
</rss>