📄 news_search.ascx.vb
字号:
Public Class news_search1
Inherits System.Web.UI.UserControl
#Region " Web 窗体设计器生成的代码 "
'该调用是 Web 窗体设计器所必需的。
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
End Sub
Protected WithEvents rblist_type As System.Web.UI.WebControls.RadioButtonList
Protected WithEvents dplist_item As System.Web.UI.WebControls.DropDownList
Protected WithEvents tbox_Value As System.Web.UI.WebControls.TextBox
Protected WithEvents ibt_go As System.Web.UI.WebControls.ImageButton
'注意: 以下占位符声明是 Web 窗体设计器所必需的。
'不要删除或移动它。
Private designerPlaceholderDeclaration As System.Object
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
'在此处放置初始化页的用户代码
End Sub
Private Sub ibt_go_Click(ByVal sender As System.Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ibt_go.Click
Dim CaptionStr, ContentStr, UrlStr As String
Select Case rblist_type.SelectedValue
Case 0
If dplist_item.SelectedValue = 0 Then
CaptionStr = tbox_Value.Text
ContentStr = "%"
Else
CaptionStr = "%"
ContentStr = tbox_Value.Text
End If
Case 1
If dplist_item.SelectedValue = 0 Then
CaptionStr = "%" & tbox_Value.Text & "%"
ContentStr = "%"
Else
CaptionStr = "%"
ContentStr = "%" & tbox_Value.Text & "%"
End If
End Select
UrlStr = "news_search.aspx?Caption=" & Server.UrlEncode(CaptionStr) & "&Content=" & Server.UrlEncode(ContentStr)
Response.Redirect(UrlStr)
End Sub
End Class
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -