Hello,
I created a small site about two pages in home direct, and 4 pages in control panel:
Home direct:
Default.aspx
Login.aspx
--------
Admin
admincp/Default.aspx
admincp/AddViewEditCategories.aspx
admincp/AddEditSites.aspx
admincp/ViewDeleteSites.aspx
Also, I created 2 tables about:
1- Category
- cid - int
- cName - nvarchar(50)
2- Sites
- sid - int
- sName - nvarchar (150)
- sSummary - nvarchar (300)
- sLink - nvarchar(200)
- sImage - image
- cid - int ==== belong to the Category
My questions!!
- How do I make the websites appear within blocks in home page (Default.aspx) , sorted by Category such as (Sports Sites in their Category which they belong, News sites in their Category, Etc.), and each Category Name such as (Sports, News, Mails) appear
on the header of the blocks? - How do I manage the blocks ? I mean, if I want make 3 blocks per row or 4 per row etc?
- Last question! How do I make the Sites Image which I uploaded into the database for each site appear instead of the name of sites, and when I click on the Image, take me to the site as _blank target ? the image about ( Sites logo - google logo etc. ). Summary
shows when I hover the mouse above the image as ToolTip.
Thanks advance
Hi bsd,
here are the replies,
1 & 2 - you can use Data-List for this purpose, with suitable Item-Template, plz reffer to the following Link,
http://msdn.microsoft.com/en-us/library/bb498210.aspx
3- you can use there can be multiple options for ToolTip, the simple one can be set your sSummary in title attribute of your source tag. or you can use jQuery plug-ins for this.
沒有留言:
張貼留言