Hai,
I design a table using datareader i retrieve a record and display in that table but i cant give link to that title column,if i am using some error occurs , how to solve this i specify my codings,any one help me,
Response.Write("
| Title | User | Submitted Date | ");|
| ");
Response.Write (""+ rdr["title"] + "+ rdr["suggestion"] + " | ");
Amit ChoudharyPosted Jan 6, 2011, 7:29 AM
Replace the line
Response.Write ("seven.aspx">"+ rdr["title"] +
"+ rdr["suggestion"] + "");
By this line
Response.Write ("seven.aspx\">"+ rdr["title"] + "
"+ rdr["suggestion"] + "");
see if it works.
Thanks.
Madhu KPosted Jan 7, 2011, 1:28 AM
Response.Write(""+str1+"\">" + rdr["title"] + "
" + rdr["suggestion"] + "");
krithika muthukrishnanPosted Jan 7, 2011, 1:14 AM
Thank u for ur answer,one more doubt when i a pass a query string below codings are used but it dont pass a str1 value,it only pass str1
how to solve this,
string str1=rdr["title"].ToString(); //here it works correctly
Response.Write ("seven.aspx?str=str1\">"+ rdr["title"] + "
"+ rdr["suggestion"] + "");
Thank u,
Madhu KPosted Jan 6, 2011, 7:30 AM
Response.Write("
Response.Write("
string title = rdr["title"].ToString();
string suggestion = rdr["suggestion"].ToString();
Response.Write("" + title + "
" + suggestion + "