I am new to VB.NET and OO so trying to get to grips with this.
I have an interface in the app_code folder with the following:
Public Interface ISearch
Property sKeyword() As String
Then on my code_behind file for the master page I have the snippet below.
I want to use the keyword input into txtSearch, I am not sure what the SET value is doing. I intend to use the keyword on another page (search.aspx) to display what was typed.
Does the interface property skeyword hold the value across pages or will i need to use querystring? How do I get the txtSearch to actualyl apply the submitted word to the interface?
Partial Class main
Private _keyword As String
Public Property sKeyword() As String Implements ISearch.sKeyword
If txtSearch.Text.Length < 1 Then
txtSearch.Text = "Nothing"
Set(ByVal value As String)
_keyword = value