在线观看欧美理论a影院,成人在线亚洲,av在线电影免费观看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而不常用的標(biāo)簽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>


]]>
.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
  •  






    ]]>
    ASP.Net處理圖片上傳Webserver,結(jié)合數(shù)據(jù)庫(kù)顯示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 創(chuàng)建數(shù)據(jù)庫(kù)

    代碼:

    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及在數(shù)據(jù)庫(kù)存入路徑

    代碼(.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


    ]]>
    ASP.Net處理圖片在數(shù)據(jù)庫(kù)的存取http://www.aygfsteel.com/nobody_am/articles/9176.htmlMingIsMeMingIsMeThu, 04 Aug 2005 04:22:00 GMThttp://www.aygfsteel.com/nobody_am/articles/9176.html閱讀全文

    ]]>
    調(diào)用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>


    ]]>
    .Net,ASP,VB調(diào)用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調(diào)用,添加Web References。
    Dim s As String
     
    Dim t As New mingservice.Service1
     ResultAdd.Text 
    = t.add(CInt(Param1.Text), CInt(Param2.Text))

    3.  VB6調(diào)用,安裝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調(diào)用,安裝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請(qǐng)求:

     

    <%
    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>



    ]]>
    主站蜘蛛池模板: 海原县| 咸丰县| 会同县| 关岭| 新昌县| 申扎县| 利辛县| 永川市| 武强县| 卢氏县| 五莲县| 云梦县| 夏邑县| 全南县| 京山县| 禹州市| 望江县| 佳木斯市| 资兴市| 郎溪县| 阜平县| 平塘县| 庐江县| 墨江| 江津市| 隆化县| 沙洋县| 休宁县| 禄丰县| 杭锦后旗| 平凉市| 旌德县| 宜宾市| 沙雅县| 黄山市| 紫金县| 西充县| 电白县| 三台县| 赤水市| 洪雅县|