Click here to Skip to main content
15,885,141 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
sir,
I have one textbox ,button and gridview in asp.net website. i want that if user enter name of the student and when we click the button then all the details of the student shown in gridview.
how it can be possible!
Posted
Comments
DaveAuld 19-Sep-12 8:53am    
And what have you tried to implement so far?
Mario Majčica 19-Sep-12 8:56am    
What is basically your question???

To gather some ideas you should look at this discussion: Add search feature to GridView [^] on ASP.NET Forums[^].

Regards,

— Manfred
 
Share this answer
 
Comments
Espen Harlinn 20-Sep-12 4:17am    
5'ed!
Manfred Rudolf Bihy 20-Sep-12 4:18am    
Thanks Espen! :)
That's "Search implementation in ASP.NET"

You need to try first. Follow these steps:
1. Design a page where you place few search parameters. For example, searching a name in DB, so a textbox for it.
2. Now, place a search button as the trigger event of the search. On click of search button you would be writing your logic.
3. In search button click, get the search parameters (like the name in textbox here), use it, form a query and execute on database
4. Get the query result back in a datatable and bind it to a grid or any other appropriate control based on your needs
5. For now, Datagrid will display the retrieved result.

Done!
 
Share this answer
 
Comments
Espen Harlinn 20-Sep-12 4:18am    
5'ed!
Sandeep Mewara 20-Sep-12 4:54am    
Thanks Espen.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900