sqldatasource default value
问题 How do I set the default value of a SQLdatasource parameter to the select all <asp:Parameter Name="original_lastsaved" Type="string" defaultvalue="???"/> Thanks for the help. saurabh 回答1: You can do like... SqlDataSource1.SelectParameters["original_lastsaved"].DefaultValue = "Set Value here"; Edit: If you want that when you click the Select All button, it will pick up all of the record and ignore the where clause parameter , then make an overloaded with no parameter and then clear the Select