// // ]]> Aspx后臺(tái)設(shè)計(jì)源代碼Partial Class _De">

吴忠躺衫网络科技有限公司

您好,歡迎來電子發(fā)燒友網(wǎng)! ,新用戶?[免費(fèi)注冊(cè)]

您的位置:電子發(fā)燒友網(wǎng)>源碼下載>asp源碼下載>

Aspx頁(yè)面設(shè)計(jì)源代碼

大小:53 人氣: 2010-02-09 需要積分:0
鼠愛米的空間

用戶級(jí)別:注冊(cè)會(huì)員

貢獻(xiàn)文章:

貢獻(xiàn)資料:

Aspx頁(yè)面設(shè)計(jì)源代碼
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

http://www.w3.org/1999/xhtml" >

    無標(biāo)題頁(yè)




   


   

         
        Text="驗(yàn)證碼">
            
       
        http://localhost:2115/WebSite4/Default2.aspx?tmp=1" style="z-index: 105; left: 112px; position: absolute; top: 112px" alt="驗(yàn)證碼獲取失敗" id="IMG1" onclick="return IMG1_onclick()" />
           
       
         
       
         
       
       
          
   

   



Aspx后臺(tái)設(shè)計(jì)源代碼
Partial Class _Default
    Inherits System.Web.UI.Page
   

   
  


  
   
  
    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim s As String
        s = Request.Cookies("name").Value.ToString() '從cookies中接收隨機(jī)字符串
        s = s.ToLower() '轉(zhuǎn)換為小寫自符

        If TextBox1.Text.ToLower = s Then
            MsgBox("succeed")
        Else : MsgBox("failed")

        End If '判斷是否正確
    End Sub
End Class
隨即圖形生成源代碼
Partial Class Default2
    Inherits System.Web.UI.Page
    Public s As String = "" '隨即驗(yàn)證碼字符形式

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
   
        Response.Clear() '清除返回緩存流
        '隨機(jī)數(shù)產(chǎn)生過程()
        Dim number1 As Integer 'for語(yǔ)句將用到的變量
        Dim number2 As Integer
        number2 = 4 '要生成幾個(gè)字符的驗(yàn)證碼便賦值幾
        Dim random As New Random '新建隨機(jī)生成器
        Dim number3 As Integer '‘用于保存隨機(jī)產(chǎn)生的數(shù)值

        For number1 = 1 To number2
            number3 = random.Next(62) '定義隨機(jī)數(shù)上界

            Select Case number3
                Case 0
                    s = s + "0"
                Case 1
                    s = s + "1"
                Case 2
                    s = s + "2"
                Case 3
                    s = s + "3"
                Case 4
                    s = s + "4"
                Case 5
                    s = s + "5"
                Case 6
                    s = s + "6"
                Case 7
                    s = s + "7"
                Case 8
                    s = s + "8"
                Case 9
                    s = s + "9"
                Case 10
                    s = s + "A"
                Case 11
                    s = s + "B"
                Case 12
                    s = s + "C"
                Case 13
                    s = s + "D"
                Case 14
                    s = s + "E"
                Case 15
                    s = s + "F"
                Case 16
                    s = s + "G"
                Case 17
                    s = s + "H"
                Case 18
                    s = s + "I"
                Case 19
                    s = s + "G"
                Case 20
                    s = s + "K"
                Case 21
                    s = s + "L"
                Case 22
                    s = s + "M"
                Case 23
                    s = s + "N"
                Case 24
                    s = s + "O"
                Case 25
                    s = s + "P"
                Case 26
                    s = s + "Q"
                Case 27
                    s = s + "R"
                Case 28
                    s = s + "S"
                Case 29
                    s = s + "T"
                Case 30
                    s = s + "U"
                Case 31
                    s = s + "V"
                Case 32
                    s = s + "W"
                Case 33
                    s = s + "X"
                Case 34
                    s = s + "Y"
                Case 35
                    s = s + "Z"
                Case 36
                    s = s + "a"
                Case 37
                    s = s + "b"
                Case 38
                    s = s + "c"
                Case 39
                    s = s + "d"
                Case 40
                    s = s + "e"
                Case 41
                    s = s + "f"
                Case 42
                    s = s + "g"
                Case 43
                    s = s + "h"
                Case 44
                    s = s + "i"
                Case 45
                    s = s + "g"
                Case 46
                    s = s + "k"
                Case 47
                    s = s + "l"
                Case 48
                    s = s + "m"
                Case 49
                    s = s + "n"
                Case 50
                    s = s + "o"
                Case 51
                    s = s + "p"
                Case 52
                    s = s + "q"
                Case 53
                    s = s + "r"
                Case 54
                    s = s + "s"
                Case 55

非常好我支持^.^

(0) 0%

不好我反對(duì)

(0) 0%

      發(fā)表評(píng)論

      用戶評(píng)論
      評(píng)價(jià):好評(píng)中評(píng)差評(píng)

      發(fā)表評(píng)論,獲取積分! 請(qǐng)遵守相關(guān)規(guī)定!

      ?
      乐享百家乐的玩法技巧和规则| 百家乐单双打法| 大发888最新信息| 金城百家乐平台| 百家乐官网金海岸| 菲彩线上娱乐| 百家乐7scs娱乐场| 百家乐官网算牌方| 真钱网络棋牌游戏| 富二代百家乐的玩法技巧和规则| 百家乐官网如何骗人| 旅游赌博景点lydb| 大发888登不上| 大赢家百家乐的玩法技巧和规则| 做生意什么花招财| 百家乐官网庄闲和各| 新乡市| 大发888娱乐城欢迎您| 百家乐试玩全讯网2| 网上百家乐官网的玩法技巧和规则| 百家乐官网怎么推算| 大发888娱乐城备用网址| 米其林百家乐的玩法技巧和规则| 百家乐官网和的打法| 百家乐官网网络真人斗地主| 任我赢百家乐官网自动投注分析系统 | 足球盘口| 大发888 casino| 网上百家乐解密| 长沙百家乐的玩法技巧和规则| 百家乐怎么开户| 互博百家乐官网的玩法技巧和规则 | 什么是百家乐赌博| 百家乐数据程序| 百家乐游戏群号| 百家乐庄家抽水| 百家乐太阳城线上| 大世界百家乐娱乐城| 任你博百家乐官网现金网| 尊龙备用网站| 拉斯维加斯|