Click here to Skip to main content
15,388,979 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: web-based payments processing system like e-shoping. Pin
Gamzun6-Nov-09 21:17
MemberGamzun6-Nov-09 21:17 
QuestionSend mail with smtp server Pin
ankur10876-Nov-09 1:53
Memberankur10876-Nov-09 1:53 
AnswerRe: Send mail with smtp server Pin
Ashfield6-Nov-09 2:12
MemberAshfield6-Nov-09 2:12 
AnswerRe: Send mail with smtp server Pin
OriginalGriff6-Nov-09 6:13
mveOriginalGriff6-Nov-09 6:13 
Questionrefresh Pin
AndyInUK6-Nov-09 1:16
MemberAndyInUK6-Nov-09 1:16 
AnswerRe: refresh Pin
sashidhar6-Nov-09 1:23
Membersashidhar6-Nov-09 1:23 
QuestionProblem in Table Designing Pin
rhtbhegade6-Nov-09 0:24
Memberrhtbhegade6-Nov-09 0:24 
AnswerRe: Problem in Table Designing [modified] Pin
compninja256-Nov-09 1:51
Membercompninja256-Nov-09 1:51 
for lines where your dynamically adding the values of the database, use the ToString() method, but not for the literals:


rhtbhegade wrote:
strHTMLContent.Append("<table align='Center'>".ToString());
strHTMLContent.Append("<tr>".ToString());
strHTMLContent.Append("<td style='width: 300px'></td>".ToString());


should read:

strHTMLContent.Append("<table align='Center'>");
strHTMLContent.Append("<tr>");
strHTMLContent.Append("<td style='width: 300px'></td>");


Then at the very end of the once your datareader is finished, convert the string builder to a sting.

HttpContext.Current.Response.Write(strHTMLContent.ToString());

Hope this helps! Smile | :)

[update] You'll also want to inject the dynamic stuff inside the table data elements:

strHTMLContent.Append("<table align='Center'><tr>");
strHTMLContent.Append("<td style='width: 300px'>" + odr["AreaId"].ToString() + "</td>");


that's probably most likely why it's not coming out in the 'grid' form you were expecting.

Knowledge is not power, however, the acquisition and appropriate application of knowledge can make you a very powerful individual.

modified on Friday, November 6, 2009 3:14 PM

GeneralRe: Problem in Table Designing Pin
rhtbhegade6-Nov-09 17:51
Memberrhtbhegade6-Nov-09 17:51 
GeneralRe: Problem in Table Designing Pin
sashidhar6-Nov-09 19:07
Membersashidhar6-Nov-09 19:07 
QuestionScript function is not working. Pin
bhavnvyas5-Nov-09 23:49
Memberbhavnvyas5-Nov-09 23:49 
AnswerRe: Script function is not working. Pin
sashidhar6-Nov-09 0:04
Membersashidhar6-Nov-09 0:04 
GeneralRe: Script function is not working. Pin
bhavnvyas6-Nov-09 0:15
Memberbhavnvyas6-Nov-09 0:15 
GeneralRe: Script function is not working. Pin
sashidhar6-Nov-09 0:19
Membersashidhar6-Nov-09 0:19 
GeneralRe: Script function is not working. Pin
bhavnvyas6-Nov-09 0:26
Memberbhavnvyas6-Nov-09 0:26 
GeneralRe: Script function is not working. Pin
bhavnvyas6-Nov-09 0:36
Memberbhavnvyas6-Nov-09 0:36 
GeneralRe: Script function is not working. Pin
sashidhar6-Nov-09 0:44
Membersashidhar6-Nov-09 0:44 
GeneralRe: Script function is not working. Pin
bhavnvyas6-Nov-09 0:48
Memberbhavnvyas6-Nov-09 0:48 
GeneralRe: Script function is not working. Pin
sashidhar6-Nov-09 0:51
Membersashidhar6-Nov-09 0:51 
GeneralRe: Script function is not working. Pin
bhavnvyas6-Nov-09 0:53
Memberbhavnvyas6-Nov-09 0:53 
GeneralRe: Script function is not working. Pin
sashidhar6-Nov-09 1:07
Membersashidhar6-Nov-09 1:07 
GeneralRe: Script function is not working. Pin
bhavnvyas6-Nov-09 17:36
Memberbhavnvyas6-Nov-09 17:36 
GeneralRe: Script function is not working. Pin
sashidhar6-Nov-09 17:44
Membersashidhar6-Nov-09 17:44 
GeneralRe: Script function is not working. Pin
bhavnvyas6-Nov-09 18:24
Memberbhavnvyas6-Nov-09 18:24 
GeneralRe: Script function is not working. Pin
sashidhar6-Nov-09 18:30
Membersashidhar6-Nov-09 18:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.