Click here to Skip to main content
15,920,801 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Div ASP.NET Controlls at runtime Pin
badgrs3-Apr-07 0:02
badgrs3-Apr-07 0:02 
GeneralRe: Div ASP.NET Controlls at runtime Pin
L Viljoen3-Apr-07 0:08
professionalL Viljoen3-Apr-07 0:08 
Questionopengl web application Pin
P e t e r2-Apr-07 21:12
P e t e r2-Apr-07 21:12 
QuestionWSE 3.0 Silent Installation Pin
pranu_132-Apr-07 21:03
pranu_132-Apr-07 21:03 
QuestionVBS help Pin
Sachin Pimpale2-Apr-07 19:59
Sachin Pimpale2-Apr-07 19:59 
AnswerRe: VBS help Pin
andyharman3-Apr-07 0:52
professionalandyharman3-Apr-07 0:52 
QuestionUsing an Image for a border Pin
Leo Smith2-Apr-07 8:21
Leo Smith2-Apr-07 8:21 
AnswerRe: Using an Image for a border Pin
badgrs2-Apr-07 23:52
badgrs2-Apr-07 23:52 
GeneralRe: Using an Image for a border Pin
Leo Smith3-Apr-07 9:16
Leo Smith3-Apr-07 9:16 
QuestionDataGrid Question Pin
No-e2-Apr-07 8:21
No-e2-Apr-07 8:21 
QuestionTreeView help!! Pin
r_jaz2-Apr-07 5:43
r_jaz2-Apr-07 5:43 
QuestionPrinting a variable string using javascript [modified] Pin
indian1432-Apr-07 3:32
indian1432-Apr-07 3:32 
GeneralRe: Printing a variable string using javascript Pin
Guffa2-Apr-07 6:02
Guffa2-Apr-07 6:02 
Questionhow to delete Cookies Pin
Sachin Pimpale2-Apr-07 3:03
Sachin Pimpale2-Apr-07 3:03 
AnswerRe: how to delete Cookies Pin
Guffa2-Apr-07 6:05
Guffa2-Apr-07 6:05 
Questionweb service Pin
habibmulla2-Apr-07 0:25
habibmulla2-Apr-07 0:25 
AnswerRe: web service Pin
badgrs2-Apr-07 2:57
badgrs2-Apr-07 2:57 
QuestionASPX In Inner HTML Tag Pin
L Viljoen2-Apr-07 0:19
professionalL Viljoen2-Apr-07 0:19 
AnswerRe: ASPX In Inner HTML Tag Pin
Paddy Boyd2-Apr-07 0:44
Paddy Boyd2-Apr-07 0:44 
GeneralRe: ASPX In Inner HTML Tag Pin
L Viljoen2-Apr-07 0:46
professionalL Viljoen2-Apr-07 0:46 
GeneralRe: ASPX In Inner HTML Tag Pin
Paddy Boyd2-Apr-07 0:50
Paddy Boyd2-Apr-07 0:50 
QuestionCreating a New Site Pin
Subramaniam s.V.1-Apr-07 22:17
Subramaniam s.V.1-Apr-07 22:17 
QuestionVisual Source Safe (VSS) Pin
Ahuja.bangalore1-Apr-07 21:01
Ahuja.bangalore1-Apr-07 21:01 
Questioncreating a table Pin
Oga M1-Apr-07 20:33
Oga M1-Apr-07 20:33 
AnswerRe: creating a table Pin
L Viljoen2-Apr-07 0:32
professionalL Viljoen2-Apr-07 0:32 
If you can use ASP.NET, C# it would be rather simple, create a div in you code.

Your div should look like <div id="myContent" runat="server"> </div>

now in the code behind in your button clicked method you can set the inner html of the div.

eg: myContent.InnerHTML = "<table> //Content </table>"

Now your code should looks something like this you can use a for loop
Buttonevent{
int rows = int.Parse(Texbox1.Text);
//Start
myContent.InnerHTML = "<table>"; //Start Table
for(int i = 0; i < rows; i++){

myContent.InnerHTML = myContent.InnerHTML+"<tr>"; //Start Table Row
myContent.InnerHTML = myContent.InnerHTML+"<td>"; //Start Cell
myContent.InnerHTML = myContent.InnerHTML+" Hello "; //Content of Cell
myContent.InnerHTML = myContent.InnerHTML+"</td>"; //End Cell
myContent.InnerHTML = myContent.InnerHTML+"</tr>"; //End Table Row
}
myContent.InnerHTML = "</table>"; //Finish Table


}
=======================================================================
You can also indent the htmtext using \n 's

Hope this helps

Oliekrokenosterpikkelikkeastrysvoel

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.