I guess... I've tried forever, and not only does it seem to produce improper HTML, it doesn't work. I've tried everything. I need to convert text in a RichTextBox to HTML.
I am a one man dev shop and need some outside opinions on how to approach this project.
I need to create a "post office" program that will send html emails thru the system.net.mail framework.
For each job submitted to the postoffice the app would need to read a user created html email string from the database, read a string of email addresses to send to and send out the emails based on a set processing time.
The first step would be to parse out the email addresses to find out how many emails it needs to send out and determine how many it would need to send per minute to complete the job in 20 minutes tops. I.e. if 1000 email addresses are submitted per job it would determine that it needs to send 50 emails per minute to complete the job.
The part I am stuck on is how I should queue the emails. If the app determines it needs to send 50 a minute should I only load up the first 50 on a timer event then get the next 50 queued up for the next timer tick? Or would it be better to load up all 1000 in a loop and build in some kind of wait time after it sends the first 50?
I am trying to find out if it possible to create a windows form that will post an XML file using a simple HTML Form? I have the HTML page that will be used to post the XML file already created, what i wanted to be able to do was enter the XML into a text box on my form which the user can post. When the XML is entered and the button POST is hit then the XML is added to the HTML page that i have already made and posted to the webservice. Is this possible?
What i also want to be able to do is display the XML response received following the post, to update you if the post has been successful, is this possible?
I need to POST a HTML form to a 3rd party website (a Mass-SMS texting system).
In the past I've done this by forwarding to a page containing a form I've pre-populated and hidden (using display:none), then I've ran a javascript function at the end of the page to automatically submit this form.
However I'm hoping theres someway I can do all this programmatically (as I don't care about the response, and the user doesn't need to see the page the form is being posted to).
I've written my HTML webserver in VB.NET and I don't know how to make it read data values submitted in HTML forms. My web server only responds to HTTP 'GET' requests. My sample cod is below it is reading the URL rather tan the data contained in the forms`
I have a NameValueCollection in vb.net and I need to be able to iterate through it and create an html form that posts automatically to a 3rd party site.
I have this to go off of as an example, but I am not sure exactly how to do this from code behind and end up with an html page that actually posts.[code]...
In my VB application I am converting doc to HTML and then saving this HTML to database. For converting from doc to HTML I am creating the wordobject and then using the WordObject.ActiveDocument.Saveas. This is working okay most of the times but there is one issue that, sometimes some extra empty tags gets introduced in the HTML generated. Sometimes these tags are not in proper format and are erroneaous.
Did anybody ever faced this problem? Is there any other way to convert doc to HTML instead of WordObject.ActiveDocument.Saveas?
I have used examples from threads here on how to open and convert word documents to html in order to parse them. I got it all working great using the office interop library but used an example word document with some text in it and it worked fine. Now with actual word documents that I need to parse that come in all types of formatting and irregular formats I got it to convert to html all fine. But the actual html when looking at it does not make sense and I am not sure how to parse this. for example:
OK, I am creating a tool that monitors a folder. IF a file is dropped there, it means there is an issue. So the tool sends out an email and I also want it to send out a page via the telalert system we use. The telalert system is used by filling out certain variables and posting them in a web page. What i want to do is the same thing but behind the scenes in the tool.
Does that make sense? I currently do that in a web form i created using HTML and javascript for a web page our end users use to report issues to us, that code looks like: [Code]. Now some of the other variables used for the post are in the web form. But this way pops up a webpage and stuff. Since my tool will be on a PC running by itself, i would want all the.....'posting' to be done in the background.
Suppose I am going to the vb6 projects to vb.net, I have many references in vb6.My question is may I add the references directly to the vb.net projects after I modified the codes?
I am encountering an error in the following statement:For i As Integer = 0 To dtAccess.Rows.Count - 1 If dtAccess.Rows(i).Item("YMD") = dateval then dtAccess is a datatable where the column YMD is of type string.dateval is a variable of type date. Now here is the anomaly. The first ten rows works fine during the loop execution. However when the 11th row is encounter I get the following error:"Conversion from type string to date is not valid." My question is that if it is not valid then why it worked for the first ten rows? My second question is what can I do to overcome the error?
?cdec(Me.SelectSingleNode("./FloatAmount").InnerText) Run-time exception thrown : System.InvalidCastException - Conversion from string "100.00" to type 'Decimal' is not valid.
I decided to turn on "Option Strict" to see all my implicit conversions that were going on WOW there were alot.I am making changes when I discoverd the following problem:With Option Strict Off , everything works great
Option Strict Off Dim glahh As Integer = (Me.subj_gla_txt.Text * 120%) / 100 Dim glah As Integer = (Me.subj_gla_txt.Text * 115%) / 100 Dim glal As Integer = (Me.subj_gla_txt.Text * 85%) / 100
[code]....
I get run time error can not convert string "" to Double at the last line That error I thought would indicate that Me.List2_glatxt.Text is empty? I dont see how it could be since that line in the code above as integer works?
I've been asked by management to convert all of my applications from VB 2005 to VB 2008 (in preparation for taking them to VB 2010). I have a VS 2005 application that uses an ADO Data adapter which was defined using the GUI. I normally define my connections in code, but have been asked to get away from that in favor of ADO (and similar) data adapters.When I run the conversion wizard in VS 2008, it appears to convert this program, with some warnings and I get the 'Conversion Completed' dialog box. However, the VS 2008, will not let me close the dialog box, even after waiting for 3 hours. The only way to get out is to reboot the system.
I need to add multiple textboxes together and am using Cdbl, my problem is if i have an empty box then conversion can not work, so i have to put zero default in each Textbox, i really dont like they way that looks So i am looking for a way to to give an empty textbox a value of zero so the conversion will work
I want to connect to the proxy server using with the webbrowser while reads the strings of the proxy username, password, ip and the ports in each textbox.ere it is the
Imports System.Net Imports System.IO Public Class Form1
This may sound really stupid but I have to ask cause I'm not finding this answer anywhere.I have an application where the user will need to sign up for a new user account on the website [URL]..However when I am using Firefox's plug-in Firebug to view html I am getting something totally different than when I just right click on the site and view the page source.
What I am trying to do is to get the captcha from the website and display it in a picturebox on the application so the user can view the captcha, solve the captcha and then the app post is back to the service for a response.
Here is the source that I am getting using Firefox's Firebug to inspect the element:
<td> <input type="hidden" value="Oo3Jo1I8bgzK68agMqo3s79ZZib2OkbK" name="iden"> <img class="capimage" src="/captcha/Oo3Jo1I8bgzK68agMqo3s79ZZib2OkbK.png" alt="i wonder if these things even work"> </td>
[Code]...
Why would the two be showing me two different versions of the HTML?
And how would you be able to grab that source to view in a picturebox using webclient?
I am having problems with the code below. I have copied and pasted the code from a program that I wrote to test and see if the code does work. In that program it does. But when I use the same code in another program I get the following error message. invalidcast exception was unhandled conversion from string to type integer is not valid.
I am trying to let the user preview HTML email before sending it. Does anybody have or know where I can get a simple HTML editor or control that render HTML withou using the webbrowser control?
I have a problem of getting the string from the html class. When I debugged the project and I clicked the button, httprequest was connecting to the site then reading the pattern string from html class to get string, but it filled as a blank text.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click 'Create a request for the URL. Dim request As WebRequest = WebRequest.Create("[URL]") ' If required by the server, set the credentials. [Code] .....
I an trying to work regards with the pattern string as "showChannel", which it doesn't filled the string from the html class. I want the pattern string to get the string from the html class such as like this: <p class="showChannel">Name of program - Saturday 26th December, 22:30</p> I want to get the time at the end of the pattern string which I want to fill time like this 22:30.