Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid - select, delete,...
Message
From
18/03/2004 20:50:29
Eugenio Casal
Futura Tecnologia Informação Consult Ltd
São Paulo, Brazil
 
General information
Forum:
ASP.NET
Category:
Web forms
Miscellaneous
Thread ID:
00887742
Message ID:
00887758
Views:
17
Doru,

>I can see I get the right value, but, of course I can't use it, because it is a string, and I need an integer.

You can use Int32.Parse() method to parse the string you have into an integer value.

>The next problem is that for editing I'd like to go to another page, and I tried, in the same method:
>
Response.Redirect("EditAccount.aspx?idToEdit=" + Convert.ToInt16(Label1.Text.ToString());
>
>It doesn't take me to that page.
>

You have a string and then you convert it into an integer and again to a string. Why not use the string directly?
Response.Redirect("EditAccount.aspx?idToEdit=" + Label1.Text);
Regards,

Eugênio
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform