thank u all that is not relay what i want put it is okay i fix it thank all again
ZeroOne8
Posts
-
redirect page in asp.net -
redirect page in asp.nethello very one ;) i need some help or advice from the people , who have expert in asp.net this is my problem the url for example is http://localhost:2940/website/page.aspx?ID=1 when i change id to http://localhost:2940/website/page.aspx?ID=100000000000000000000000000000000000 i get error manege The conversion of the nvarchar value '20000000000000000000000000000000' overflowed an int column. i need if the ID dose not exist in database table , redirect the page to homepage thx all
-
left Circular shift ??i know that . -- but if you see my code you will know what i meaning .
-
left Circular shift ??You're right , really i can't found different between l and 1 in VS2008 it is the same Usually i used letter such as i j x y any way thx for your advice ;)
-
left Circular shift ??it is very good idea it has never crossed my mind ,it so easy and so small i do this
public static String CircularShift(string Subject, int Count) { int l = Subject.Length; char\[\] text = new char\[l\]; for (int i = 0; i < l; i++) { text\[i\] = Subject\[(i + Count) % l\]; } String output = ""; for (int i = 0; i < l; i++) { output += text\[i\]; } return output; }
but i will use your idea . thank you very much. an thx for every one who trying to help .
modified on Sunday, November 14, 2010 1:36 PM
-
left Circular shift ??yes i see that article , the Shift function dose not work with me , the encryption in the article is encrypt binary files , but i need to encrypt some text.
-
left Circular shift ??Henry Minute wrote:
If you have to do a circular shift on a number why are you faffing about with strings?
because h1 and h2 is result from function that return string . i will see if i can use another function , or convert the return data type . thx henry .
-
left Circular shift ??thank you much Pete :) in fact my real problem is : I'm trying to implement Simplified DES (DES is an encryption algorithm ) on of the step to implement is Left Circular shift for every halve of the key if the key is 1000001100 string h1 = 10000 string h2 = 01100 then do Left Circular shift by 1 , so 10000 will be 00001 and 01100 will be 11000 i need function to do that shift :) I tried a lot, but there is no result :mad:.
modified on Sunday, November 14, 2010 1:34 PM
-
left Circular shift ??hello every one :) any body can help me to find function that can do left Circular shift for any string for Ex: string is codeproject i need it to be odeprojectc pls help me :)