A Question about "Response"  
Author Message
GuoHouzuo





PostPosted: .NET Base Class Library, A Question about "Response" Top

How to write a hyper link to another aspx page by using response.write method
I don't know how to write the " in the code....

Response.write("<a href="/welcome.aspx"");
there are some errors on it...


I 'm a Chinese,so I can't speak english very well.i am so sorry about that....

the code is here:
for (int i = 0; i < ds2.Tables[0].Rows.Count; i++)
        {
            Object[] objs = ds2.Tables[0].RowsIdea.ItemArray;
            Session["CanQuery" + i.ToString()] = objs[0].ToString();
            Response.Write("<br><a href=chakanxinxi.aspx tblname=" + Session["CanQuery" + i.ToString()]+"></a>");
        }


.NET Development8  
 
 
Mattias Sjogren





PostPosted: .NET Base Class Library, A Question about "Response" Top

"<a href=\"/welcome.aspx\""

or

or

"<a href='/welcome.aspx'"



 
 
GuoHouzuo





PostPosted: .NET Base Class Library, A Question about "Response" Top

Thank you.