Sign Up
Tutor Hunt on twitter Tutor Hunt on facebook

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">
<SelectParameters>
<asp:SessionParameter Name="Name" SessionField="getTopic" Type="String" />
</SelectParameters>
</asp:SqlDataSource>

The problem is that Session("Topic") is a string and I need to kno how to convert it to an integer in this code
4 months 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 Jimmy | 3 months ago
    Rate Up  Rate Down     
Ask an Academic Question
Popular Links
© 2005-2017 Tutor Hunt - All Rights Reserved

Privacy | Copyright | Terms of Service
loaded in 0.016 seconds
twitter    facebook