asp.net - Getting Value From Input text from input type button -


so have been trying reach value input text , set in on string, i've tried 4 different ways , reason string = "" or string nothing

code vb behind

public sub subscriber(sender object, e eventargs)     dim check_mail string = subs_text.value()     if check_mail = nothing         alertjava("working empty")     else         alertjava(check_mail.tostring())     end if end sub 

tried well

dim checkmail string = page.request.form("subs_text") dim checkmail string = request("subs_text") dim checkmail string = request(subs_text.value()) 

html code have

<div class="input-group"> ------   <input id="subs_text" runat="server" name="subs_text" type="text" class="form-control">     <placeholder="email adress"> / -----     <span class="input-group-btn"> ----       <input type="button" runat="server" onserverclick="subscriber" class="btn btn-primary" value="joinus"> ----     </span> </div> 

you not setting value="" attribute. therefore, empty


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -