<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/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 Basic .NET</title><link>http://forums.asp.net/36.aspx</link><description>Discussions/Questions about the Visual Basic .NET language. &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=14&amp;c=23" target="_blank"&gt;Email List&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>SByte</title><link>http://forums.asp.net/thread/3545744.aspx</link><pubDate>Thu, 03 Dec 2009 10:31:03 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3545744</guid><dc:creator>misuk11</dc:creator><author>misuk11</author><slash:comments>2</slash:comments><comments>http://forums.asp.net/thread/3545744.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=36&amp;PostID=3545744</wfw:commentRss><description>&lt;p&gt;Im mainly a c# developer and am trying to convert some existing vb.net code to c#.&amp;nbsp; This is one line i want to convert&lt;/p&gt;&lt;p&gt;Dim sbBuf(1024) As SByte&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;in c# it should be like this&lt;/p&gt;&lt;p&gt;SByte sbBuf = some value;&lt;/p&gt;&lt;p&gt;as SByte is an 8 bit signed integer, allowable values should be -127 to + 127&lt;/p&gt;&lt;p&gt;so how can the vb code above create it as 1024 ?&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>VB.NET click event</title><link>http://forums.asp.net/thread/3544070.aspx</link><pubDate>Wed, 02 Dec 2009 15:54:57 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3544070</guid><dc:creator>inliten</dc:creator><author>inliten</author><slash:comments>6</slash:comments><comments>http://forums.asp.net/thread/3544070.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=36&amp;PostID=3544070</wfw:commentRss><description>&lt;p&gt;I have a web page, VB.NET code behind. On the page&amp;nbsp;are text boxes for user input and a Submit button. The text input&amp;nbsp;connects to a SQL Server db. When the user enters data into the text boxes and clicks Submit I want to verify that the information is not already in the database. I figured a Dim statement and a&amp;nbsp;SQL Delete command. I&amp;nbsp;believe if the information is not&amp;nbsp;already in the database then the Delete command will have no&amp;nbsp;affect. I also figured an IF statement to do this.&lt;/p&gt;
&lt;p&gt;I do not know how to write the &lt;em&gt;If&lt;/em&gt; portion of the statement, &lt;em&gt;Then&lt;/em&gt; would be the SQL Delete command.&amp;nbsp;Next would be an Else statement&amp;nbsp;for a SQL Insert command since the&amp;nbsp;information is not in the database or has been deleted. I do not want&amp;nbsp;to indicate that the information is already present - just want it deleted and then added.&lt;/p&gt;
&lt;p&gt;Any suggestions are&amp;nbsp;encouraged, welcomed, and appreciated.&lt;/p&gt;
&lt;p&gt;John&amp;nbsp;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Get the receiver e-mail address from a MS Access DB's column !</title><link>http://forums.asp.net/thread/3543795.aspx</link><pubDate>Wed, 02 Dec 2009 13:33:22 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3543795</guid><dc:creator>tugberk_ugurlu_</dc:creator><author>tugberk_ugurlu_</author><slash:comments>8</slash:comments><comments>http://forums.asp.net/thread/3543795.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=36&amp;PostID=3543795</wfw:commentRss><description>&lt;p&gt;Hi. I am tring to get the receivers&amp;#39; e-mail address&amp;nbsp;from a Ms access (mdb) database but I am failing. I had another thread but it started to get longer and I decided to open another one. Let&amp;#39;s make a summary. Below is my VB code;&lt;/p&gt;&lt;pre class="vb.net" name="code"&gt;Imports System.Net.Mail
Imports System.IO
Imports System.Net
Imports System
Imports System.Data
Imports System.Data.Common
Imports System.Data.OleDb
Partial Class mail_Default
    Inherits System.Web.UI.Page
    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
        Gonder()
    End Sub
    Public Function GetHtml(ByVal sUrl As String) As String
        Dim oWebRequest As WebRequest = System.Net.HttpWebRequest.Create(sUrl)
        Dim oStreamReader As New StreamReader(oWebRequest.GetResponse().GetResponseStream())
        Dim sResult As String = oStreamReader.ReadToEnd()
        oStreamReader.Close()
        Return sResult
    End Function
    Public Function ReplaceHtml() As String
        Dim body As String = GetHtml(Server.MapPath(&amp;quot;HTMLPage.htm&amp;quot;))
        body = body.Replace(&amp;quot;FromName&amp;quot;, TextBox1.Text)
        body = body.Replace(&amp;quot;FromSur&amp;quot;, TextBox2.Text)
        body = body.Replace(&amp;quot;MesRep&amp;quot;, TextBox3.Text)
        Return body
    End Function
    Private Sub Gonder()

        Dim message As System.Net.Mail.MailMessage = New System.Net.Mail.MailMessage()
        Dim URL As String = Request.ServerVariables(&amp;quot;HTTP_REFERER&amp;quot;)

        Dim connectionString As String = &amp;quot;Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|MyDatabase.mdb&amp;quot;
        Dim conn As New OleDbConnection(connectionString)
        Dim sql As String = &amp;quot;SELECT * FROM Email&amp;quot;
        Dim cmd As New OleDbCommand(sql, conn)
        conn.Open()
        Dim reader As OleDbDataReader
        reader = cmd.ExecuteReader()
        While (reader.Read())
            Console.WriteLine(reader.Item(&amp;quot;EmailsTo&amp;quot;))
            &amp;#39;Console.Write(reader.GetString(0).ToString() &amp;amp; &amp;quot; ,&amp;quot;)
            &amp;#39;Console.Write(reader.GetString(1).ToString() &amp;amp; &amp;quot; ,&amp;quot;)
            Console.WriteLine(&amp;quot;&amp;quot;)
        End While
        reader.Close()
        conn.Close()

        message.IsBodyHtml = True
        message.From = New System.Net.Mail.MailAddress(&amp;quot;info@tugberkugurlu.com&amp;quot;)
        message.To.Add(reader(&amp;quot;EmailsTo&amp;quot;).ToStriing() &amp;amp; &amp;quot;,&amp;quot;)
        message.Bcc.Add(&amp;quot;info@tugberkugurlu.com&amp;quot;)
        message.Subject = &amp;quot;Work &amp;amp; Travel Application Form From &amp;quot; + URL
        message.Body = ReplaceHtml()
        &amp;#39; message.Attachments.Add(New System.Net.Mail.Attachment(&amp;quot;privacy.doc&amp;quot;))
        Dim smtpClient As System.Net.Mail.SmtpClient = New System.Net.Mail.SmtpClient()
        &amp;#39; Try
        smtpClient.Send(message)
        Response.Redirect(&amp;quot;proceeded.aspx&amp;quot;)
