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 ChoudharyRank #145 · 15.8K reputationPosted Jan 6, 2011, 2:29 AM EST
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 KRank #1,514 · 1.1K reputationPosted Jan 6, 2011, 2:30 AM EST
Response.Write("
Response.Write("
string title = rdr["title"].ToString();
string suggestion = rdr["suggestion"].ToString();
Response.Write("" + title + "
" + suggestion + "
krithika muthukrishnanRank #8,369 · 223 reputationPosted Jan 6, 2011, 8:14 PM EST
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 KRank #1,514 · 1.1K reputationPosted Jan 6, 2011, 8:28 PM EST
Response.Write(""+str1+"\">" + rdr["title"] + "
" + rdr["suggestion"] + "");
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts