anyone knows step by step how to create a search button and how to link it to the database?

the motive is to search the ID number of the students from the database.

Just use a sql query to solve u r problem.

if u have text box and submit button.on submit button click,use this query

select*from table_name where id='"+txtsearch.text+"';

where shud i put the codes? .vb or .aspx?

thanks for the help.im slowly getting the feel of it.

but can u explain more, i do have to do some sqldatasource tingy rite?

hi,
i think u need some basic tutorials in .net.u better visit www.asp.net ,there u will find no of tutorials to connect to database.

integer
int
sql =select * from user where id ="+txt.text+"
id int

string
sql =select * from user where user='"+txt.text+"'
user string

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.