ASP.NET

TIPS

RadioButtonList?

DropDownList?

Dim listItem As ListItem
listItem = New ListItem

listItem.Value = "0"
rdoOver.Items.Add(listItem)
listItem = New ListItem

listItem.Value = "1"
listItem.Selected = True
rdoOver.Items.Add(listItem)

ViewState?

ViewState("test") = "test1"

GridView?

AutoGenerateColumns = false

JavaScript

Button1.Attributes("onclick") = "alert('hoge');"

GridView?

EnableViewState?

ObjectDataSource?

ObjectDataSource?

Protected Sub ObjectDataSource1_Selecting(ByVal sender As System.Object, ByVal e As System.Web.UI.WebControls.ObjectDataSourceSelectingEventArgs) Handles ObjectDataSource1.Selecting
       Dim coditionSeek As New CoditionSeek

       coditionSeek.Isbn = txtSeek.Text
       coditionSeek.Title = txtTitle.Text

       e.InputParameters.Clear()

       e.InputParameters.Add("coditionSeek", coditionSeek)
End Sub
'<DataObjectMethod(DataObjectMethodType.Select, True)> _
Public Function GetInfo(ByVal coditionSeek As CoditionSeek) As ArrayList

  If coditionSeek.Isbn <> "" Then



   Protected Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
       ObjectDataSource1.Select()
   End Sub
Public Class CoditionSeek
   Private _isbn As String
   Private _title As String
   Property Isbn() As String
       Get
           Return Me._isbn
       End Get
       Set(ByVal value As String)
           Me._isbn = value
       End Set
   End Property
   Property Title() As String
       Get
           Return Me._title
       End Get
       Set(ByVal value As String)
           Me._title = value
       End Set
   End Property
End Class







トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS