Click here to Skip to main content
15,881,204 members
Home / Discussions / Web Development
   

Web Development

 
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
Questionpop up windows in .asp pages Pin
starri001-Apr-07 1:06
starri001-Apr-07 1:06 
AnswerRe: pop up windows in .asp pages Pin
Hesham Amin1-Apr-07 6:43
Hesham Amin1-Apr-07 6:43 
QuestionKeeping the values of radio button during paging [modified] Pin
enggars31-Mar-07 7:45
enggars31-Mar-07 7:45 
AnswerRe: Keeping the values of radio button during paging Pin
eggsovereasy2-Apr-07 7:47
eggsovereasy2-Apr-07 7:47 
QuestionHow to force a page to post back from another page? Pin
r_jaz31-Mar-07 2:48
r_jaz31-Mar-07 2:48 
AnswerRe: How to force a page to post back from another page? Pin
Guffa31-Mar-07 4:37
Guffa31-Mar-07 4:37 
Questionphp page being loaded twice Pin
john3431-Mar-07 2:19
john3431-Mar-07 2:19 
AnswerRe: php page being loaded twice Pin
Bradml31-Mar-07 2:35
Bradml31-Mar-07 2:35 
AnswerRe: php page being loaded twice Pin
Bradml31-Mar-07 4:18
Bradml31-Mar-07 4:18 
GeneralRe: php page being loaded twice Pin
john3431-Mar-07 8:13
john3431-Mar-07 8:13 
GeneralRe: php page being loaded twice Pin
Bradml31-Mar-07 18:31
Bradml31-Mar-07 18:31 
GeneralRe: php page being loaded twice Pin
john341-Apr-07 3:44
john341-Apr-07 3:44 
GeneralRe: php page being loaded twice Pin
Bradml1-Apr-07 3:56
Bradml1-Apr-07 3:56 
Questionbinary data asp Pin
Nilesh Hapse30-Mar-07 23:53
Nilesh Hapse30-Mar-07 23:53 
AnswerRe: binary data asp Pin
Dmitry Khudorozhkov31-Mar-07 2:51
Dmitry Khudorozhkov31-Mar-07 2:51 
Questionvoice chat Pin
tempsh30-Mar-07 23:40
tempsh30-Mar-07 23:40 
AnswerRe: voice chat Pin
Dmitry Khudorozhkov31-Mar-07 2:45
Dmitry Khudorozhkov31-Mar-07 2:45 

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.