|
Wow - what a world of ugliness. Have you stopped to read the error message, and consider what it might mean ? Have you stepped through the code ?
If you're taking a class, you need to talk to your teacher, you are lost. If you're teaching yourself, buy a book on C# and read it carefully.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
prateekfgiet wrote: System.IndexOutOfRangeException: Index was outside the bounds of the array.
Error clearly says that the value of array is going to outside the boundary. So, Put a breakpoint over there and check the array index.
|
|
|
|
|
You are trying to access an item index which does not exist in the array. As Abhijeet rightly said, putting breakpoints and debugging it can track the issue and take you to the resolution.
Regards
Saanj
Either you love IT or leave IT...
|
|
|
|
|
i have put break point, when control reach
if ((no[0] != null) && (no[1] != "00"))
it gives error
how can i remove this error pls tell me
i m totally exhaust.
pls help me
|
|
|
|
|
ok thanks i got solution
thanks
|
|
|
|
|
May be no[1] != "00" is giving error because you are not checking for the null value.
Regards
Saanj
Either you love IT or leave IT...
|
|
|
|
|
yea due to null value its give error.
thanks
one more problem is here
when i put 223456.00, it converts in to Rupees Two hundred Twenty Three Thousand Four hundred Fifty Six Only while it should be rupees two lac twenty three thousand four hundred fifty six only
pls help me about this
|
|
|
|
|
Hi,
It's tough to answer this question as debugging is the only way. So, I think you are missing some checks (I mean some condition is getting failed) which cause a wrong sentence. This is my guess which came from my previous experience. I also had a similar kind of problem like yours. But one thing only I can remember is the condition checking. So try to debug and check all consitions in your code. All the best.
Regards
Saanj
Either you love IT or leave IT...
|
|
|
|
|
ok
thanks a lot for the help
|
|
|
|
|
prateekfgiet wrote: when i put 223456.00, it converts in to Rupees Two hundred Twenty Three Thousand Four hundred Fifty Six Only while it should be rupees two lac twenty three thousand four hundred fifty six only
Debugging is the only one way to resolve your problem. Check the condition properly.
|
|
|
|
|
when you "Publish" a website from VS, what exactly does it do then copying files over from project dir to IIS wwwroot virtual directory designated?
Thanks
dev
|
|
|
|
|
I suspect that's about it, unless it also changes some IIS settings to create a site at your root directory.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
|
Thanks - for those who're looking for same answer, this link from saanj is good.
dev
|
|
|
|
|
I am very glad to know that the link was useful to you.
Regards
Saanj
Either you love IT or leave IT...
|
|
|
|
|
hello, I've embedded some secret on my page:
<br />
HASH_…àEŠ€^×ÓdÔWcuRºû„QP¢„Up<br />
On post back, it became:
<br />
\0H\0A\0S\0H\0_\0…àEŠ€^×ÓdÔWcuRºû„QP¢„Up<br />
The difference between the two is "\0" character. What is it?
Thanks
dev
|
|
|
|
|
devvvy wrote: I've embedded some secret on my page:
Where you have embedded it? On a hidden textbox?
devvvy wrote: The difference between the two is "\0" character. What is it?
In C, \0 is normally used to indicate the end of string. Not sure the same applies to .NET as well.
Probably giving more information about your problem may help. Like, how you are creating and embedding this secret value. How you are reading it etc...
|
|
|
|
|
more detail... err... okay, this dirty little secret contains an Triple DES (TripleDESCryptoServiceProvider) encrypted string (auth token) which I embed in my aspx page for checking {authentication, integrity}. And yes hidden text
I was just wondering why the decrypted string contains '\0', where's that coming from...
dev
|
|
|
|
|
As CG said, it may be unicode strings getting converted. You can try to convert your encrypted string to base 64 string. Base 64 string can be embed on page without any issues.
|
|
|
|
|
yes I already embed and decode using Convert.FromBase64String
I'm thinking manually replace \0 is dumb and will eventually lead me to unemployment down the road
dev
|
|
|
|
|
devvvy wrote: yes I already embed and decode using Convert.FromBase64String
Are you encoding using Base64? The string doesn't looks like a base 64 encoded string.
|
|
|
|
|
yes, the part where I write to and read from ASPX page is done using:
Convert.FromBase64String
and
Convert.ToBase64String
dev
|
|
|
|
|
devvvy wrote: \0H\0A\0S\0H\0_\0
You're probably finding that a unicode string is being converted to bytes, each character has two bytes, and for ASCII characters, the first is a zero.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Many Thanks Lord Graus
dev
|
|
|
|
|
Christian Graus wrote: You're probably finding that a unicode string is being converted
That's a good thought. +5
|
|
|
|