Click here to Skip to main content
15,899,026 members
Home / Discussions / C#
   

C#

 
AnswerRe: animation Pin
Luc Pattyn22-Feb-11 10:15
sitebuilderLuc Pattyn22-Feb-11 10:15 
GeneralRe: animation Pin
musefan23-Feb-11 5:10
musefan23-Feb-11 5:10 
AnswerRe: animation Pin
PIEBALDconsult22-Feb-11 10:31
mvePIEBALDconsult22-Feb-11 10:31 
GeneralRe: animation Pin
jashimu22-Feb-11 10:35
jashimu22-Feb-11 10:35 
GeneralRe: animation Pin
PIEBALDconsult22-Feb-11 13:40
mvePIEBALDconsult22-Feb-11 13:40 
AnswerRe: animation Pin
_Maxxx_22-Feb-11 18:33
professional_Maxxx_22-Feb-11 18:33 
GeneralRe: animation Pin
jashimu23-Feb-11 2:45
jashimu23-Feb-11 2:45 
QuestionHow to embed variable value in sqldatasource session parameter in c# Pin
Member 471627122-Feb-11 8:31
Member 471627122-Feb-11 8:31 
I want to question how to embed variable value in sqldatasource session parameter in c#. This is mycode:

default.aspx:

<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:Ora2011 %>"
ProviderName="<%$ ConnectionStrings:Ora2011.ProviderName %>"
SelectCommand="SELECT ID, CATEGORY_NAME FROM (:INVENT_CATEGORY)">
<SelectParameters>
<asp:SessionParameter Name="INVENT_CATEGORY" SessionField="INVENT_CATEGORY" Type="String"/>
</SelectParameters>
</asp:SqlDataSourc>




C#:
protected void Page_Load(object sender, EventArgs e)
{
  string table = "V_INVENTORY"
  Session["INVENT_CATEGORY"] = table;
}




When i run this program, i get error "invalid table name". Why i can't embed variable into sqldatasource from session parameter. Thanks for your help
AnswerRe: How to embed variable value in sqldatasource session parameter in c# Pin
Richard MacCutchan22-Feb-11 23:19
mveRichard MacCutchan22-Feb-11 23:19 
AnswerRe: How to embed variable value in sqldatasource session parameter in c# Pin
RaviRanjanKr25-Feb-11 18:17
professionalRaviRanjanKr25-Feb-11 18:17 
QuestionWorking with dictionary Pin
SRKSHOME22-Feb-11 3:10
SRKSHOME22-Feb-11 3:10 
AnswerRe: Working with dictionary [modified] Pin
Luc Pattyn22-Feb-11 3:21
sitebuilderLuc Pattyn22-Feb-11 3:21 
GeneralRe: Working with dictionary Pin
Ennis Ray Lynch, Jr.22-Feb-11 6:43
Ennis Ray Lynch, Jr.22-Feb-11 6:43 
GeneralRe: Working with dictionary Pin
Luc Pattyn22-Feb-11 6:54
sitebuilderLuc Pattyn22-Feb-11 6:54 
Questionoperate the pc through voice command in c# Pin
aeman22-Feb-11 2:29
aeman22-Feb-11 2:29 
AnswerRe: operate the pc through voice command in c# Pin
Not Active22-Feb-11 2:39
mentorNot Active22-Feb-11 2:39 
AnswerRe: operate the pc through voice command in c# Pin
Keith Barrow22-Feb-11 3:19
professionalKeith Barrow22-Feb-11 3:19 
AnswerRe: operate the pc through voice command in c# Pin
#realJSOP22-Feb-11 3:24
professional#realJSOP22-Feb-11 3:24 
GeneralRe: operate the pc through voice command in c# Pin
aeman22-Feb-11 6:21
aeman22-Feb-11 6:21 
GeneralRe: operate the pc through voice command in c# Pin
Dave Kreskowiak22-Feb-11 7:51
mveDave Kreskowiak22-Feb-11 7:51 
GeneralRe: operate the pc through voice command in c# PinPopular
Not Active22-Feb-11 15:48
mentorNot Active22-Feb-11 15:48 
AnswerRe: operate the pc through voice command in c# Pin
Eddy Vluggen22-Feb-11 9:37
professionalEddy Vluggen22-Feb-11 9:37 
AnswerRe: operate the pc through voice command in c# Pin
_Maxxx_22-Feb-11 15:31
professional_Maxxx_22-Feb-11 15:31 
GeneralRe: operate the pc through voice command in c# Pin
aeman23-Feb-11 6:49
aeman23-Feb-11 6:49 
AnswerRe: operate the pc through voice command in c# Pin
Member 873075321-Apr-12 11:26
Member 873075321-Apr-12 11:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.