Click here to Skip to main content
15,889,335 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Data Controls in ASP.NET Pin
jkmehmi30-Sep-12 8:15
jkmehmi30-Sep-12 8:15 
Questionasp.net pdf file Pin
Member 946996328-Sep-12 22:44
Member 946996328-Sep-12 22:44 
AnswerRe: asp.net pdf file Pin
Sandeep Mewara28-Sep-12 23:23
mveSandeep Mewara28-Sep-12 23:23 
GeneralFile Upload control in Asp .net Page methods Pin
kkrangs28-Sep-12 22:02
kkrangs28-Sep-12 22:02 
GeneralRe: File Upload control in Asp .net Page methods Pin
jkirkerx29-Sep-12 19:30
professionaljkirkerx29-Sep-12 19:30 
GeneralRe: File Upload control in Asp .net Page methods Pin
kkrangs30-Sep-12 22:04
kkrangs30-Sep-12 22:04 
GeneralRe: File Upload control in Asp .net Page methods Pin
jkirkerx1-Oct-12 6:08
professionaljkirkerx1-Oct-12 6:08 
GeneralRe: File Upload control in Asp .net Page methods Pin
jkirkerx1-Oct-12 7:41
professionaljkirkerx1-Oct-12 7:41 
I'm not running html5, but while debugging your sample, I ran across this datasheet

http://msdn.microsoft.com/en-us/library/ie/ff975241%28v=vs.85%29.aspx[^]

This is probably a better sample for IE. OK, onLoad you Draw() the image in the canvas, then click the button to get the data that was drawn image.

<!DOCTYPE html><html>
<head>
  <script type="text/javascript">
function draw()
{
// Create some graphics.    
  var canvas = document.getElementById("MyCanvas");
  if (canvas.getContext) 
    {
 	var ctx = canvas.getContext("2d");
    ctx.fillStyle="white";
    ctx.beginPath();
    ctx.rect (5,5,300,250);
    ctx.fill(); 
    ctx.stroke();
    ctx.arc(150,150,100,0,Math.PI, false); 
    ctx.stroke();
    }  
}
function putImage()
{
  var canvas1 = document.getElementById("MyCanvas");        
  if (canvas1.getContext) {
 	 var ctx = canvas1.getContext("2d");                // Get the context for the canvas.
     var myImage = canvas1.toDataURL("image/png");      // Get the data as an image.
  }
  var imageElement = document.getElementById("MyPix");  // Get the img object.
  imageElement.src = myImage;                           // Set the src to data from the canvas.
  
}
  </script>
</head>
<body onload="draw()" bgcolor="lightgray" >
      <div>
        <button onclick="putImage()">Copy graphic using toDataURL</button>        
      </div>
      <div>
        <canvas id="MyCanvas" width="400" height="400" > </canvas>
      <img id="MyPix">
      </div>
  </body>
</html> 

GeneralRe: File Upload control in Asp .net Page methods Pin
kkrangs10-Oct-12 4:44
kkrangs10-Oct-12 4:44 
GeneralRe: File Upload control in Asp .net Page methods Pin
jkirkerx10-Oct-12 6:42
professionaljkirkerx10-Oct-12 6:42 
GeneralRe: File Upload control in Asp .net Page methods Pin
sarathtamil8-Oct-12 23:59
sarathtamil8-Oct-12 23:59 
GeneralRe: File Upload control in Asp .net Page methods Pin
kkrangs10-Oct-12 5:00
kkrangs10-Oct-12 5:00 
QuestionI am facing error, BC30451: Name 'this' is not declared Pin
Anjani Kant28-Sep-12 20:38
Anjani Kant28-Sep-12 20:38 
AnswerRe: I am facing error, BC30451: Name 'this' is not declared Pin
Sandeep Mewara28-Sep-12 23:26
mveSandeep Mewara28-Sep-12 23:26 
Questionhelp with regular expression Pin
Jassim Rahma28-Sep-12 7:58
Jassim Rahma28-Sep-12 7:58 
AnswerRe: help with regular expression Pin
Richard MacCutchan28-Sep-12 22:20
mveRichard MacCutchan28-Sep-12 22:20 
GeneralRe: help with regular expression Pin
jkirkerx29-Sep-12 19:48
professionaljkirkerx29-Sep-12 19:48 
GeneralRe: help with regular expression Pin
Richard MacCutchan29-Sep-12 21:40
mveRichard MacCutchan29-Sep-12 21:40 
GeneralRe: help with regular expression Pin
jkirkerx30-Sep-12 7:48
professionaljkirkerx30-Sep-12 7:48 
AnswerRe: help with regular expression Pin
jkirkerx29-Sep-12 19:40
professionaljkirkerx29-Sep-12 19:40 
AnswerRe: help with regular expression Pin
Bernhard Hiller30-Sep-12 22:45
Bernhard Hiller30-Sep-12 22:45 
Questiontwo ASPxButton in one line Pin
Jassim Rahma28-Sep-12 6:44
Jassim Rahma28-Sep-12 6:44 
AnswerRe: two ASPxButton in one line Pin
Sandeep Mewara28-Sep-12 23:29
mveSandeep Mewara28-Sep-12 23:29 
AnswerRe: two ASPxButton in one line Pin
gopal pradhan8-Nov-12 23:11
gopal pradhan8-Nov-12 23:11 
QuestionLoop through NavBarItems Pin
Jassim Rahma28-Sep-12 3:40
Jassim Rahma28-Sep-12 3:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.