public partial class Coordinator_People_Registration_FC : System.Web.UI.Page { public int SiteID { get { return Profile.SiteID ; } set { this.SiteID = value; } }And this is in ASPX:
<asp:SqlDataSource ID="GradesDataSource" ConnectionString="<%$ ConnectionStrings:FCCMSConnectionString %>" SelectCommand="SELECT Grade FROM Grades WHERE SiteID=@SiteID" runat="server"> <SelectParameters> <%-- <asp:ProfileParameter Name="SiteID" PropertyName="SiteID" />--%> <asp:FormParameter Name="SiteID" FormField="SiteID" Type = "Int32" /> </SelectParameters> </asp:SqlDataSource>However, using this FormField as a parameter doesn't seem to work. Using Profile parameter directly seems to work. The question is - would it be possible to use form's field instead? I'd like to be able to save reading Profile settings extra time.