Click here to Skip to main content
15,845,308 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: web-based payments processing system like e-shoping. Pin
Gamzun6-Nov-09 22:17
Gamzun6-Nov-09 22:17 
QuestionSend mail with smtp server Pin
ankur10876-Nov-09 2:53
ankur10876-Nov-09 2:53 
AnswerRe: Send mail with smtp server Pin
Ashfield6-Nov-09 3:12
Ashfield6-Nov-09 3:12 
AnswerRe: Send mail with smtp server Pin
OriginalGriff6-Nov-09 7:13
mveOriginalGriff6-Nov-09 7:13 
Questionrefresh Pin
AndyInUK6-Nov-09 2:16
AndyInUK6-Nov-09 2:16 
AnswerRe: refresh Pin
sashidhar6-Nov-09 2:23
sashidhar6-Nov-09 2:23 
QuestionProblem in Table Designing Pin
rhtbhegade6-Nov-09 1:24
rhtbhegade6-Nov-09 1:24 
AnswerRe: Problem in Table Designing [modified] Pin
compninja256-Nov-09 2:51
compninja256-Nov-09 2: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 18:51
rhtbhegade6-Nov-09 18:51 
GeneralRe: Problem in Table Designing Pin
sashidhar6-Nov-09 20:07
sashidhar6-Nov-09 20:07 
QuestionScript function is not working. Pin
bhavnvyas6-Nov-09 0:49
bhavnvyas6-Nov-09 0:49 
AnswerRe: Script function is not working. Pin
sashidhar6-Nov-09 1:04
sashidhar6-Nov-09 1:04 
GeneralRe: Script function is not working. Pin
bhavnvyas6-Nov-09 1:15
bhavnvyas6-Nov-09 1:15 
GeneralRe: Script function is not working. Pin
sashidhar6-Nov-09 1:19
sashidhar6-Nov-09 1:19 
GeneralRe: Script function is not working. Pin
bhavnvyas6-Nov-09 1:26
bhavnvyas6-Nov-09 1:26 
GeneralRe: Script function is not working. Pin
bhavnvyas6-Nov-09 1:36
bhavnvyas6-Nov-09 1:36 
GeneralRe: Script function is not working. Pin
sashidhar6-Nov-09 1:44
sashidhar6-Nov-09 1:44 
GeneralRe: Script function is not working. Pin
bhavnvyas6-Nov-09 1:48
bhavnvyas6-Nov-09 1:48 
GeneralRe: Script function is not working. Pin
sashidhar6-Nov-09 1:51
sashidhar6-Nov-09 1:51 
GeneralRe: Script function is not working. Pin
bhavnvyas6-Nov-09 1:53
bhavnvyas6-Nov-09 1:53 
GeneralRe: Script function is not working. Pin
sashidhar6-Nov-09 2:07
sashidhar6-Nov-09 2:07 
GeneralRe: Script function is not working. Pin
bhavnvyas6-Nov-09 18:36
bhavnvyas6-Nov-09 18:36 
GeneralRe: Script function is not working. Pin
sashidhar6-Nov-09 18:44
sashidhar6-Nov-09 18:44 
GeneralRe: Script function is not working. Pin
bhavnvyas6-Nov-09 19:24
bhavnvyas6-Nov-09 19:24 
GeneralRe: Script function is not working. Pin
sashidhar6-Nov-09 19:30
sashidhar6-Nov-09 19: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.