May
12
2010
1

Merge Image in VB.net, ASPX

1,879 views

วิธีการรวมร่างระหว่างรูป 2 รูป
(more...)

Written by Pipo in: VB.Net & Aspx |
Mar
18
2010
0

IIS7 (64bit) Microsoft.Jet.OleDb.4.0 provider is not registered on the local machine

2,130 views

goto IIS Manager

Application Pools ->DefaultAppPool

right click  Advance Settings

Generals->Enable 32-bit Applications set it to true

Written by Pipo in: VB.Net & Aspx |
Aug
06
2009
0

ติดต่อ webservice ด้วย proxy

2,137 views

ตัวอย่างการดึงราคาน้ำมันจาก http://www.pttplc.com/pttinfo.asmx?wsdl
ขั้นแรก add Web References ก่อน

 
        Try
            Dim strReturn As String
            Dim WsPTT As New PTTInfo.PTTInfo()
 
            Dim cr As New System.Net.NetworkCredential("user", "pass", "mydomain")
            Dim pr As New System.Net.WebProxy("203.x.x.x", 8080)
 
            pr.Credentials = cr
            WsPTT.Proxy = pr
 
            strReturn = WsPTT.GetOilPrice("English", 6, 8, 2009)
            MessageBox.Show(strReturn)
 
        Catch Ex As System.Exception
            MessageBox.Show("Time Out")
        End Try
 

Written by Pipo in: VB.Net & Aspx | Tags: , , ,
May
13
2008
0

aspx getSessionId

1,362 views
Public Function getSessionId () As String
	return System.Web.HttpContext.Current.Session.SessionID
End Functio

Written by Pipo in: VB.Net & Aspx | Tags: ,
Apr
08
2008
0

XmlDocument

1,232 views
Dim myXmlDoc As XmlDocument = New XmlDocument()
'myXmlDoc.LoadXml(strXml) ' load from string
'myXmlDoc.Load(Server.MapPath("path/to/xml.xml"))
myXmlDoc.Load("http://domain/xml.xml")
Dim UserIdNode As XmlNodeList	=	myXmlDoc.GetElementsByTagName("UserId")
Dim FirstNameNode As XmlNodeList	=	myXmlDoc.GetElementsByTagName("FirstName")
 
Dim UserId As String	=	Convert.ToString(UserIdNode(0).InnerText)
Dim FirstName As String	=	Convert.ToString(FirstNameNode(0).InnerText)

(more...)

Written by Pipo in: VB.Net & Aspx | Tags:
Apr
03
2008
2

To enable/disable Just-In-Time debugging

4,272 views

Dr. Watson

start->run->cmd enter
drwtsn32.exe -i

Visual Studio

  1. On the Tools menu, click Options.
  2. In the Options dialog box, select the Debugging folder.
  3. In the Debugging folder, select the Just-In-Time page.
  4. In the Enable Just-In-Time debugging of these types of code box, select or clear the relevant program types: Managed, Native, or Script.To disable Just-In-Time debugging, once it has been enabled, you must be running with Administrator privileges. Enabling Just-In-Time debugging sets a registry key, and Administrator privileges are required to change that key.
  5. Click OK.

Written by Pipo in: VB.Net & Aspx | Tags:
Page 1 of 212

Powered by WordPress | Aeros Theme | TheBuckmaker.com WordPress Themes