Tutor HuntQuestions

Tutor Hunt Questions

<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:PasseditConnectionString %>" SelectCommand="SELECT [Content_ID], [Content_Title FROM [PhysicsA_Contents] WHERE [Topic_ID]= @getTopic">
<asp:SessionParameter Name="Name" SessionField="getTopic" Type="String" />

The problem is that Session("Topic") is a string and I need to kno how to convert it to an integer in this code
7 years ago

Asp Question asked by Chris

Know the Answer?

Please enter your response to the question below. The student will get a notification as soon your response has been approved by our moderation team.

Submit Answer

1 Answer

int variablename=Convert.ToInt32(Session("Topic").ToString())
Answered by [Deleted Member]
+ 1    Rate Up  Rate Down