End Sub&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And My page URL for this is &lt;a href="http://www.tugberkugurlu.com/mail/ToDB.aspx"&gt;http://www.tugberkugurlu.com/mail/ToDB.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I keep getting this error on this project;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; 
&lt;h1&gt;Server Error in &amp;#39;/&amp;#39; Application. 
&lt;hr /&gt;
&lt;/h1&gt;
&lt;h2&gt;&lt;i&gt;No data exists for the row/column.&lt;/i&gt; &lt;/h2&gt;&lt;/span&gt;&lt;font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&lt;b&gt;Description: &lt;/b&gt;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;&lt;b&gt;Exception Details: &lt;/b&gt;System.InvalidOperationException: No data exists for the row/column.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Source Error:&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;
&lt;table bgcolor="#ffffcc"&gt;

&lt;tr&gt;
&lt;td&gt;&lt;code&gt;&lt;pre&gt;Line 56:         message.IsBodyHtml = True
Line 57:         message.From = New System.Net.Mail.MailAddress(&amp;quot;info@tugberkugurlu.com&amp;quot;)
&lt;font color="red"&gt;Line 58:         message.To.Add(reader(&amp;quot;EmailsTo&amp;quot;).ToStriing() &amp;amp; &amp;quot;,&amp;quot;)
&lt;/font&gt;Line 59:         message.Bcc.Add(&amp;quot;info@tugberkugurlu.com&amp;quot;)
Line 60:         message.Subject = &amp;quot;Work &amp;amp; Travel Application Form From &amp;quot; + URL&lt;/pre&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br /&gt;&lt;b&gt;Source File: &lt;/b&gt;d:\inetpub\tugberkugurlu.com\www\mail\ToDB.aspx.vb&lt;b&gt; &amp;nbsp;&amp;nbsp; Line: &lt;/b&gt;58&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;Anybody has a idea on thşs. My column, table and databse names are correct but I am getting this error. Thanks a lot ;)&lt;/p&gt;</description></item><item><title>SMTP works in solution, but fails as imported class</title><link>http://forums.asp.net/thread/3512109.aspx</link><pubDate>Sat, 14 Nov 2009 00:38:40 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3512109</guid><dc:creator>mahalie</dc:creator><author>mahalie</author><slash:comments>2</slash:comments><comments>http://forums.asp.net/thread/3512109.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=36&amp;PostID=3512109</wfw:commentRss><description>&lt;p&gt;Enviro: 2007 Exchange Server, 2 Intranet servers (1 deploy, 1 dev) running .NET 2.0 app - all within same network / behind firewall. I am working on a legacy app by our previous web guy, when our sysadmin upgraded to exchange 2007 and put it on a new server all of the mail functions in old app broke. Had to upgrade to .NET 2.0 (from 1.x) and nothing worked untill I tried new SMTP code in a local function in the codebehind of a page of the app instead of calling a class, as follows:&lt;/p&gt;&lt;p&gt;&lt;pre name="code" class="c-sharp"&gt;Function SendNow(ByVal strFrom As String, ByVal strTo As String, ByVal strSubject As String, ByVal strBody As String) As Object

 Dim msg As New MailMessage()

 Dim smtp As SmtpClient

 msg.From = New MailAddress(strFrom)

 msg.To.Add(strTo)

 msg.Subject = strSubject

 msg.Body = strBody

 smtp = New SmtpClient(&amp;quot;OurMailServer&amp;quot;)

 smtp.UseDefaultCredentials = True

 smtp.Send(msg)

 Return True

End Function&lt;/pre&gt;&lt;br /&gt; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;So the above works fine, in that file. The problem is that the app was designed to call a class that resides on the dev server. When I move this same code into the class on the dev server I get transport errors. I think this has to do with the fact that we&amp;#39;re using integrated authentication with impersonation=true and it seems to get dropped due to the class being on a different server (even though it&amp;#39;s behind our firewall).&lt;/p&gt;&lt;p&gt;I could either try moving the classes to the production server or somehow keep the authentication in the class working through the hops. Either way I need to keep the class because it&amp;#39;s referenced all over the place (in more than just this app). I am not that savvy in .NET and I cannot figure out where the setting is within the app that defines where the class is imported from. It just seems to be available no matter where the app is deployed. (Working files are on same server as classes, then publish the app to production server).&lt;/p&gt;&lt;p&gt;Can someone give me a clue?&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>TAPI in .NET</title><link>http://forums.asp.net/thread/318535.aspx</link><pubDate>Mon, 25 Aug 2003 06:31:23 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:318535</guid><dc:creator>alihaider</dc:creator><author>alihaider</author><slash:comments>2</slash:comments><comments>http://forums.asp.net/thread/318535.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=36&amp;PostID=318535</wfw:commentRss><description>Hello!
&lt;br /&gt;
Does anyone have any idea about using TAPI in .NET.
&lt;br /&gt;

&lt;br /&gt;
Urent
&lt;br /&gt;

