Click here to Skip to main content
15,901,373 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: runtime drop down boxes Pin
mark_me7-Aug-09 5:21
mark_me7-Aug-09 5:21 
AnswerRe: runtime drop down boxes Pin
4anusha46-Aug-09 19:54
4anusha46-Aug-09 19:54 
GeneralRe: runtime drop down boxes Pin
mark_me7-Aug-09 5:22
mark_me7-Aug-09 5:22 
Questionhow to get Status bar URL value Pin
Hemant_ec486-Aug-09 10:28
Hemant_ec486-Aug-09 10:28 
AnswerRe: how to get Status bar URL value Pin
Abhishek Sur6-Aug-09 11:58
professionalAbhishek Sur6-Aug-09 11:58 
QuestionCreate report for display values in chart Pin
sabaMCA6-Aug-09 9:56
sabaMCA6-Aug-09 9:56 
AnswerRe: Create report for display values in chart Pin
Abhishek Sur6-Aug-09 11:34
professionalAbhishek Sur6-Aug-09 11:34 
QuestionUsing a Session variable in an UpdateCommand Pin
JohnQuar16-Aug-09 9:55
JohnQuar16-Aug-09 9:55 
Hello,
I am trying to use a Session Variable in an update command and the error that I continue to get is:

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Server tags cannot contain <%...%>constructs.

It also says that the Datasource is not well formed when I try to enter it in. Could someone help me figure out how to use this?

The session variable I am trying to bring over is a global temp table name. Below is the code.
<asp:SqlDataSource ID="FAR15DataSource" runat="server" 
        ConnectionString="<%$ ConnectionStrings:Cost_ModelConnectionString %>"  
        SelectCommand="SELECT Service_Tower_Code, WBS_Code, Ownertype, Compensation_Code, Compensation_Rate, Far_East_FTE, Hawaii_FTE,Mid_Atlantic_FTE, NCR_FTE, North_Midwest_FTE, Northeast_FTE, South_FTE, Southwest_FTE
FROM fn_enterprise_positions(1)"
        UpdateCommand="UPDATE  <%=Session["TableName"]%>  SET Far_East_FTE = @Far_East_FTE, Hawaii_FTE = @Hawaii_FTE, Mid_Atlantic_FTE = @Mid_Atlantic_FTE, NCR_FTE = @NCR_FTE, North_Midwest_FTE = @North_Midwest_FTE, Northeast_FTE = @Northeast_FTE, South_FTE = @South_FTE, Southwest_FTE = @Southwest_FTE
                WHERE Service_Tower_Code = @Service_Tower_Code AND WBS_Code = @WBS_Code AND Compensation_Code = @Compensation_Code AND worker_code = @worker_code">
                <UpdateParameters>
                <asp:FormParameter Name="Service_Tower_Code" FormField="Service_Tower_Code" />
                <asp:FormParameter Name="WBS_Code" FormField="WBS_Code" />
                <asp:FormParameter Name="Compensation_Code" FormField="Compensation_Code" />
                <asp:FormParameter Name="worker_code" FormField="worker_code" />
                <asp:FormParameter Name="Compensation_Rate" FormField="Compensation_Rate" />
                <asp:FormParameter Name="Far_East_FTE" FormField="Far_East_FTE" />
                <asp:FormParameter Name="Hawaii_FTE" FormField="Hawaii_FTE" />
                <asp:FormParameter Name="Mid_Atlantic_FTE" FormField="Mid_Atlantic_FTE" />
                <asp:FormParameter Name="NCR_FTE" FormField="NCR_FTE" />
                <asp:FormParameter Name="North_Midwest_FTE" FormField="North_Midwest_FTE" />
                <asp:FormParameter Name="Northeast_FTE" FormField="Northeast_FTE" />
                <asp:FormParameter Name="South_FTE" FormField="South_FTE" />
                <asp:FormParameter Name="Southwest_FTE" FormField="Southwest_FTE" />
                </UpdateParameters>
</asp:SqlDataSource>

I did originally have a <asp:SessionParameter Name="TableName" /> inside the update parameters but that didnt seem to do anything. Thanks for your help!

John Michael
QuestionHow to restart IIS 5.1 without server reboot? Pin
Chesnokov Yuriy6-Aug-09 9:47
professionalChesnokov Yuriy6-Aug-09 9:47 
AnswerRe: How to restart IIS 5.1 without server reboot? PinPopular
Abhijit Jana6-Aug-09 9:58
professionalAbhijit Jana6-Aug-09 9:58 
AnswerRe: How to restart IIS 5.1 without server reboot? Pin
Abhishek Sur6-Aug-09 10:35
professionalAbhishek Sur6-Aug-09 10:35 
QuestionDataReader & Placeholder Pin
comp_j6-Aug-09 8:22
comp_j6-Aug-09 8:22 
AnswerRe: DataReader & Placeholder Pin
Abhijit Jana6-Aug-09 8:30
professionalAbhijit Jana6-Aug-09 8:30 
GeneralRe: DataReader & Placeholder Pin
comp_j6-Aug-09 9:11
comp_j6-Aug-09 9:11 
AnswerRe: DataReader & Placeholder Pin
Abhishek Sur6-Aug-09 9:30
professionalAbhishek Sur6-Aug-09 9:30 
GeneralRe: DataReader & Placeholder Pin
comp_j6-Aug-09 10:18
comp_j6-Aug-09 10:18 
GeneralRe: DataReader & Placeholder Pin
Abhishek Sur6-Aug-09 10:36
professionalAbhishek Sur6-Aug-09 10:36 
Questionasp.net based forum Pin
benams6-Aug-09 7:33
benams6-Aug-09 7:33 
AnswerRe: asp.net based forum Pin
Abhijit Jana6-Aug-09 8:05
professionalAbhijit Jana6-Aug-09 8:05 
AnswerRe: asp.net based forum Pin
AprNgp6-Aug-09 8:46
AprNgp6-Aug-09 8:46 
AnswerRe: asp.net based forum Pin
Abhishek Sur6-Aug-09 9:41
professionalAbhishek Sur6-Aug-09 9:41 
QuestionDatetime problem Pin
greendragons6-Aug-09 7:11
greendragons6-Aug-09 7:11 
AnswerRe: Datetime problem Pin
Abhijit Jana6-Aug-09 7:26
professionalAbhijit Jana6-Aug-09 7:26 
GeneralRe: Datetime problem Pin
greendragons6-Aug-09 7:30
greendragons6-Aug-09 7:30 
GeneralRe: Datetime problem Pin
Abhijit Jana6-Aug-09 7:48
professionalAbhijit Jana6-Aug-09 7:48 

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.