• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 357
  • Last Modified:

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

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

1 Solution
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.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Network Scalability - Handle Complex Environments

Monitor your entire network from a single platform. Free 30 Day Trial Now!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now