&lt;br /&gt;
bbye
&lt;br /&gt;

&lt;br /&gt;
@li</description></item><item><title>Don't want rounded value</title><link>http://forums.asp.net/thread/3535005.aspx</link><pubDate>Thu, 26 Nov 2009 21:47:03 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3535005</guid><dc:creator>Rajneesh Verma</dc:creator><author>Rajneesh Verma</author><slash:comments>2</slash:comments><comments>http://forums.asp.net/thread/3535005.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=36&amp;PostID=3535005</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;i am using coding in vb.net and i want some values as&lt;/p&gt;&lt;p&gt;min=110 (integer Variable)&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;If (min &amp;gt; 59) Then&lt;/div&gt;
&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;hrs = hrs + (min / 60.0)&lt;/div&gt;
&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;min = min Mod 60&lt;/div&gt;
&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#39;min = tmin - fmin&lt;/div&gt;
&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#39;p = hrs.ToString() + min.ToString()&lt;/div&gt;
&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#39;Else&lt;/div&gt;
&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;&lt;/div&gt;
&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#39; &amp;nbsp; &amp;nbsp;p = Val(tb3.Text) - Val(tb2.Text)&lt;/div&gt;
&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;End If&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;If (min &amp;gt; 59) Then&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fmin = (min / 60)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#39; Here i want fmin=1 instead of 2 ( fmin is integer)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;min = min Mod 60&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;#39; Here i want min=50&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;End If&lt;/p&gt;&lt;p&gt;-------------------------------------------Over All Scenario is -------------------------------------------------&lt;/p&gt;&lt;p&gt;from time in textbox = 1755 and in to time=0455&lt;/p&gt;&lt;p&gt;output would be &lt;i&gt;(total time = to time - from time)&lt;/i&gt;&amp;nbsp;1250&lt;/p&gt;&lt;p&gt;its just a example user can enter any time duration in text boxes as 0445 to 1859 etc etc......&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;All scenario is here just try to solve out my first query and if any one has idea regarding whole problem then really appreciated ............!!!!!!!!&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks...&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Increment Operators in VB.Net</title><link>http://forums.asp.net/thread/2236617.aspx</link><pubDate>Mon, 17 Mar 2008 06:04:01 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2236617</guid><dc:creator>lokanadham</dc:creator><author>lokanadham</author><slash:comments>5</slash:comments><comments>http://forums.asp.net/thread/2236617.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=36&amp;PostID=2236617</wfw:commentRss><description>&lt;p&gt;&lt;strong&gt;Hi All,&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;Do we have increment operators in VB.Net?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;I want to use post increment and Pre increment operators in VB.Net.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp; I want touse the statement like,&amp;nbsp; i++ and ++i.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp; Does VB.Net support this kind of statements?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>How can I make an array created&amp;filled in by one Sub accessible from another one?</title><link>http://forums.asp.net/thread/3537671.aspx</link><pubDate>Sun, 29 Nov 2009 00:03:31 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3537671</guid><dc:creator>igorid</dc:creator><author>igorid</author><slash:comments>2</slash:comments><comments>http://forums.asp.net/thread/3537671.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=36&amp;PostID=3537671</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I have a RadioButtonList control which triggers a Sub LegalGaps on SelectedItemChanged event. This Sub creates&amp;nbsp;and fills in an array the size of which depends on the User&amp;#39;s choice of radiobutton options. The second Sub AvailableDays shall be able to read that array and highlight the days in the Calendar control accordingly on DayRender event. May I somehow declare&amp;nbsp;an internally created variable a public one?&lt;/p&gt;
&lt;p&gt;P.S.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;I don&amp;#39;t want to declare the array &amp;quot;Public&amp;quot; outside&amp;nbsp;LegalGaps Sub as in that case I would have&amp;nbsp;to create an oversized array.&lt;/li&gt;
&lt;li&gt;I can&amp;#39;t incorporate LegalGaps into AvailableDays as this would result in running LegalGaps 35 times, i.e. for each day on the Calendar, when running it once is quite enough.&lt;/li&gt;&lt;/ol&gt;</description></item><item><title>Function to check consective 5 same letter or digits </title><link>http://forums.asp.net/thread/3532412.aspx</link><pubDate>Wed, 25 Nov 2009 13:33:36 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3532412</guid><dc:creator>venkatramcse</dc:creator><author>venkatramcse</author><slash:comments>5</slash:comments><comments>http://forums.asp.net/thread/3532412.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=36&amp;PostID=3532412</wfw:commentRss><description>&lt;p&gt;Hi&amp;nbsp;folks,&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;need a&amp;nbsp;help.&amp;nbsp;Function to read consective 5 same letter or digits from the String given.&lt;/p&gt;
&lt;p&gt;Eg: String get = &amp;quot;vennnnnkat&amp;quot;;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I need true or false based on the result.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Venkat.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>code in vb</title><link>http://forums.asp.net/thread/3534769.aspx</link><pubDate>Thu, 26 Nov 2009 17:29:09 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3534769</guid><dc:creator>ramesh866</dc:creator><author>ramesh866</author><slash:comments>2</slash:comments><comments>http://forums.asp.net/thread/3534769.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=36&amp;PostID=3534769</wfw:commentRss><description>&lt;p&gt;hi ,&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000000;padding:0px;margin:0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color:#990099;padding:0px;margin:0px;"&gt;TextBox&lt;/span&gt;&lt;span style="color:#000000;padding:0px;margin:0px;"&gt;&amp;nbsp;txt&amp;nbsp;&lt;/span&gt;&lt;span style="color:#999900;padding:0px;margin:0px;"&gt;=&lt;/span&gt;&lt;span style="color:#000000;padding:0px;margin:0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color:#999900;padding:0px;margin:0px;"&gt;(&lt;/span&gt;&lt;span style="color:#990099;padding:0px;margin:0px;"&gt;TextBox&lt;/span&gt;&lt;span style="color:#999900;padding:0px;margin:0px;"&gt;)&lt;/span&gt;&lt;span style="color:#990099;padding:0px;margin:0px;"&gt;Page&lt;/span&gt;&lt;span style="color:#999900;padding:0px;margin:0px;"&gt;.&lt;/span&gt;&lt;span style="color:#990099;padding:0px;margin:0px;"&gt;PreviousPage&lt;/span&gt;&lt;span style="color:#999900;padding:0px;margin:0px;"&gt;.&lt;/span&gt;&lt;span style="color:#990099;padding:0px;margin:0px;"&gt;FindControl&lt;/span&gt;&lt;span style="color:#999900;padding:0px;margin:0px;"&gt;(&lt;/span&gt;&lt;span style="color:#646464;padding:0px;margin:0px;"&gt;&amp;quot;TextBox1&amp;quot;&lt;/span&gt;&lt;span style="color:#999900;padding:0px;margin:0px;"&gt;);&lt;/span&gt;&lt;span style="color:#000000;padding:0px;margin:0px;"&gt;&lt;br style="padding:0px;margin:0px;" /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color:#990099;padding:0px;margin:0px;"&gt;TextBox1&lt;/span&gt;&lt;span style="color:#999900;padding:0px;margin:0px;"&gt;.&lt;/span&gt;&lt;span style="color:#990099;padding:0px;margin:0px;"&gt;Text&lt;/span&gt;&lt;span style="color:#000000;padding:0px;margin:0px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color:#999900;padding:0px;margin:0px;"&gt;=&lt;/span&gt;&lt;span style="color:#000000;padding:0px;margin:0px;"&gt;&amp;nbsp;txt&lt;/span&gt;&lt;span style="color:#999900;padding:0px;margin:0px;"&gt;.&lt;/span&gt;&lt;span style="color:#990099;padding:0px;margin:0px;"&gt;Text&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;font class="Apple-style-span" color="#990099"&gt;this code is to get the text from another web page.. this is in c#.. can anyone put it in vb????&lt;/font&gt;&lt;/p&gt;</description></item><item><title>ANY ALTERNATIVE OF RESPONSE.REDIRECT</title><link>http://forums.asp.net/thread/3525211.aspx</link><pubDate>Sat, 21 Nov 2009 06:44:52 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3525211</guid><dc:creator>RollerCoster</dc:creator><author>RollerCoster</author><slash:comments>8</slash:comments><comments>http://forums.asp.net/thread/3525211.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=36&amp;PostID=3525211</wfw:commentRss><description>&lt;p&gt;HI Every One&lt;/p&gt;
&lt;p&gt;I am using a client.openRead to send request and passing line through finalurl.&lt;/p&gt;
&lt;p&gt;Dim data As Stream = client.OpenRead(finalurl)&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Now my server blocks ports and i am getting error on this line now is there any other solution to client.OpenRead&lt;/p&gt;
&lt;p&gt;and
what ever i am sending throught this is code is going on other
company&amp;#39;s server so i can&amp;#39;t tell then to change their way so is there
any other solution to this?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;
I AM THINKING THAT IF PORTS THEN IMPOSSIBLE TO SEND REQUEST.SO ONLY WAY IS TO CHANTGE SERVER WHER I HOST MY SITE&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Dim data As Stream = client.OpenRead(finalurl)&lt;/p&gt;
&lt;p&gt;and in final url i have other sites url and some querystring data &lt;/p&gt;
&lt;p&gt;for example&lt;/p&gt;&lt;p&gt;
dim finalurl as string=&amp;quot;www.abc.com?name=RollerCoster&amp;amp;mobile=12345678&amp;quot;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I already use WebHttpRequest but it not works still server not allow
it.But i try it with response.redirect and it works but not suiteable
to my conditions.i want control on my site so i was using Dim data As
Stream = client.OpenRead(finalurl) but now server block some ports due
to some reasons&lt;/p&gt;</description></item><item><title>my first object?</title><link>http://forums.asp.net/thread/3524384.aspx</link><pubDate>Fri, 20 Nov 2009 16:46:15 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3524384</guid><dc:creator>dotnetnoob</dc:creator><author>dotnetnoob</author><slash:comments>2</slash:comments><comments>http://forums.asp.net/thread/3524384.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=36&amp;PostID=3524384</wfw:commentRss><description>&lt;p&gt;Hi All: This is so basic a question I&amp;#39;m not sure where to ask it...but here goes.&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;have&amp;nbsp;a sub that takes a posted image file and resizes it, then saves it to a particular folder on the server. After the image manipulation is complete, I need to take the&amp;nbsp;information about the &amp;nbsp;new image (size, name, etc.) and store it in a SQL2005 table, along with other information submitted in a form along with the posted file.&lt;/p&gt;
&lt;p&gt;I currently do all of this in a single sub that&amp;#39;s invoked by the form&amp;#39;s submit&amp;nbsp;button. I create a new System.Drawing.Image.Size object to hold resized image width/height, and then create a new System.Drawing.Bitmap that takes the posted file and the new size constraints, then save the new bitmap in the correct imageFormat to disk. I then create a sql command to insert the information about the new&amp;nbsp;image into a table, using the info in the Size object and the posted file name, as well as some other text fields and values posted in the form.&lt;/p&gt;
&lt;p&gt;All this works properly in a single sub, but I really need to separate the image resizing and storing in the dB so that I can invoke them independently. Sometimes I may want to edit just the existing dB info, or replace the existing image, or both, so it seems like I should separate the image uploading from the dB update and call one or both depending on what&amp;#39;s required. But, I&amp;#39;m stuck with how to get the new image sizing info back out of the sub, so I can pass it into the sub/function that updates the dB?&lt;/p&gt;
&lt;p&gt;To do that, it seems like I would need to create a new &amp;quot;image object&amp;quot; that would hold all the information about the image (it&amp;#39;s name, it&amp;#39;s resized values, etc.), so that I can pass those parameters to the dB insert/update function...is that possible? Do I need to put the resizing functionality in a class object? I&amp;#39;m lost on what the basic infrastructure should be for this.&lt;/p&gt;
&lt;p&gt;Thanks for any suggestions!&lt;/p&gt;</description></item><item><title>DLNA Player</title><link>http://forums.asp.net/thread/3246263.aspx</link><pubDate>Fri, 19 Jun 2009 18:36:16 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3246263</guid><dc:creator>KyD</dc:creator><author>KyD</author><slash:comments>3</slash:comments><comments>http://forums.asp.net/thread/3246263.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=36&amp;PostID=3246263</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have a DLNA server setup and it works fine.&amp;nbsp; I would like to write a small app play the music, vids and pics.&amp;nbsp; however, when I googled &amp;quot;DLNA VB.net&amp;quot; i am not getting an samples to use.&lt;/p&gt;
&lt;p&gt;So my questions are; is it possible to view the DLNA files via VB.net?&amp;nbsp; If so, how?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for reading my post.&lt;/p&gt;</description></item><item><title>If Or statement in my form</title><link>http://forums.asp.net/thread/3530200.aspx</link><pubDate>Tue, 24 Nov 2009 14:40:02 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3530200</guid><dc:creator>cmt9000</dc:creator><author>cmt9000</author><slash:comments>2</slash:comments><comments>http://forums.asp.net/thread/3530200.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=36&amp;PostID=3530200</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have an asp.net web form that uploads&amp;nbsp;files.&amp;nbsp; Part of the code seems messy to me, but I can&amp;#39;t figure out another way to write it.&lt;/p&gt;
&lt;p&gt;Here it is:&lt;/p&gt;&lt;pre class="vb.net" name="code"&gt;                myFileExt = System.IO.Path.GetExtension(postedFileName).ToLower

                fileType = Me.flImageFromComputer.PostedFile.ContentType.ToLower
                myUploadedFilename = folderPath &amp;amp; sysID &amp;amp; &amp;quot;\&amp;quot; &amp;amp; mediaID.ToString &amp;amp; myFileExt


                If myFileExt = &amp;quot;.jpg&amp;quot; Or myFileExt = &amp;quot;.gif&amp;quot; _
                Or myFileExt = &amp;quot;.png&amp;quot; Or myFileExt = &amp;quot;.swf&amp;quot; _
                Or myFileExt = &amp;quot;.flv&amp;quot; Or myFileExt = &amp;quot;.mov&amp;quot; _
                Or myFileExt = &amp;quot;.mp3&amp;quot; Or myFileExt = &amp;quot;.doc&amp;quot; _
                Or myFileExt = &amp;quot;.docx&amp;quot; Or myFileExt = &amp;quot;.pdf&amp;quot; _
                Or myFileExt = &amp;quot;.xls&amp;quot; Or myFileExt = &amp;quot;.xlsx&amp;quot; _
                Or myFileExt = &amp;quot;.avi&amp;quot; Then
                    Me.flImageFromComputer.SaveAs(myUploadedFilename)
&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;Is there a better way to write this without all the &amp;quot;Or&amp;quot; s ?&lt;br /&gt;&lt;br /&gt;Thanks!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>store order status strings in VB</title><link>http://forums.asp.net/thread/3527404.aspx</link><pubDate>Mon, 23 Nov 2009 09:05:11 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3527404</guid><dc:creator>bexasp</dc:creator><author>bexasp</author><slash:comments>5</slash:comments><comments>http://forums.asp.net/thread/3527404.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=36&amp;PostID=3527404</wfw:commentRss><description>&lt;p&gt;Hi ,&lt;/p&gt;
&lt;p&gt;can any one tell me how will this be in VB?&lt;/p&gt;&lt;pre class="c-sharp" name="code"&gt;public static readonly string[] OrderStatuses =
{&amp;quot;Order placed, notifying customer&amp;quot;, // 0
&amp;quot;Awaiting confirmation of funds&amp;quot;, // 1
&amp;quot;Notifying supplier—stock check&amp;quot;, // 2
&amp;quot;Awaiting stock confirmation&amp;quot;, // 3
&amp;quot;Awaiting credit card payment&amp;quot;, // 4
&amp;quot;Notifying supplier—shipping&amp;quot;, // 5
&amp;quot;Awaiting shipment confirmation&amp;quot;, // 6
&amp;quot;Sending final notification&amp;quot;, // 7
&amp;quot;Order completed&amp;quot;, // 8
&amp;quot;Order cancelled&amp;quot;}; // 9&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item><item><title>Getting a list of domains</title><link>http://forums.asp.net/thread/3528766.aspx</link><pubDate>Mon, 23 Nov 2009 21:06:32 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3528766</guid><dc:creator>TheDiddy</dc:creator><author>TheDiddy</author><slash:comments>2</slash:comments><comments>http://forums.asp.net/thread/3528766.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=36&amp;PostID=3528766</wfw:commentRss><description>&lt;p&gt;How do I get the list of available domains that a windows user can log on to. I am using LogonUser to validate credentials but my users have the ability&amp;nbsp; to use different domains and I want to populate their options with the options windows provides at Log On. &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Any ideas??&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks in advance.&lt;/p&gt;&lt;p&gt;Sean&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Creating a QWERTY Keyboard String Array</title><link>http://forums.asp.net/thread/3527819.aspx</link><pubDate>Mon, 23 Nov 2009 12:34:58 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3527819</guid><dc:creator>CraigMuckleston</dc:creator><author>CraigMuckleston</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3527819.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=36&amp;PostID=3527819</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I have the following that creates an array of the alphabet (A-Z)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; _Alphabet = New ArrayList()&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; For i As Integer = 65 To 91 - 1&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _Alphabet.Add(Convert.ToChar(i))&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; Next&lt;/p&gt;
&lt;p&gt;I want to populate this into some buttons in a qwert keyboard manner. However my array is in A-Z list. Is there a way to populate the list in a qwerty fashion?&lt;/p&gt;</description></item><item><title>API Calls in vb.net 2008</title><link>http://forums.asp.net/thread/3525513.aspx</link><pubDate>Sat, 21 Nov 2009 12:17:04 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3525513</guid><dc:creator>samuelchandradoss</dc:creator><author>samuelchandradoss</author><slash:comments>2</slash:comments><comments>http://forums.asp.net/thread/3525513.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=36&amp;PostID=3525513</wfw:commentRss><description>&lt;p&gt;i want to know how to use api calls in vb.net2008. in visual basic 6.0. we can find the list of api calls in add in manager . in vb.net2008 how to find it..&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Create A Fixed Text File From SQL DB Table</title><link>http://forums.asp.net/thread/3482547.aspx</link><pubDate>Wed, 28 Oct 2009 22:21:39 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3482547</guid><dc:creator>mahonek</dc:creator><author>mahonek</author><slash:comments>8</slash:comments><comments>http://forums.asp.net/thread/3482547.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=36&amp;PostID=3482547</wfw:commentRss><description>&lt;p&gt;Sources of Assistance:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://it.toolbox.com/ask-a-question/asp-dotnet-l"&gt;http://it.toolbox.com/ask-a-question/asp-dotnet-l&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://forums.asp.net/default.aspx/7"&gt;http://forums.asp.net/default.aspx/7&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Create A Fixed Text File From SQL DB Table&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hello, I am using VS2005 and would like to add script to my aspx page to Output a Fixed Text File From my SQL DB Table to a location on the network.&amp;nbsp; I did this in VB6 using a FREEFILE and PADSTRING off of an Access DB table.&amp;nbsp; However, I can&amp;#39;t seem to get it right in the .NET aspx environment.&amp;nbsp; Can someone assist me with this?&amp;nbsp; I have added the VB6 script that is working now and the .NET aspx vb script that I&amp;#39;m trying to move it to.&amp;nbsp; Thank you.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;VB6 SCRIPT:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;Public Sub tbl2txt()&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Dim wrk As dao.Workspace&lt;/p&gt;
&lt;p&gt;Dim db As dao.Database&lt;/p&gt;
&lt;p&gt;Dim cnn As dao.Connection&lt;/p&gt;
&lt;p&gt;Dim rs As dao.Recordset&lt;/p&gt;
&lt;p&gt;Dim strTable As String&lt;/p&gt;
&lt;p&gt;Dim strFileName As String&lt;/p&gt;
&lt;p&gt;Dim intFileNum As Integer&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;On Error GoTo err_Tbl2Txt&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;strTable = &amp;quot;QBtmLine&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;#39; Create Microsoft Jet Workspace object.&lt;/p&gt;
&lt;p&gt;Set wrk = CreateWorkspace(&amp;quot;&amp;quot;, &amp;quot;admin&amp;quot;, &amp;quot;&amp;quot;, dbUseJet)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Set db = wrk.OpenDatabase(&amp;quot;U:\DEVHELP_DBs\Ilfornaio\Access2000_a\botline_2k.mdb&amp;quot;)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Set rs = db.OpenRecordset(&amp;quot;Select * From &amp;quot; &amp;amp; strTable)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;With rs&lt;/p&gt;
&lt;p&gt;&amp;#39;check to see that records were returned&lt;/p&gt;
&lt;p&gt;If rs.RecordCount &amp;lt; 1 Then&lt;/p&gt;
&lt;p&gt;MsgBox &amp;quot;No records found for Bottom Line Check File&amp;quot;&lt;/p&gt;
&lt;p&gt;Me.Refresh&lt;/p&gt;
&lt;p&gt;End If&lt;/p&gt;
&lt;p&gt;intFileNum = FreeFile&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;strFileName = &amp;quot;H:\Acct\BT_2kTesting\blinetxtapp_2k\Blintes1.txt&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Open strFileName For Output As intFileNum&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;.MoveFirst&lt;/p&gt;
&lt;p&gt;Do While Not .EOF&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;#39;File is fixed&lt;/p&gt;
&lt;p&gt;Print #intFileNum, Format(!paydate, &amp;quot;mm/dd/yy&amp;quot;) _&lt;/p&gt;
&lt;p&gt;&amp;amp; PadString(Format(!checkamt, &amp;quot;###,#00.00&amp;quot;), &amp;quot; &amp;quot;, 13, False) _&lt;/p&gt;
&lt;p&gt;&amp;amp; PadString(!Name, &amp;quot; &amp;quot;, 80, True) &amp;amp; PadString(!add1, &amp;quot; &amp;quot;, 35, True) _&lt;/p&gt;
&lt;p&gt;&amp;amp; PadString(!add2, &amp;quot; &amp;quot;, 35, True) &amp;amp; PadString(!add3, &amp;quot; &amp;quot;, 35, True) _&lt;/p&gt;
&lt;p&gt;&amp;amp; PadString(!add4, &amp;quot; &amp;quot;, 2, True) &amp;amp; PadString(!postcode, &amp;quot; &amp;quot;, 10, True) _&lt;/p&gt;
&lt;p&gt;&amp;amp; (Format(!docdate, &amp;quot;mm/dd/yy&amp;quot;) _&lt;/p&gt;
&lt;p&gt;&amp;amp; PadString(Format(!invoiceamt, &amp;quot;###,#00.00&amp;quot;), &amp;quot; &amp;quot;, 13, False) _&lt;/p&gt;
&lt;p&gt;&amp;amp; PadString(!vendor, &amp;quot; &amp;quot;, 72, False) &amp;amp; PadString(!invno, &amp;quot; &amp;quot;, 34, False) _&lt;/p&gt;
&lt;p&gt;&amp;amp; PadString(!checkno, &amp;quot; &amp;quot;, 24, False) &amp;amp; PadString(!sname, &amp;quot; &amp;quot;, 25, True) _&lt;/p&gt;
&lt;p&gt;&amp;amp; PadString(!Group, &amp;quot; &amp;quot;, 15, True) &amp;amp; PadString(!groupname, &amp;quot; &amp;quot;, 35, True))&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;.MoveNext&lt;/p&gt;
&lt;p&gt;Loop&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;End With&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Close intFileNum&lt;/p&gt;
&lt;p&gt;Set rs = Nothing&lt;/p&gt;
&lt;p&gt;db.Close&lt;/p&gt;
&lt;p&gt;Set wrk = Nothing&lt;/p&gt;
&lt;p&gt;Exit Sub&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;err_Tbl2Txt:&lt;/p&gt;
&lt;p&gt;MsgBox &amp;quot;Error&amp;quot; &amp;amp; Err.Description &amp;amp; &amp;quot;occurred in Tbl2Txt, Correct then Rerun.&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;End Sub&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/p&gt;
&lt;p&gt;&lt;b&gt;ASP.NET .ASPX SCRIPT (NEED CORRECTING):&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Dim objConn As Data.SqlClient.SqlConnection&lt;/p&gt;
&lt;p&gt;Dim objComm As Data.SqlClient.SqlCommand&lt;/p&gt;
&lt;p&gt;Dim objrec As Data.SqlClient.SqlDataReader&lt;/p&gt;
&lt;p&gt;Dim strFileName As String&lt;/p&gt;
&lt;p&gt;Dim intFileNum As Integer&lt;/p&gt;
&lt;p&gt;Dim flag As Boolean&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;objConn = New SqlClient.SqlConnection&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objConn.ConnectionString = &amp;quot;Data Source=CODA2K;Persist Security Info=True;password=codaprod; USER;Initial Catalog=CODAPROD;&amp;quot;&lt;/p&gt;
&lt;p&gt;objConn.Open()&lt;/p&gt;
&lt;p&gt;objComm = New SqlCommand(&amp;quot;select * from tbl2txt&amp;quot;, objConn)&lt;/p&gt;
&lt;p&gt;objComm.CommandTimeout = 500&lt;/p&gt;
&lt;p&gt;objrec = objComm.ExecuteReader()&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;flag = False&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;While (objrec.Read())&lt;/p&gt;
&lt;p&gt;If objrec.recordcount &amp;gt; 0 Then&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; flag = True&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; intFileNum = FreeFile()&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strFileName = &amp;quot;H:\Acct\BT_2kTesting\blinetxtapp_2k\Blintes1.txt&amp;quot;&lt;/p&gt;
&lt;p&gt;Open strFileName For Output As intFileNum&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39;File is fixed&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Print #intFileNum, Format(!paydate, &amp;quot;mm/dd/yy&amp;quot;) _&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp; PadString(Format(!checkamt, &amp;quot;###,#00.00&amp;quot;), &amp;quot; &amp;quot;, 13, False) _&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp; PadString(!Name, &amp;quot; &amp;quot;, 80, True) &amp;amp; PadString(!add1, &amp;quot; &amp;quot;, 35, True) _&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp; PadString(!add2, &amp;quot; &amp;quot;, 35, True) &amp;amp; PadString(!add3, &amp;quot; &amp;quot;, 35, True) _&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp; PadString(!add4, &amp;quot; &amp;quot;, 2, True) &amp;amp; PadString(!postcode, &amp;quot; &amp;quot;, 10, True) _&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp; (Format(!docdate, &amp;quot;mm/dd/yy&amp;quot;) _&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp; PadString(Format(!invoiceamt, &amp;quot;###,#00.00&amp;quot;), &amp;quot; &amp;quot;, 13, False) _&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp; PadString(!vendor, &amp;quot; &amp;quot;, 72, False) &amp;amp; PadString(!invno, &amp;quot; &amp;quot;, 34, False) _&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp; PadString(!checkno, &amp;quot; &amp;quot;, 24, False) &amp;amp; PadString(!sname, &amp;quot; &amp;quot;, 25, True) _&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp; PadString(!Group, &amp;quot; &amp;quot;, 15, True) &amp;amp; PadString(!groupname, &amp;quot; &amp;quot;, 35, True)))&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Exit While&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;End While&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Close(intFileNum)&lt;/p&gt;
&lt;p&gt;If flag = False Then&lt;/p&gt;
&lt;p&gt;lblMessage.Visible = True&lt;/p&gt;
&lt;p&gt;lblMessage.Text = &amp;quot;No Records Found. Please try again or call your Systems Programmer at 415-945-4202.&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Exit Sub&lt;/p&gt;
&lt;p&gt;End If&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>VB Coding Standards: Are, CInt, CBool, CStr, CDate and the remaining methods now obsolete?</title><link>http://forums.asp.net/thread/3519520.aspx</link><pubDate>Wed, 18 Nov 2009 10:50:13 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3519520</guid><dc:creator>mrplatypus</dc:creator><author>mrplatypus</author><slash:comments>13</slash:comments><comments>http://forums.asp.net/thread/3519520.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=36&amp;PostID=3519520</wfw:commentRss><description>&lt;p&gt;I hope that someone can help to provide me with information.&lt;/p&gt;&lt;p&gt;An interesting, &amp;quot;conversation&amp;quot;, has occurred whereby I was informed that the methods (?) CInt, CBool, CDate etc are now considered obsolete when converting our variables from one type to another.&lt;/p&gt;&lt;p&gt;Please would someone confirm or deny this giving evidence from Microsoft?&lt;/p&gt;&lt;p&gt;Thanks, mrPlatpus&lt;br /&gt;&lt;/p&gt;</description></item><item><title>How to make OnSelectedIndexChanged fire an event without posting back the whole page?</title><link>http://forums.asp.net/thread/3515783.aspx</link><pubDate>Mon, 16 Nov 2009 16:36:10 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3515783</guid><dc:creator>igorid</dc:creator><author>igorid</author><slash:comments>10</slash:comments><comments>http://forums.asp.net/thread/3515783.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=36&amp;PostID=3515783</wfw:commentRss><description>&lt;p&gt;I want&amp;nbsp;my ListBox control to respond dynamically&amp;nbsp;to a change of selected item. However,&amp;nbsp;&amp;nbsp;&amp;quot;OnSelectedIndexChanged&amp;quot; fires an event only when AutoPostBack is set to true. Having a dozen of controls updating&amp;nbsp;each time a user makes a change in selection in a single one is quite annoying and irritates a lot. Is it possible to enable&amp;nbsp;triggering an event&amp;nbsp;for a dedicated control with&amp;nbsp;OnSelectedIndexChanged?&lt;/p&gt;
&lt;p&gt;I would appreciate an expert advice on this issue.&lt;/p&gt;
&lt;p&gt;P.S. I need a simple non-AJAX solution.&lt;/p&gt;</description></item><item><title>Accessing a variable dimensioned in a for loop</title><link>http://forums.asp.net/thread/3522881.aspx</link><pubDate>Thu, 19 Nov 2009 23:14:04 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3522881</guid><dc:creator>chricholson</dc:creator><author>chricholson</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3522881.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=36&amp;PostID=3522881</wfw:commentRss><description>&lt;p&gt;The subject almost sums this up. I have dimensioned a variable &amp;#39;y&amp;#39; inside a for loop. If i then try and access this outside of the for loop I cannot. What is the reason for this and how can I correct it? Unfortunately I am not able to Dim the variable &amp;#39;y&amp;#39; outside of the for loop.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Chris&lt;br /&gt;&lt;/p&gt;</description></item><item><title>add 4 hours to a datetime value</title><link>http://forums.asp.net/thread/3517497.aspx</link><pubDate>Tue, 17 Nov 2009 12:03:43 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3517497</guid><dc:creator>jula</dc:creator><author>jula</author><slash:comments>4</slash:comments><comments>http://forums.asp.net/thread/3517497.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=36&amp;PostID=3517497</wfw:commentRss><description>&lt;p&gt;hi can anyby help me to add 4 hours to&amp;nbsp;the following&amp;nbsp;&amp;nbsp;datetime value &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;dimdate4pos = MM &amp;amp; &lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;/&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &amp;amp; DD &amp;amp; &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;/&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &amp;amp; YY &amp;amp; &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot; &amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &amp;amp; HH &amp;amp; &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;:&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &amp;amp; MI &amp;amp; &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;:&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &amp;amp; SS&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Need help with coding a query creation interface</title><link>http://forums.asp.net/thread/3520619.aspx</link><pubDate>Wed, 18 Nov 2009 22:58:30 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3520619</guid><dc:creator>haggis999</dc:creator><author>haggis999</author><slash:comments>2</slash:comments><comments>http://forums.asp.net/thread/3520619.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=36&amp;PostID=3520619</wfw:commentRss><description>&lt;p&gt;I am trying to implement an interface on an ASP.NET 3.5 web page that will let the user specify up to three conditions for insertion into a Linq to SQL query. It looks something like this:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DDL of column names&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DDL of logical ops&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TextBox for value&lt;/p&gt;
&lt;p&gt;And/Or DDL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DDL of column names&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DDL of logical ops&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TextBox for value&lt;/p&gt;
&lt;p&gt;And/Or DDL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DDL of column names&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DDL of logical ops&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TextBox for value&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The logical operations DropDownList contains options such as Equals, Not Equals, Contains, etc. An example of user entry might be as follows:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FirstName&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Equals&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;Basil&amp;quot;&lt;/p&gt;
&lt;p&gt;And&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;LastName&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Not Equals&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;quot;Brush&amp;quot;&lt;/p&gt;
&lt;p&gt;Or&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Email&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Contains&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;quot;hotmail.com&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would wish this example&amp;nbsp;of user input to be used to create the following code:&amp;nbsp;&lt;/p&gt;&lt;pre class="vb.net" name="code"&gt;Dim Recipients = From ent In myDBC.Entrants _
                                Where ent.FirstName = &amp;quot;Basil&amp;quot; _
                                And Not ent.LastName = &amp;quot;Brush&amp;quot; _
                                Or ent.Email.Contains(&amp;quot;hotmail.com&amp;quot;) _
                                Select ent&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;My problem is that I don&amp;#39;t know how to assemble my query from the values in the various DDLs and TestBoxes. Assistance would be much appreciated.&lt;/p&gt;
&lt;p&gt;David&lt;/p&gt;</description></item><item><title>handle the popup messages thrown in web application using VB</title><link>http://forums.asp.net/thread/3517881.aspx</link><pubDate>Tue, 17 Nov 2009 15:29:46 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3517881</guid><dc:creator>bharathi_82</dc:creator><author>bharathi_82</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3517881.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=36&amp;PostID=3517881</wfw:commentRss><description>&lt;p&gt;I am developing a tool to automate testing of a web application. I want to handle the popup messages thrown in scenarios. The problem am facing is when the application runs a popup message is thrown, but only after a response is given to the message box(ie clicking on any buttons in the message box) the execution continues, till then the web browser is busy waiting for a response. Please suggest.&lt;/p&gt;</description></item></channel></rss>