public DataTable[] getDataTables(DataTable tableToClone, int seperateVal, int val)
{
DataTable[] tables = new DataTable[val];
int count = 0;
int index = 0;
DataTable copyTable = null;
foreach (DataRow row in tableToClone.Rows)
{
if ((count++ % seperateVal) == 0)
{
copyTable = new DataTable();
copyTable = tableToClone.Clone();
tables[index] = copyTable;
index++;
}
copyTable.ImportRow(row);
}
return tables;
}
Wednesday, February 23, 2011
Split DataTable in to several DataTables
I achieved this requirement from this code snippet.
Monday, February 14, 2011
Invalid length for a Base-64 char array
This error gave me when i try to encrypt the query string. I solved this issue by http://forums.asp.net/t/1222829.aspx.
It worked fine. But now for some query string values it gives same error. The reason is there was a space character in the query string value. Then i replaced space character with "+". Its working now.
It worked fine. But now for some query string values it gives same error. The reason is there was a space character in the query string value. Then i replaced space character with "+". Its working now.
64-bit encoding does not work well with spaces in the string for some odd reason.
Tuesday, February 8, 2011
Label outside of the update panel is not update when event fire.
Place Label control inside another update panel.
Sunday, February 6, 2011
UpdatePanelAnimationExtender FadeIn FadeOut problem-page resize issue
Basically the problem is after animation worked page is not resize properly.what i did is put div tag name it as rightContainer and place the code whithing it what i need to update.Then Set the AnimationTarget="rightContainer".
Here the Code.
<FadeIn AnimationTarget="rightContainer" minimumOpacity=".6" />
<FadeOut AnimationTarget="rightContainer" minimumOpacity=".6" />
Here the Code.
<FadeIn AnimationTarget="rightContainer" minimumOpacity=".6" />
<FadeOut AnimationTarget="rightContainer" minimumOpacity=".6" />
Thursday, February 3, 2011
Wednesday, February 2, 2011
Get visible false asp Lable value from java script
<style>
.lbl{
display:none;
}
</style>
<asp:Lable ID="label1" runat="server" CssClass="lbl"/>
var val=document.getElementById("<%=label1.ClientID%>").innerHTML;
Subscribe to:
Posts (Atom)
I Built a New Kind of Number Puzzle Game (And You Can Play It Free)
For a long time, I wanted to play a mobile puzzle game that felt genuinely strategic—something that required real brainpower, skipped the a...
-
Microsoft Graph API provides powerful capabilities to interact with Microsoft 365 services. In this guide, we’ll explore how to create calen...
-
Microsoft Graph API is a powerful tool that allows developers to access a wide range of Microsoft 365 services, including Outlook and Calend...
-
When you already have IIS running then you may not be able to run WAMP Server at Localhost. You need to shutdown IIS in order to run WAMP Se...