c# - refresh captcha displayed in image tag wp8 xaml -


i displaying captcha url in xaml this

<image name="captcha" source="http://lenovo-pc/vitforums/captcha.php" margin="108,146,80,262"></image> 

where source php script on local computer on lan .. want refresh captcha image url when click refresh button .. how can in advance

just reset source new uri unique each time, example adding current time querystring parameter this:

private void refresh_click(object sender, routedeventargs e) {     captcha.source = new bitmapimage(new uri("http://lenovo-pc/vitforums/captcha.php?t=" + datetime.now.ticks, urikind.absolute)); } 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -