Is it possible to use a variable as an update parameter in asp.net?
I have the page number to be updated stored in a variable called ‘mypagenum’, how would I write an update parameter using that value.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can do this in two ways:
1) Using onUpdating event:
2) Setting the default value of the parameter:
SQL Data Source object definition may look like this: