欧美综合激情网,国产高清一区在线观看,四虎成人精品一区二区免费网站http://www.aygfsteel.com/nobody_am/category/2020.htmlzh-cnSun, 12 Aug 2007 15:48:21 GMTSun, 12 Aug 2007 15:48:21 GMT60Html中符合w3c而不常用的標簽http://www.aygfsteel.com/nobody_am/articles/84782.htmlMingIsMeMingIsMeFri, 01 Dec 2006 03:30:00 GMThttp://www.aygfsteel.com/nobody_am/articles/84782.html
<fieldset>
???
<legend>Content</legend>
???Hello?World!?
</fieldset>

2,下拉框分組
<select?name="age">
<optgroup?label="baby">
<option>0-2</option>
<option>3-5</option>
</optgroup>
<optgroup?label="kid">
<option>6-10</option>
<option>10-15</option>
</optgroup>
<optgroup?label="adult">
<option>16-30</option>
<option>31-40</option>
<option>41-60</option>
</optgroup>
</select>


MingIsMe 2006-12-01 11:30 發表評論
]]>
.NET 圖表(Chart)資源URLhttp://www.aygfsteel.com/nobody_am/articles/28651.htmlMingIsMeMingIsMeThu, 19 Jan 2006 06:31:00 GMThttp://www.aygfsteel.com/nobody_am/articles/28651.html
  • .Net Charting
    URL:  http://www.dotnetcharting.com/home.aspx
  • Nevron Chart for .NET
    URL:  http://nevron.com/Home.aspx?content=Home
  • Dundas Chart
    URL: http://www.dundas.com/home/index.aspx?Section=Home
  •  






    MingIsMe 2006-01-19 14:31 發表評論
    ]]>
    ASP.Net處理圖片上傳Webserver,結合數據庫顯示http://www.aygfsteel.com/nobody_am/articles/9178.htmlMingIsMeMingIsMeThu, 04 Aug 2005 04:26:00 GMThttp://www.aygfsteel.com/nobody_am/articles/9178.htmlPart I 創建數據庫

    代碼:

    CREATE TABLE imgProcess(
    pic_id 
    INT IDENTITY(1,1NOT NULL PRIMARY KEY,
    pic_title 
    VARCHAR(50NULL,
    pic_type 
    VARCHAR(50NULL,
    pic_content 
    IMAGE NULL
    )

    Part II 圖片上傳Web Server及在數據庫存入路徑

    代碼(.aspx)

    <form id="Form1" method="post" runat="server">
      
    <asp:TextBox id="txtTitle" runat="server"></asp:TextBox><br>
      
    <INPUT type="file" id="myImageFile" runat="server">
      
    <asp:Button id="btnUpload" runat="server" Text="Upload" Height="23px"></asp:Button><br>
      
    <br>
      
    <asp:HyperLink id="hlinkShow" runat="server" NavigateUrl="ShowAllPic.aspx">ShowAllPic</asp:HyperLink>
    </form>

    代碼(.vb)

    Private Sub btnUpload_Click(ByVal sender As System.ObjectByVal e As System.EventArgs) Handles btnUpload.Click
        
    Dim imageType As String
        
    Dim imageSize As Int32
        imageType 
    = myImageFile.PostedFile.ContentType
        imageSize 
    = myImageFile.PostedFile.ContentLength
        
    If (imageSize = 0Then
          Response.
    Write("Not Null")
          
    Return
        
    End If
        
    If (imageSize > 300000Then
          Response.
    Write("Too big")
          
    Return
        
    End If
        
    Dim filesplit() As String = Split(imageType, "/")
        imageType 
    = filesplit(filesplit.Length - 1)
        
    If Not (imageType.ToLower.Equals("pjpeg"Or imageType.ToLower.Equals("gif")) Then
          Response.
    Write("Format Error")
        
    End If
        filesplit 
    = Split(myImageFile.PostedFile.FileName, "\")
        
    Dim fileName As String = filesplit(filesplit.Length - 1)
        myImageFile.PostedFile.SaveAs(Server.MapPath(
    "source\images\" & fileName))
        
    Dim imagePath As String = "source\images\" & fileName
        
    Dim img As String = "<img src=" & imagePath & " border=0>"
        Dim dbAccess As New CommonDB
        
    Try
          dbAccess.OpenConnection()
          dbAccess.
    Command.CommandText = "INSERT INTO imgProcess(pic_title,pic_type) VALUES( '" & Me.txtTitle.Text.Trim & "','" & img & "')"
          dbAccess.Command.ExecuteNonQuery()
          Response.
    Write("Success")
        
    Catch ex As Exception
          Response.
    Write(ex.ToString)
        
    Finally
          dbAccess.CloseConnection()
        
    End Try
    End Sub

    Part III 圖片顯示

    代碼(.aspx

    <form id="Form1" method="post" runat="server">
      
    <asp:DataGrid id="Grid1"  runat="server" />
    </form>

    代碼(.vb

    Private Sub Page_Load(ByVal sender As System.ObjectByVal e As System.EventArgs) Handles MyBase.Load
        
    Dim dbAccess As New CommonDB
        Grid1.DataSource 
    = dbAccess.QueryData("SELECT pic_title,pic_type FROM imgProcess""temp")
        Grid1.DataBind()
    End Sub


    MingIsMe 2005-08-04 12:26 發表評論
    ]]>
    ASP.Net處理圖片在數據庫的存取http://www.aygfsteel.com/nobody_am/articles/9176.htmlMingIsMeMingIsMeThu, 04 Aug 2005 04:22:00 GMThttp://www.aygfsteel.com/nobody_am/articles/9176.html閱讀全文

    MingIsMe 2005-08-04 12:22 發表評論
    ]]>
    調用webservice(不用安裝SoapToolkit20.exe)http://www.aygfsteel.com/nobody_am/articles/7578.htmlMingIsMeMingIsMeTue, 12 Jul 2005 17:48:00 GMThttp://www.aygfsteel.com/nobody_am/articles/7578.html
    Dim strxml As String
        
    Dim strVendorId As String
        
    Dim strEmployeeID As String
        
    Dim strGUID As String
        
    Dim strConfirmationNo As String
        
        strVendorId 
    = Text1.Text
        strEmployeeID 
    = Text2.Text
        strGUID 
    = Text3.Text
        strConfirmationNo 
    = Text4.Text
        strxml 
    = "<?xml version='1.0' encoding='utf-8'?><soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'><soap:Body><GetRideDetails xmlns='http://tempuri.org/VendorService/Service1'><VendorId>" & strVendorId & "</VendorId><EmployeeID>" & strEmployeeID & "</EmployeeID><GUID>" & strGUID & "</GUID><ConfirmationNo>" & strConfirmationNo & "</ConfirmationNo></GetRideDetails></soap:Body></soap:Envelope>"


        Dim h As MSXML2.ServerXMLHTTP40
        
    Dim x As MSXML2.DOMDocument40
        
    Set h = New MSXML2.ServerXMLHTTP40
        h.open 
    "POST""http://192.168.0.22/vendorservice/service1.asmx"False
        h.setRequestHeader 
    "HOST""192.168.0.22"
        h.setRequestHeader "Content-Type""text/xml; charset=utf-8"
        h.setRequestHeader "Content-Length"Len(strxml)
        h.setRequestHeader 
    "SOAPAction""http://tempuri.org/VendorService/Service1/GetRideDetails"

        h.send (strxml)

        
    'While h.readyState <> 4
        'Wend
        Text5.Text = h.responseText


    2. ASP代碼
    <%
    Dim t1,t2,t3,t4,t5
    t1 
    = Request.Form("text1")
    t2 
    = Request.Form("text2")
    t3 
    = Request.Form("text3")
    t4 
    = Request.Form("text4")

    url 
    = "http://192.168.0.22/vendorservice/service1.asmx"
    SoapRequest = "<?xml version='1.0' encoding='utf-8'?><soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'><soap:Body><GetRideDetails xmlns='http://tempuri.org/VendorService/Service1'><VendorId>" & t1 & "</VendorId><EmployeeID>" & t2 & "</EmployeeID><GUID>" & t3 & "</GUID><ConfirmationNo>" & t4 & "</ConfirmationNo></GetRideDetails></soap:Body></soap:Envelope>"

    Set xmlhttp = server.CreateObject("Msxml2.XMLHTTP")

    xmlhttp.Open 
    "POST",url,false
    xmlhttp.setRequestHeader 
    "HOST","192.168.0.22"
    xmlhttp.setRequestHeader "Content-Type""text/xml; charset=utf-8"
    xmlhttp.setRequestHeader "Content-Length",LEN(SoapRequest)
    xmlhttp.setRequestHeader 
    "SOAPAction""http://tempuri.org/VendorService/Service1/GetRideDetails" 

    xmlhttp.Send(SoapRequest)
    If xmlhttp.Status = 200 Then 
     
    Set xmlDOC =server.CreateObject("MSXML.DOMDocument")
     xmlDOC.load(xmlhttp.responseXML)
     xmlStr 
    = xmlDOC.xml
      
    Set xmlDOC=nothing
      xmlStr 
    = Replace(xmlStr,"<","&lt;")
      xmlStr 
    = Replace(xmlStr,">","&gt;")
      
    'Response.write xmlStr
      t5= xmlStr
     
    'Response.write("OK<br>")
     'Response.write(xmlhttp.responseText)
     'msgbox xmlDOC.getElementsByTagName("getStringResult")(0).text
    else
     Response.write(
    "Failed")
    end if
    %>
    <form action="myasp.asp" METHOD="POST">
      
    <div align="center" >
      
    <input type="text" name="text1" value="0">
      
    <input type="text" name="text2" value="0">          
      
    <input type="text" name="text3" value="0">          
      
    <input type="text" name="text4" value="0"> 
      
    </div>
      
    <align="center"><input type="submit" name="Submit" value="&#25552;&#20132;">
    </p>
      
    <align="center">&nbsp;</p>
      
    <align="center">
        
    <textarea rows="10" name="text5" cols="80"><%=t5%></textarea>     </p>
    </form>
    </textarea>


    MingIsMe 2005-07-13 01:48 發表評論
    ]]>
    .Net,ASP,VB調用webservice的示例 http://www.aygfsteel.com/nobody_am/articles/7577.htmlMingIsMeMingIsMeTue, 12 Jul 2005 17:42:00 GMThttp://www.aygfsteel.com/nobody_am/articles/7577.html
    Imports System.Web.Services

    <System.Web.Services.WebService(Namespace := "http://tempuri.org/VSService/Service1")> _
    Public Class Service1
        
    Inherits System.Web.Services.WebService

    #Region 
    " Web Services Designer Generated Code "

        Public Sub New()
            
    MyBase.New()

            
    'This call is required by the Web Services Designer.
            InitializeComponent()

            
    'Add your own initialization code after the InitializeComponent() call

        
    End Sub


        
    'Required by the Web Services Designer
        Private components As System.ComponentModel.IContainer

        
    'NOTE: The following procedure is required by the Web Services Designer
        'It can be modified using the Web Services Designer.  
        'Do not modify it using the code editor.
        <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
            components 
    = New System.ComponentModel.Container()
        
    End Sub


        
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
            
    'CODEGEN: This procedure is required by the Web Services Designer
            'Do not modify it using the code editor.
            If disposing Then
                
    If Not (components Is NothingThen
                    components.Dispose()
                
    End If
            
    End If
            
    MyBase.Dispose(disposing)
        
    End Sub


    #
    End Region

        
    ' WEB SERVICE EXAMPLE
        ' The HelloWorld() example service returns the string Hello World.
        ' To build, uncomment the following lines then save and build the project.
        ' To test this web service, ensure that the .asmx file is the start page
        ' and press F5.
        '
        '<WebMethod()> _
        'Public Function HelloWorld() As String
        '   Return "Hello World"
      'End Function

      
    <WebMethod()> Public Function add(ByVal a As IntegerByVal b As IntegerAs String
        add 
    = CStr(a + b)
      
    End Function

    End Class

    2. asp.net調用,添加Web References。
    Dim s As String
     
    Dim t As New mingservice.Service1
     ResultAdd.Text 
    = t.add(CInt(Param1.Text), CInt(Param2.Text))

    3.  VB6調用,安裝SoapToolkit20.exe。添加References:C:\Program Files\Common Files\MSSoap\Binaries\MSSOAP1.dll.
    Dim sc As New MSSOAPLib.SoapClient
    sc.mssoapinit 
    "http://192.168.0.8/VSService/Service1.asmx?WSDL"
    Text3.Text = sc.Add(CInt(Text1.Text), CInt(Text2.Text))

    4.ASP調用,安裝SoapToolkit20.exe。添加References:C:\Program Files\Common Files\MSSoap\Binaries\MSSOAP1.dll.
    <%
    Dim t1,t2,t3,SSO
    t1 
    = Request.Form("text1")
    t2 
    = Request.Form("text2")
    SET  SSO = Server.CreateObject("MSSOAP.SoapClient")  
    SSO.ClientProperty(
    "ServerHTTPRequest")  =  True  
    Call  SSO.mssoapinit("http://192.168.0.8/VSService/Service1.asmx?WSDL")  
    t3
    =SSO.add(CInt(t1),CInt(t2))  
    %>
    <form action="http.asp" METHOD="POST">
      
    <div align="center" >
      
    <input type="text" name="text1" value="0">
      
    <input type="text" name="text2" value="0">
      
    <input type="text" name="text3" value="<%=t3%>">
      
    </div>
    <br>
     
    <div align="center" ><input type="submit" name="Submit" value="ìá??"></div>
    </form>

    5. ASP HTTP請求:

     

    <%
    Dim t1,t2,t3
    t1 
    = Request.Form("text1")
    t2 
    = Request.Form("text2")
    url 
    = "http://192.168.0.8/VSService/Service1.asmx/add"
    SoapRequest="a="&t1&"&b="&t2&""
    Set xmlhttp = server.CreateObject("Msxml2.XMLHTTP")
    xmlhttp.Open 
    "POST",url,false
    xmlhttp.setRequestHeader 
    "Content-Type""application/x-www-form-urlencoded"
    xmlhttp.setRequestHeader "HOST","192.168.0.8"
    xmlhttp.setRequestHeader "Content-Length",LEN(SoapRequest)
    xmlhttp.Send(SoapRequest) 
    If xmlhttp.Status = 200 Then
     
    Set xmlDOC = server.CreateObject("MSXML.DOMDocument")
     xmlDOC.load(xmlhttp.responseXML) 
     t3
    =xmlDOC.childNodes(1).Text
     
    Set xmlDOC = nothing
    Else
     Response.Write xmlhttp.Status
    &"&nbsp;"
     Response.Write xmlhttp.StatusText
    End if
    Set xmlhttp = Nothing
    %>
    <form action="http.asp" METHOD="POST">
      
    <div align="center" >
      
    <input type="text" name="text1" value="0">
      
    <input type="text" name="text2" value="0">
      
    <input type="text" name="text3" value="<%=t3%>">
      
    </div>
    <br>
     
    <div align="center" ><input type="submit" name="Submit" value="提交"></div>
    </form>



    MingIsMe 2005-07-13 01:42 發表評論
    ]]>
    主站蜘蛛池模板: 东兴市| 墨脱县| 理塘县| 衡东县| 咸丰县| 北流市| 太仆寺旗| 黔江区| 民丰县| 共和县| 江阴市| 沂南县| 璧山县| 柳江县| 富源县| 新龙县| 耒阳市| 深圳市| 韶山市| 宁安市| 宁晋县| 银川市| 白沙| 彭州市| 霍山县| 曲阳县| 广灵县| 云南省| 四平市| 永靖县| 枝江市| 马公市| 鹿邑县| 恩平市| 平利县| 永吉县| 龙江县| 东莞市| 泸西县| 黄平县| 高陵县|