What could be Simple solution ?

Hi,

In my project a webpage facilitates Search, I have the following controls used

1-TextBox for keywords

2-ComboBox for Search Type

3-Submit Button

User comes & type a keyword, select search field from combobox & press submit, I retrieve record from an Ms Access database.

Using that selection I genrate a query

example(select * from [TableName] where [FieldName]=[Keyword]

Which control can execute this query, because gridview ask for a select statement before running the program

If possible please help me with code

Thanks

[790 byte] By [YasirImran] at [2007-12-25]
# 1

you may find an answer for that in http://forums.asp.net

Rgds

Rodrigo

rfreire at 2007-9-3 > top of Msdn Tech,.NET Development,ASMX Web Services and XML Serialization...
# 2

Why ?

Isn't this forum for ASP.Net discussions ?

YasirImran at 2007-9-3 > top of Msdn Tech,.NET Development,ASMX Web Services and XML Serialization...
# 3

actually no.... it for ASP.NET Web Services.... it sound confusing, but it is not actually the same ;)

Rgsd

Rodrigo

rfreire at 2007-9-3 > top of Msdn Tech,.NET Development,ASMX Web Services and XML Serialization...
# 4

All right, It mean there is no Forum for ASP.Net discussions on MSDN

RIght ?

YasirImran at 2007-9-3 > top of Msdn Tech,.NET Development,ASMX Web Services and XML Serialization...
# 5

No.... I guess....

But, please... take a look at this article that shows you how to use the "ObjectDataSouce"

This may help you on your problem

http://www.c-sharpcorner.com/Code/2004/Oct/ObjectDataSource.asp

Rgds

Rodrigo

rfreire at 2007-9-3 > top of Msdn Tech,.NET Development,ASMX Web Services and XML Serialization...

.NET Development

Site Classified