<canvas id="colors_sketch" width="500" height="200">
<asp:Button id="submit_button" Text="Submit" CssClass="btn btn-success" runat="server" OnClick="getValue"/>
protected void getValue(object sender, EventArgs e)
{
var base64 = colors_sketch.ToString;
}
I want to convert the user drawing to base64, when I add run = server
in colors_sketch
, I fail to do the drawing. Any ideas how to do this?
I want save the base64 into database when user clicks Submit.