Click here to Skip to main content
15,897,187 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
for instance sql table like this:

task pic status
develop system wti,zmr 90%done

i want to display the data in gridview.currently when i type in textbox wti or zmr no data is display.it should be display whenever i type wti or zmr since the task is developed by two person.

help me on this.i stuck on this for two days.

musiw
Posted
Comments
pradiprenushe 12-Jul-12 4:07am    
When you want to display data on data entered in textbox or some button click?
musiw 12-Jul-12 12:05pm    
yes.user will enter their codename then click submit button.and then the gridview will display data.

1 solution

you need to do a SQL Substring search[^]

You may want to look at changing the way you've designed your table and make it first normal[^] ...

<br />
Table Tasks<br />
id    Title               Percent<br />
1     'develop system'      90<br />
2     'test system'         10<br />
<br />
Table Users<br />
id    User<br />
1     'wti'<br />
2    'zmr'<br />
3     'musiw'<br />
<br />
Table Task_Users<br />
id    task     user<br />
1     1        1<br />
2     1        2<br />
3     2        1<br />
4     2        2<br />
5     2        3<br />
<br />
 
Share this answer
 
Comments
musiw 12-Jul-12 3:51am    
i already create table for user.now, when user 'zmr' or 'wti' enter their nickname then it should display like the table above.especially the column pic; it should display wti,zmr.right now the table doesnt appear at all

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