我用FreeTextBox做了新闻编辑,实现图文混排.可是显示页面只能显示文字和图片的路径,怎样才可以显示完整的新闻呢?
谢谢!
谢谢!
解决方案 »
- 有这样一个问题? 你们来看看。。
- onmouseover事件
- 也求一事务回滚程序,请教高手!
- (在线等,急!)购物网站的购物车模块问题 本人新手求最好在北京的前辈能见面赐教
- ASP怎么判断时间和另一个时间间距多少天和多少小时?
- 数据控制元件DataGrid、Repeater和DataList的一些问题.
- 如何取得datagrid中得某一行中某一列得值。
- global.asax和global.asax.cs之间有什么联系
- 求救!正则表达式的问题
- asp.Net中怎么调用dll文件的内容?
- 在线等,在web里我绑定了一个gridview我想当鼠标放在其一列上(如上午缺勤)自动弹出上午缺勤的原因。应该怎么做
- sender,e代表的内容
public DataSet ds;
public DataRow dr;
public String newsid; protected void Page_Load(object sender, EventArgs e)
{
String con = ConfigurationManager.ConnectionStrings["solConnectionString"].ToString();
SqlConnection MyConnection;
String ConnStr, strCon;
newsid = Request.Params["ID"];
MyConnection = new SqlConnection(con);
MyConnection.Open(); String strCom = "SELECT Title ,Content,ComeTo,Counter ,Time FROM TableNews1 where ID= '" + newsid + "'";
ds = new DataSet(); SqlDataAdapter myCommand = new SqlDataAdapter(strCom, MyConnection);
myCommand.Fill(ds, "TableNews1");
if (ds.Tables["TAbleNews1"].Rows.Count > 0)
{
Session["ID"] = ds.Tables["TableNews1"].Rows[0]; }
//dr = ds.Tables["TableNews1"].Rows[0]; strCon = "SELECT Counter FROM TableNews1 WHERE ID = '" + newsid + "'"; SqlCommand myCommand2 = new SqlCommand(strCon, MyConnection);
SqlDataReader reader = myCommand2.ExecuteReader();
//lbl1v.Text = myCommand2.ExecuteScalar().ToString();
// lbl2v.Text = myCommand2.ExecuteScalsr().ToString();
int i = 0;
if (reader.Read())
{
//lbl1v.Text = reader["Title"].ToString();
reader.GetInt32(0);
i++; }
reader.Close();
strCon = "UPDATE TableNews1 SET Counter = " + i.ToString() + " WHERE ID= '" + newsid + "'"; myCommand2.CommandText = strCon;
myCommand2.ExecuteNonQuery();
MyConnection.Close(); }
后台!
例如 "XXX:<image src='xx' />"
然后你显示的时候也一样是直接输出html代码啊.怎么会只显示文字,不显示图片?FreeTextBox没用过....一直用fck
</head>
<body bgcolor="#FFFFFF" link="#000000">
<form id="form1" runat="server">
<div align="center" class="p2">
<br />
<asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Italic="False" Font-Size="XX-Large"
Font-Strikeout="False" ForeColor="Black" Height="36px" Text="新闻" Width="196px"></asp:Label> <table border="0" cellspacing="0" cellpadding="0" style="width: 634px; height: 41px">
<tr><td style="width: 501px"></td></tr>
<tr><td style="width: 501px"> </td></tr>
</table>
<table border="1" cellspacing="0" cellpadding="0" style="width: 640px; height: 468px" >
<tr><td style="background:**.gif; width: 496px; position: static;" height="15">
<table border="0" cellspacing="0" cellpadding="0" style="background:**.gif; width: 638px; height: 13px;">
<tr><td style="background:**.gif; width: 7px; height: 18px;"> </td>
<td style="background:**.gif; height: 18px;">
<div align="right">
<img alt="" src="" width="16" height="14" />
<a href="javascript:window.print()">打印本页</a>
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr><td style="width: 496px">
<table border="0" cellspacing="0" cellpadding="0" style="width: 642px; height: 307px">
<tr align="center"><td class="p3" style="width: 493px; height: 34px;"><br/></td></tr>
<tr align="center">
<td style="height: 53px; width: 493px;">
</td>
</tr>
<tr><td style="width: 493px; height: 383px;">
内容:</td>
</tr>
<tr><td style="width: 493px"><br/>
<br/>
摘自:
</td>
</tr>
<tr><td style="width: 493px"><div align="right"></div></td></tr>
</table>
</td>
</tr>
<tr><td height="17" style="width: 496px">
<table width="498" border="0" cellspacing="0" cellpadding="0" background="">
<tr><td width="172" background="" style="height: 16px">
<td width="172" background="" style="height: 16px"> </td>
<td width="134" background="" style="height: 16px">
<p align="right"><a href="javascript:window.close()">关闭本窗口 </a></p>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<table border="0" cellspacing="0" cellpadding="0" style="width: 715px; height: 28px">
<tr><td style="height: 6px"><img src="" width="500" height="13"></td>
</tr>
</table>
</form>
</body>
</html>
我不有用image控件
我想知道ftb在用sqldatasource的insertquery的时候,在选择参数源一项应该用什么,我不想再用ado.net实现添加了