Hi, I can't understand what your trying to do?. but this is what i think you r trying to do.. u have a datalist control who has a child control which has a value and u need to retrieve it.
you r going fine except that your trying to send an asp.net textbox control to be parsed as int..
[Explicit casting required]
u will have the value which u can input in Sql.
I hope this answer helps u.
The format Exception may be thrown because you are not receiving any value or the string from the t.Text may be "" (empty string).please try to debug and check the issue or place your code snippet and let me check it.
Do not use Int32.Parse() when you do not know the contents of the input. Use the Int32.TryParse() Method[^], or put the parsing code within a try/catch block. You should also use your debugger to check the value that the code is actually trying to interpret; don't assume it's the value that you think is there.
One of these days I'm going to think of a really clever signature.
Last Visit: 31-Dec-99 19:00 Last Update: 28-Mar-17 5:32