Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi I want to display the sql data on the table and make some data as hyperlink.

my data is like this

Mobile[category-1]
Mobile Device [Sub-category - 11]
Mobile Accessories [Sub-category - 12]

Electronics and Technology [category-2]
Cameras & Accessories [Sub-category-21]
Desktops, Laptops & Accessories [Sub-category-22]
CD & DVD Players [Sub-category-23]


and i want to display it like this

Mobile
Mobile Device [Hyperlink]
Mobile Accessories [Hyperlink]

Electronics and Technology
Cameras & Accessories [Hyperlink]
Desktops, Laptops & Accessories [Hyperlink]
CD & DVD Players [Hyperlink]
Posted
Comments
[no name] 14-Oct-14 11:06am    
where is problem and what have your tried yet
Harshit Wadhera 14-Oct-14 11:39am    
i have to create it dynamically. which i don't know how to do.
i had create it statically

1 solution

 
Share this answer
 
Comments
Maciej Los 14-Oct-14 15:37pm    
+5
Thanks Maciej. :)
Harshit Wadhera 15-Oct-14 18:33pm    
hi i have question

i have to store the link of a page in database. The page is in my website.
like an example
i have to store the link of Result.aspx page in database so how could i do this. i know that google.com can easily be store and its working with google.com but i want to know how to do this with result.aspx..
Hello Harshit,

You need to store the relative URL of the pages in Database. For Result.aspx, you have to deermine its relative URL to the page which has the Menu.

Suppose Menu is in the project folder and Result.aspx is in another folder inside the Project Folder, so relative URL would be "/AnotherFolder/Result.aspx". And you will save this in Database.
Harshit Wadhera 16-Oct-14 5:51am    
Hi Sir
ok i will explain you with more details..
i have a site in my d folder (D:\site\test) and there is 2 pages in my website first is default.aspx(D:\site\test\Default.aspx) and second is Result.aspx (D:\site\test\Result.aspx)...
and i just have to save the result.aspx url in the database so that if i click then it redirect me to Result.aspx....
i had tried this...
1. test/Result.aspx
2. ~/test/Result.aspx
3. d/site/test/result.aspx
if you have more question please ask

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