在ASP.NET中使用哪个控件来显示完全访问CSS3的图片块
这里需要一些专业知识 我想实现的输出类似于一个附加的图像。我能够使用ASP.NET代码中在加载页面时形成的在ASP.NET中使用哪个控件来显示完全访问CSS3的图片块,asp.net,Asp.net,这里需要一些专业知识 我想实现的输出类似于一个附加的图像。我能够使用ASP.NET代码中在加载页面时形成的和(参见下面的代码)标记实现这种快照格式。以下内容显示在div标签中 strDataString.Append(“”) strDataString.AppendLine(“”) 在objDataReader.Read时执行此操作 intCategoryID=objDataReader.GetValue(0).ToString() strCategoryName=objDataReader.G
和(参见下面的代码)标记实现这种快照格式。以下内容显示在div标签中
strDataString.Append(“”)
strDataString.AppendLine(“”)
在objDataReader.Read时执行此操作
intCategoryID=objDataReader.GetValue(0).ToString()
strCategoryName=objDataReader.GetValue(1).ToString()
strCategoryImage=objDataReader.GetValue(2.ToString)()
如果Len(Trim(strCategoryImage))=0或String.IsNullOrEmpty(Trim(strCategoryImage))=True或String.IsNullOrWhiteSpace(Trim(strCategoryImage))=True,则
strCategoryImageWithPath=“Images/noimage.png”
其他的
strCategoryImageWithPath=“base_Clients/”&intAccountID.ToString()&“/Category/”&strCategoryImage.ToString()
如果结束
intSortSequence=objDataReader.GetValue(3.ToString)()
intCategoryStatus=objDataReader.GetValue(4.ToString)()
如果微调(intCategoryStatus)=0,则
setCategoryStatus=“非活动”
如果结束
strDataString.Append(“”)
strDataString.Append(“”)
strDataString.Append(“”)
strDataString.Append(“”)
strDataString.Append(“&strCategoryName.ToString()&”)
追加(“&setCategoryStatus&”)
strDataString.Append(“&intSortSequence.ToString()&”)
'下面是“编辑和删除”按钮
strDataString.Append(“”)
strDataString.Append(“”)
strDataString.Append(“”)
strDataString.Append(“”)
strDataString.Append(“”)
strDataString.Append(“”)
strDataString.Append(“”)
strDataString.Append(“”)
strDataString.Append(“”)
strDataString.Append(“”)
strDataString.Append(“”)
strDataString.Append(“”)
strDataString.Append(“
”)
i=i+1
环
strDataString.AppendLine(“
”)
起初,由于时间限制,我不得不选择这个。管理上述代码很困难。有谁能告诉我,在ASP.NET中使用一些示例URL(不一定直接相关)的最佳控件是什么,我应该使用它来实现与CSS3完全可访问性相同的输出
谢谢
我建议从下面选择一个
谢谢,我正在测试ListView控件,我能够得到90%与图像相似的格式。
strDataString.Append("")
strDataString.AppendLine("<ul class='categories'>")
Do While objDataReader.Read
intCategoryID = objDataReader.GetValue(0).ToString()
strCategoryName = objDataReader.GetValue(1).ToString()
strCategoryImage = objDataReader.GetValue(2).ToString()
If Len(Trim(strCategoryImage)) = 0 Or String.IsNullOrEmpty(Trim(strCategoryImage)) = True Or String.IsNullOrWhiteSpace(Trim(strCategoryImage)) = True Then
strCategoryImageWithPath = "Images/noimage.png"
Else
strCategoryImageWithPath = "base_Clients/" & intAccountID.ToString() & "/Category/" & strCategoryImage.ToString()
End If
intSortSequence = objDataReader.GetValue(3).ToString()
intCategoryStatus = objDataReader.GetValue(4).ToString()
If Trim(intCategoryStatus) = 0 Then
setCategoryStatus = "Inactive"
End If
strDataString.Append("<li id='li_" & i & "'>")
strDataString.Append("<div class='liContents'>")
strDataString.Append("<span class='catImage'><img src='" & strCategoryImageWithPath.ToString() & "' alt='" & strCategoryName.ToString() & "' width='200' height='131' /></span>")
strDataString.Append("<span class='catContentsBar'></span>")
strDataString.Append("<span class='catTitle' title='Category Name: " & strCategoryName.ToString() & "' >" & strCategoryName.ToString() & "</span>")
strDataString.Append("<span class='catStatus' title='Category Status'>" & setCategoryStatus & "</span>")
strDataString.Append("<span class='catSort' title='Category Sort Sequence is " & intSortSequence.ToString() & "' >" & intSortSequence.ToString() & "</span>")
' the below is for the Edit and Delete Button
strDataString.Append("<span id='nav_" & i & "' class='navigation'>")
strDataString.Append("<button id='btnInsert_" & i & "' type='button' class='SmallButtonWithImage' title='Add New Category' onClick='fn_CategoryManagement(1, 0)'>")
strDataString.Append("<img src='Images/menuicons/add.png' alt='Add' hspace='2' />")
strDataString.Append("</button>")
strDataString.Append("<button id='btnEdit_" & i & "' type='button' class='SmallButtonWithImage' title='Edit Category: " + strCategoryName.ToString() + "' onClick='fn_CategoryManagement(2, """ & intCategoryID.ToString() & """)'>")
strDataString.Append("<img src='Images/menuicons/edit.gif' alt='Edit' hspace='2' />")
strDataString.Append("</button>")
strDataString.Append("<button id='btnDelete_" & i & "' type='button' class='SmallButtonWithImage' title='Delete Category: " & strCategoryName.ToString() & "' onClick='fn_DeleteConfirm(""" & intCategoryID.ToString() & """)'>")
strDataString.Append("<img src='Images/menuicons/delete.png' alt='Delete' hspace='2' />")
strDataString.Append("</button>")
strDataString.Append("</span>")
strDataString.Append("</div>")
strDataString.Append("</li>")
i = i + 1
Loop
strDataString.AppendLine("</ul>")