19.2.09

Loop,Iframe.Loader

Loop Through Dataset:

Since this is a c# ng, code is in c# :)

DataSet ds = new DataSet();
foreach(DataRow dr in ds.Tables[0].Rows)
{
Console.WriteLine(dr["ColName"].ToString());
}
==================================================
Loop Through Datareader:
while(r.Read())
{
Console.WriteLine("Column 1: {0}",r.GetString(0));
}
=====================================================

Iframe:

iframe id="frm_control" runat ="server" visible="false" frameborder="0" scrolling="no" height="100%"
width="100%"


frm_control.Attributes["src"] = "AssignPage.aspx?pageid=" + ViewState["grdpgid"].ToString();

==================================================
Loader
rad:AjaxLoadingPanel Style="margin-top: 200px;" enableoutsidescripts="True" ID="LoadingPnl"
runat="server" Height="75px" Width="75px" MinDisplayTime="500" Transparency="10">


-----------------------
LoadingPanelID="LoadingPnl"
==============================================
radA:RadAjaxPanel ID="RadAjaxPanel1" runat="server" EnableOutsideScripts="True"
EnableTheming="True" HorizontalAlign="NotSet" ScrollBars="None" LoadingPanelID="LoadingPnl"

17.2.09

RadTreeView with Checkbox

select Id, Name, RowId, IsChecked from table

Now, in NodeDataBound event handler you can access the database value for the particular node by

... = (e.Node.DataItem as DataRowView)["IsChecked"].ToString();

see this link:
http://www.telerik.com/help/aspnet-ajax/tree_servernodedatabound.html
============================================================================
e.NodeBound.Checked = Convert.ToBoolean(dataSourceRow["IsChecked"]);
see this:
http://www.telerik.com/community/forums/aspnet/treeview/check-checkbox-in-radtreeview-when-databind.aspx

15.2.09

RadGRID Checkbox

protected void CheckBox1_CheckedChanged(object sender, EventArgs e)
{
CheckBox chkbx = (CheckBox)sender;
Label list = (Label)((chkbx.NamingContainer).FindControl("Label1"));
string text = list.Text;
bool chkSatus = chkbx.Checked;

if ((sender as CheckBox).Checked)
{
foreach (GridDataItem dataItem in RadGrid1.MasterTableView.Items)
{
(dataItem.FindControl("CheckBox1") as CheckBox).Checked = true;
dataItem.Selected = true;
}
}
else
{
foreach (GridDataItem dataItem in RadGrid1.MasterTableView.Items)
{
(dataItem.FindControl("CheckBox1") as CheckBox).Checked = false;
dataItem.Selected = false;
}
}
}

radgrid

1.) protected void RadgridDisplayCategories_DeleteCommand(object source, Telerik.WebControls.GridCommandEventArgs e)
{

int Category_id = Convert.ToInt32(RadgridDisplayCategories.MasterTableView.
DataKeyValues[e.Item.ItemIndex]["CategoryID"]);
}
=====================================================================================
2.)protected void RadGridAttributes_ItemCommand(object source, GridCommandEventArgs e)
{
if (e.CommandName == "View")
{
Int32 CategoryID = Convert.ToInt32(e.Item.OwnerTableView.DataKeyValues
[e.Item.ItemIndex]["CategoryID"]);

}
}

8.2.09

Free Ebook Download computers

See this link:

http://www.free-ebooks-download.org/

5.2.09

Demos

Administration:
Here you add and manage users and user roles, set permissions, etc.


Users:

This section displays a list of site users. User name, full name, time when the user was created and value of the enabled parameter is displayed in the list. New users can be created here and you can also edit or delete any of the users in the list.

Roles:

This section displays a list of user roles defined for your web sites. You can either create new role, or edit or delete existing roles. You can display available roles for given site or assign users to given role.

How to sign in

You can find the web site at http://www.kenticolab.com/Web024267/
Administration: http://www.kenticolab.com/Web024267/cmsdesk
Your username: administrator
Your password: BIAOrzAU

3.2.09

good demos of EAM

see this

http://demo.assetexplorer.com/InventoryHome.do

and
http://www.manageengine.com/

very good demos of CRM

see this:

http://crm.zoho.com/crm/storedemologin.sas

2.2.09

text scroll vertically in textbox

see this

http://javascript.internet.com/text-effects/layer-scroller.html

=============

http://www.java2s.com/Code/JavaScript/GUI-Components/Scrolltextwithcustomscollbar.htm
============
onbuttonclick:
http://www.java2s.com/Code/JavaScript/GUI-Components/TextScrollwhenclicking.htm
====================
onmouseover:
http://www.java2s.com/Code/JavaScript/GUI-Components/TextScrollwhenmouseover.htm
-----------
onmouseover:
http://cssglobe.com/post/1495/easy-scroll-accessible-content-scroller