C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




can anyone solve this issue?


Posted Date: 05 Sep 2008      Total Responses: 1

Posted By: spandhanaspandy       Member Level: Gold     Points: 1


I have create a .ascx page in that i have 4 buttons Country,State,Cities,Districts and one table. What i want to design the page like, If i click on Country the table should be with 2 columns & if i click on State the table should display 3 Columns.This design i should done using the base class & derived class. So please any one help me for this.I want the anwer in detail. thanks in advance





Responses

Author: Kundan Kumar Sinha    08 Sep 2008Member Level: GoldRating:     Points: 3
Hi,

Use one div tag to display the table, and create four javascript function. call corresponding function on the click of corresponding button.

one function is added for your reference.

function ShowTable()
{
var show = document.getElementById("table");
var tableHead = "<Table Border='1' width='100%'>";
var tableBottom = "</table>";var tableBody="";
var j;
j = document.frm1.txtValue.value;
for(var i = 0; i < j; i++)
{
tableBody = tableBody + "<tr><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td></tr>";
}
show.innerHTML = tableHead + tableBody + tableBottom ;
}

You can refer the following link for detail information.

http://dotnetspider.com/resources/20542-Ceate-Table-Dynamically-Using-Javascript.aspx

Regards,
Kundan



Post Reply
You must Sign In to post a response.
Next : anyone help this issue?
Previous : regular expression validator---urgent
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

conference calls

Contact Us    Privacy Policy    Terms Of Use