显示文件夹中的选取框图像 [英] displaying marquee image from folder
本文介绍了显示文件夹中的选取框图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在数据库中有一个包含图像和图像名称的文件夹.现在,我想在Marquee标签中显示该图像.我无法执行此操作,请帮帮我.
I have a folder that contain images and image name in database.Now I want to display that image in Marquee tag.I am not able to do this please help me.
推荐答案
尝试
http://vinitgpatel.wordpress.com/2009/09/25/marquee -tag-in-asp-net/ [ http://www.c-sharpcorner .com/UploadFile/krishnasarala/display-marquee%E2%80%99s-on-Asp-Net-webpage/ [使用asp .net中的数据列表的字幕标记 [ ^ ]
Try
http://vinitgpatel.wordpress.com/2009/09/25/marquee-tag-in-asp-net/[^]
http://www.c-sharpcorner.com/UploadFile/krishnasarala/display-marquee%E2%80%99s-on-Asp-Net-webpage/[^]
marquee tag using datalist in asp .net[^]
做这样的事情
do some thing like this
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Literal ID="Literal1" runat="server"></asp:Literal>
</div>
</form>
</body>
</html>
文件后面的代码
Code behind file
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string text = "<MARQUEE><img src=\"Chrysanthemum.jpg\" height=\"100\" width=\"100\" alt=\"Images\" /></MARQUEE>";
Literal1.Text = text;
}
}
问候
sarva
regards
sarva
这篇关于显示文件夹中的选取框图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文