Wednesday, February 23, 2011

Split DataTable in to several DataTables

I achieved this requirement from this code snippet.


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;
 } 

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.

64-bit encoding does not work well with spaces in the string for some odd reason.

Sunday, February 6, 2011

UpdatePanelAnimationExtender FadeIn FadeOut problem-page styles issue

not resolved yet

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" />

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;
 

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...