⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 quote.aspx.vb

📁 程序设计:Flyangel 用到了vb.net c# asp.net xml等 最大特别是核心功能组件化. 特色: 强大的后台管理功能 支持二级分类 支持匿名投稿 超强用户权限设置
💻 VB
字号:
Imports flyangel.article.twotipclass

Public Class quote
    Inherits System.Web.UI.Page
    Protected WithEvents TextBox1 As System.Web.UI.WebControls.TextBox
    Protected WithEvents DropDownList1 As System.Web.UI.WebControls.DropDownList
    Protected WithEvents quotecontent As System.Web.UI.HtmlControls.HtmlInputHidden
    Protected WithEvents changecode As System.Web.UI.WebControls.Panel
    Protected WithEvents insercode As System.Web.UI.WebControls.Panel
    Protected WithEvents Button1 As System.Web.UI.WebControls.Button

#Region " Web 窗体设计器生成的代码 "

    '该调用是 Web 窗体设计器所必需的。
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()

    End Sub

    Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
        'CODEGEN: 此方法调用是 Web 窗体设计器所必需的
        '不要使用代码编辑器修改它。
        InitializeComponent()
    End Sub

#End Region

    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        '在此处放置初始化页的用户代码
        If Not IsPostBack Then

            DropDownList1.DataSource = [Enum].GetValues(GetType(LanguageType))
            DropDownList1.DataBind()
            changecode.Visible = True
            insercode.Visible = False
        End If
    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

        Dim asds As iStringClass = HowToUsingFlyangel.iStringClass(ConfigurationSettings.AppSettings("AssemblyFilePath"))
        Dim aaaa As String
        Dim CodeXmlDocument As String = ConfigurationSettings.AppSettings("CodeXml")
        Dim CodeXmlSchema As String = ConfigurationSettings.AppSettings("CodeXsd")

        Dim ixmldo As iXmlCodeClass = HowToUsingFlyangel.iXmlCodeClass(ConfigurationSettings.AppSettings("AssemblyFilePath"))
        ixmldo.SetCodeXmlDocumentFile = CodeXmlDocument
        ixmldo.SetCodeXmlSchemaFile = CodeXmlSchema

        If DropDownList1.SelectedIndex > 0 Then
            aaaa = asds.TransFormLanguageText(TextBox1.Text, DropDownList1.SelectedIndex, ixmldo.SelectRecorder([Enum].GetName(GetType(LanguageType), DropDownList1.SelectedIndex)))
        Else
            aaaa = asds.changechr(TextBox1.Text)
        End If

        quotecontent.Value = "<table width=95% border=0 align=Center cellpadding=6 cellspacing=0 style=""border: 1px Groove #6595d6; TABLE-LAYOUT: fixed""><tr><td bgcolor=#e8f4ff style=""WORD-WRAP: break-word""><font style=""color: #990000;font-weight:bold"">以下是" & DropDownList1.SelectedValue.ToString & "代码引用:</font><pre>" & aaaa & "</pre></td></tr></table>"
        changecode.Visible = False
        insercode.Visible = True
    End Sub
End Class

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -