A Question about "Response"

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>");
        }


Answer this question

A Question about "Response"

  • altamash

    Thank you.

  • R.Tutus

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

    or

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

    or

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



  • A Question about "Response"