ASPX Complete Code:- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <html xmlns="http://www.w3.org/1999/xhtml"> <head id="Head1" runat="server"> <title>Reset all fields using jQuery</title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script type="text/javascript"> function resetAllControls() { $("#form1").find('input:text, input:password, input:file, select, textarea').val(''); $("#form1").find('input:radio, input:checkbox').prop('checked', false).prop('selected', false); }; </script> </head> <body> <form id="form1" runat="server"> <div> <fieldset style="width: 370px"> <legend>Application form</legend> <div> <table cellspacing="2"> <tr> <td>Full Name ..

Read more

ASPX Code:- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <html xmlns="http://www.w3.org/1999/xhtml"> <head id="Head1" runat="server"> <title></title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script> <style type="text/css"> .messagealert { width: 100%; position: fixed; top:0px; z-index: 100000; padding: 0; font-size: 15px; } </style> <script type="text/javascript"> function ShowMessage(message, messagetype) { var cssclass; switch (messagetype) ..

Read more

<%@ WebHandler Language="C#" Class="Handler" %> using System; using System.Web; using System.Web.SessionState; public class Handler : IHttpHandler , IReadOnlySessionState , IRequiresSessionState { public void ProcessRequest (HttpContext context) { context.Response.ContentType = "text/plain"; context.Response.Write("Hello World"); } public bool IsReusable { get { return false; } ..

Read more

Step 1: Call the page where you code for image merging : Step 2:  Add the below code in code behind:- using System.Drawing; using System.Drawing.Drawing2D; using System.Drawing.Imaging; using System.IO; protected void Page_Load(object sender, EventArgs e) { string ThumbnailPath = Server.MapPath(@"images/testimage.jpg"); string watermark =Server.MapPath(@"images/watermark.png"); drawimagewm(ThumbnailPath, watermark, 50, 50); } public void drawimage(string imageurl, string watermark, int startx, int ..

Read more

Step 1: Call the page where you code for image merging : Image1.ImageUrl = "dynamicimage.aspx"; Step 2: Dynamic Code for image generation and merging (dynamicimage.aspx/dynamicimage.aspx.cs) using System.Drawing; using System.Drawing.Drawing2D; using System.Drawing.Imaging; using System.IO; protected void Page_Load(object sender, EventArgs e) { string testimage = Server.MapPath(@"images/het_image.jpg"); getimage(testimage, 400, 400); // can set imageurl, max-width and max-height using query string… ..

Read more