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

Passing parameters value to SqlDataSource

Hi Experts,
How do I pass a value to a paramater of a SqlDataSource in code? Is there any other way besides using the DefaultValue?

Thanks
CandidateDataSource.UpdateParameters.Item("DateUpdated").DefaultValue = Date.Today
                CandidateDataSource.Update()

Open in new window

0
noobe1
Asked:
noobe1
1 Solution
 
bele04Commented:
Yes. that would be the only way since that property was specifically provided for in case the value the parameter is bounded to is uninitialized.

0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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