I have a form with 2 textboxes, a calendar, and 2 buttons.
When I click the first button, the calendar pops up and a variable called Cal is assigned the value of 1.
When I click the second button, the calendar pops up and a variable called Cal is assigned the value of 2.
When the calendar is clicked, it checks the value of Cal to see what textbox it should update with it's value - 1 or 2)
I tried this with built in code, and also code behind.
When I press either button, the form go's back to the server to display the calendar, and the value of Cal is lost.
Link9(Paul) told me I should be using code behind, so I created a .vb page and put all my code in it. It still does not keep the value of Cal. What am I doing wrong???
When I click the first button, the calendar pops up and a variable called Cal is assigned the value of 1.
When I click the second button, the calendar pops up and a variable called Cal is assigned the value of 2.
When the calendar is clicked, it checks the value of Cal to see what textbox it should update with it's value - 1 or 2)
I tried this with built in code, and also code behind.
When I press either button, the form go's back to the server to display the calendar, and the value of Cal is lost.
Link9(Paul) told me I should be using code behind, so I created a .vb page and put all my code in it. It still does not keep the value of Cal. What am I doing wrong???