c# - Inserting data into a database from forms -


i trying take data has been typed input boxes , save them database. connecting dataset called password table called password. connection

passtableadapters.passwordstableadapter pass = new passwordtableadapters.passwordtableadapter(); password.passwordsdatatable passtable = pass.getdata(); 

this allows me connect dataset there stuck. want take information textbox , save them dataset.

i have been using msdn still no luck. if can show me how write dataset grateful.

to data html controls may try logic. assuming have 2 control like

html:

<input id="username" name="username" type="text" /> <input id="password" name="password" type="password" /> 

code behind:

var username = request.form["username"]; var password = request.form["password"]; 

note:

never forget give inputs name id otherwise request.form not work

by using may value input tag , pass these values function parameter in using insert query.

hope understand.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -