Discussion:
關於SelectParameters
(时间太久无法回复)
unknown
2006-07-04 09:50:01 UTC
Permalink
ProviderName="<%$ ConnectionStrings:salaryConnectionString.ProviderName %>"
SelectCommand="SELECT * FROM [salary_data] WHERE ([userid] = ?)">
<SelectParameters>


</SelectParameters>

請問我要怎麼寫selectparameters裡的userid項目,才能select * from salary_data where userid=
Context.User.Identity.Name
unknown
2006-07-05 00:32:01 UTC
Permalink
<SelectParameters>
<asp:ProfileParameter Name="userid" PropertyName="UserName"
Type="String" />
</SelectParameters>

"飛俠阿達" 來函:
Post by unknown
ProviderName="<%$ ConnectionStrings:salaryConnectionString.ProviderName %>"
SelectCommand="SELECT * FROM [salary_data] WHERE ([userid] = ?)">
<SelectParameters>
</SelectParameters>
請問我要怎麼寫selectparameters裡的userid項目,才能select * from salary_data where userid=
Context.User.Identity.Name
Loading...