Click here to Skip to main content
15,893,564 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dear All,

I created two pages: home.aspx and default.aspx and

home page contain: two link buttons like mumbai and dubai,
default page contain: grid view control

here once click mumbai link button after that page goto default page and display mumbai records in default.aspx page and dubai also same output i want

please reply this output logic or syntax or url paths please reply me
Posted
Updated 28-Apr-14 20:46pm
Comments
Thanks7872 29-Apr-14 1:04am    
On click of link you are suppose to pass data to default page. for that you can see this link : How to: Pass Values Between ASP.NET Web Pages
In the default page,retrieve this value and based on that, get data and fill gridview with the same.
member1431 29-Apr-14 1:10am    
Dear Rohan,
please reply me syntax or example
Thanks7872 29-Apr-14 2:31am    
I left that part for you. Try it your self. It is not that hard as you think.
member1431 29-Apr-14 2:35am    
ok i will try thanks for your reply
member1431 29-Apr-14 4:43am    
Dear Rohan,
output is not coming :

1 solution

when user click on the mumbai redirect it to a default page with a querystring as a mumbai or associated id and on page load call a query to get all records based on mumbai city.
SQL
Select * from table where city = 'mumbai'



now bind the data with the gridview.
 
Share this answer
 

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