Click here to Skip to main content
16,023,339 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I have a grid with 20 columns.
Stored Proc :- exec usp_getdata @ID= NULL,@Reportdate='03/01/2012'
Takes 2 parameters
But in the end grid contains only Default values with
VB
Reportdate='03/01/2012'


I want to send a parameter to that stored proc using a calender,so that i can get the selected results.
Please guide me to implement this .

Thankyou....
Posted
Comments
[no name] 19-Jun-12 14:16pm    
Like the other questions you ask, what have you tried?
varaprasadreddy 19-Jun-12 14:27pm    
I think you need to add calendar control to gridview if i was correct.
myansweris 19-Jun-12 14:28pm    
place the calender with submit button ... Code<cc1:Button id="bt1" runat="server" önclicl="btnsubmit_click">
codebehind:-
sqldatasource.selectparameters.clear(); calendar1.databind(); lb1test.test =claender1.selectddate.tostring(); sqldatasource.selectparameters["ReportDate"].Defaultvalue = txtstartdate.text.tostring(); sqldatasource.select(new datasourceSelectArguments()); Grid1.DataBind();

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900