Friday, January 23, 2009

Nested DataList.. To Create treeview type display

hi ...
Here we have a datalist and in that datalist another datalist for each row...
so it will create output like shown in image at right side..

here is code for that

Tuesday, January 20, 2009

Bind Textbox in Tab container using javascript with ajaxtoolkit

hello friends

This is to add javascript for Textbox in Tabcontainer
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<form id="form1" runat="server">
<%@ page language="VB" autoeventwireup="false" codefile="Default.aspx.vb" inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""">
<head runat="server">
<title>Untitled Page</title>
<script language="javascript" type="text/javascript">
function Callme()
<asp:scriptmanager id="ScriptManager1" runat="server">
<cc1:tabcontainer id="TabContainer1" runat="server" activetabindex="0">
<cc1:tabpanel id="TabPanel1" runat="server" headertext="TabPanel1">
<asp:textbox id="TextBox1" runat="server"></asp:TextBox>
<asp:textbox id="TextBox2" runat="server"></asp:TextBox>               
<cc1:tabpanel id="TabPanel2" runat="server" headertext="TabPanel2">
<%--put another control--%>
</body> </html>