BarCode custom control

puma

Freshman
Joined
May 17, 2004
Messages
25
Location
Bucharest, Romania
Hello. I'm relatively new to ASP.Net, so please don't laugh at my post :p

I recently made an ASP custom control that generates a barcode. It has a property which holds the numeric data for the code, and I used GDI+ to create a bitmap which I saved and then set it to the src of an img object in the control.

The problem is that I don't know how (better say when) to refresh the display.

Let's say the control is consumed in a WebForm, the user enters the code in a TextBox and then presses a button. There's no method I can use for the control to refresh the display.
 
You should create a method in your custom control that you can access from the button_OnClick event.
 
Back
Top