?
Solved

How do I sumbit the selected dates value as paramters in submit button for a stored procedure?

Posted on 2011-10-26
3
Medium Priority
?
355 Views
Last Modified: 2012-08-14
I am having the user enter two dates (start date and end date) and then submit these values to the stored procedure. The submission is done through the submit on click event. The values are passed as a parameter in the report view page and populated using grid view.

    Protected Sub btnSumbit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSumbit.Click
        txtStartDate.Text = ("StartDate").ToString
        txtEndDate.Text = ("EndDate").ToString

    End Sub

0
Comment
Question by:patelankitm
1 Comment
 
LVL 12

Accepted Solution

by:
CmdoProg2 earned 2000 total points
ID: 37037457
I'm confused on your question.  Your code show assigning values to the textboxes on the submit,not reading the value.
  How are you passing the values to the separate page that has the report view and grid view? (QueryString, Cross-post, Session, etc.)  Or is this your question?  Each of these methods have their pros and cons.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, we’ll look at how to deploy ProxySQL.
Creating a Cordova application which allow user to save to/load from his Dropbox account the application database.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…

569 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question