Click here to Skip to main content
15,911,142 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: DataGridView V Scroll trouble Pin
MDem24-Oct-07 0:07
MDem24-Oct-07 0:07 
Questionupload image file from mobile devices to server using vb.net cf Pin
jasmine112623-Oct-07 17:35
jasmine112623-Oct-07 17:35 
QuestionHow to run EXE thru network in VB .NET 2005 Pin
kkb_200122-Oct-07 23:22
kkb_200122-Oct-07 23:22 
AnswerRe: How to run EXE thru network in VB .NET 2005 Pin
kubben24-Oct-07 2:02
kubben24-Oct-07 2:02 
QuestionData Grid in visual studio 2005 error Pin
solarthur0122-Oct-07 11:57
solarthur0122-Oct-07 11:57 
AnswerRe: Data Grid in visual studio 2005 error Pin
tim63723-Oct-07 5:52
tim63723-Oct-07 5:52 
QuestionPost a html fields to a specific url????????? Pin
Nithin Krishna21-Oct-07 21:10
Nithin Krishna21-Oct-07 21:10 
AnswerRe: Post a html fields to a specific url????????? Pin
SHatchard23-Oct-07 20:50
SHatchard23-Oct-07 20:50 
You could firstly just sent the action of the form to the destination, which would be the easiest way. However, a while back I wrote a simple class which would allow you to post to a Url from code which is included below in case you find it useful

<br />
Public Class Poster<br />
<br />
#Region "   Properties   "<br />
<br />
    Private values As New System.Collections.Specialized.NameValueCollection<br />
<br />
    Private _postUrl As String<br />
    Public Property PostUrl() As String<br />
        Get<br />
            Return _postUrl<br />
        End Get<br />
        Set(ByVal value As String)<br />
            _postUrl = value<br />
        End Set<br />
    End Property<br />
<br />
    Private _formName As String = "form1"<br />
    Public Property FormName() As String<br />
        Get<br />
            Return _formName<br />
        End Get<br />
        Set(ByVal value As String)<br />
            _formName = value<br />
        End Set<br />
    End Property<br />
<br />
    Private _method As String = "POST"<br />
    Public Property Method() As String<br />
        Get<br />
            Return _method<br />
        End Get<br />
        Set(ByVal value As String)<br />
            _method = value<br />
        End Set<br />
    End Property<br />
<br />
    Public Sub AddValue(ByVal name As String, ByVal value As String)<br />
        values.Add(name, value)<br />
    End Sub<br />
<br />
<br />
#End Region<br />
<br />
#Region "   Publish Methods   "<br />
    Public Sub Post()<br />
        If PostUrl Is Nothing Then Throw New Exception("No Url specified")<br />
        If FormName Is Nothing Then Throw New Exception("No Form Name specified")<br />
        If String.IsNullOrEmpty(Method) Then Throw New Exception("No method specified")<br />
        'if values.Count=0 then throw new Exception("No post values supplied")<br />
<br />
        HttpContext.Current.Response.Clear()<br />
        HttpContext.Current.Response.Write("<HTML><HEAD>")<br />
        HttpContext.Current.Response.Write(String.Format("</HEAD><BODY onload=""document.{0}.submit()"">", FormName))<br />
        HttpContext.Current.Response.Write(String.Format("<form name=""{0}"" method=""{1}"" action=""{2}"" >", FormName, Method, PostUrl))<br />
        For i As Integer = 0 To values.Count - 1<br />
            System.Web.HttpContext.Current.Response.Write(String.Format("<input name=""{0}"" type=""hidden"" value=""{1}"">", values.Keys(i), values(values.Keys(i))))<br />
        Next<br />
<br />
        HttpContext.Current.Response.Write("</form>")<br />
        HttpContext.Current.Response.Write("</body></html>")<br />
        HttpContext.Current.Response.End()<br />
    End Sub<br />
#End Region<br />
<br />
End Class<br />

Questiongive opened website Pin
microgroup21-Oct-07 19:26
microgroup21-Oct-07 19:26 
QuestionRe: give opened website Pin
Vasudevan Deepak Kumar22-Oct-07 2:45
Vasudevan Deepak Kumar22-Oct-07 2:45 
AnswerRe: give opened website Pin
Scott Dorman23-Oct-07 7:24
professionalScott Dorman23-Oct-07 7:24 
AnswerRe: give opened website Pin
Scott Dorman23-Oct-07 7:27
professionalScott Dorman23-Oct-07 7:27 
Questiondeployment in .net framework Pin
Shuaib wasif khan19-Oct-07 7:44
Shuaib wasif khan19-Oct-07 7:44 
AnswerRe: deployment in .net framework Pin
Pete O'Hanlon21-Oct-07 9:52
mvePete O'Hanlon21-Oct-07 9:52 
AnswerRe: deployment in .net framework Pin
Christian Graus21-Oct-07 12:45
protectorChristian Graus21-Oct-07 12:45 
QuestionReading configurations from a Visual Studio Add-in [modified] Pin
BigBenDk18-Oct-07 11:08
BigBenDk18-Oct-07 11:08 
QuestionReferencing components with index Pin
sysrev18-Oct-07 5:04
sysrev18-Oct-07 5:04 
AnswerRe: Referencing components with index Pin
led mike18-Oct-07 5:29
led mike18-Oct-07 5:29 
GeneralRe: Referencing components with index Pin
sysrev18-Oct-07 5:32
sysrev18-Oct-07 5:32 
AnswerRe: Referencing components with index Pin
Robert Rohde18-Oct-07 13:34
Robert Rohde18-Oct-07 13:34 
GeneralRe: Referencing components with index Pin
sysrev19-Oct-07 0:00
sysrev19-Oct-07 0:00 
GeneralRe: Referencing components with index Pin
Robert Rohde19-Oct-07 3:18
Robert Rohde19-Oct-07 3:18 
GeneralRe: Referencing components with index Pin
sysrev19-Oct-07 4:22
sysrev19-Oct-07 4:22 
GeneralRe: Referencing components with index Pin
Robert Rohde19-Oct-07 6:05
Robert Rohde19-Oct-07 6:05 
GeneralRe: Referencing components with index Pin
sysrev20-Oct-07 0:52
sysrev20-Oct-07 0:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.