Venkat Govind

Venkat Govind

  • 1.2k
  • 557
  • 67.1k

How to get wotkforceid from this below code

Jul 23 2015 2:25 AM
Hi I am posting Image in Workforce ID Here
 
function UploadPic() {
debugger;
// generate the image data
var canvas = document.getElementById("canvas");
var dataURL = canvas.toDataURL("image/png");
var WorkforceID = document.getElementById("lblid");
// Sending the image data to Server
$.ajax({
type: 'POST',
url: "baseimg.aspx",
data: { imgBase64: dataURL }, WorkforceID1: { WorkforceID: "WorkforceID" },
success: function ()
 
I get Image details from below code but WorkforceID i get Null Value Hi I can get WorkforceID from this ajax post 
 
StreamReader reader = new StreamReader(Request.InputStream);
String Data = Server.UrlDecode(reader.ReadToEnd());
string WorkforceID = Request.Form["WorkforceID"];
reader.Close();