Quick question: How do you set defaultvalue with asp? Here is my code:
<SelectParameters>
<asp:Parameter Name="ApplicationName" DefaultValue="Membership.ApplicationName"/>
</SelectParameters>
What’s the syntax to turn Membership.ApplicationName from a string to actually be parsed?
You can do it in your
Page_Loadmethod like this:(Assuming you have an
SqlDataSourceon the page namedyourSqlDataSource)