Sunday 11 October 2015

PDF Watermark in MVC

Hello friends

In this example, we will learn how to add watermark to existing pdf file in Asp.net MVC.

To download this example Click here

Steps:
1.Add an empty MVC Project.
2.Add reference of itextsharp.dll assembly.
3.Add PdfWaterMark controller.
4.Create View For Index Action.
5.Following is the code in PdfWaterMarkController.
6.Following is the code in Index.cshtml.
7.Add WaterMark class file in Models Folder with the following code.
8.Add Download folder in your solution to save and create the output file.
9.Following is the screen shots for your help.







If you have any queries regarding this example post ur comment or send mail to ranjeetpatil4545@gmail.com


Thank You

Saturday 30 August 2014

DetailsView CRUD Operations

Hello friends

In this example, we will learn how to perform “CRUD Operations on Detailsview”

In this example, I am using Employee Table

Table script:



Source Code:



C# Code:




Detailsview1_DataBound : In this event when the details view is in 

Insert mode then I'm making EmpId textbox as disable this is why because 

in database i made EmpId column as identity means autoincrement. 

therefore there is no need to give Empid database will automatically get 

it so sending empid is useless.


Detailsview in Readonly Mode:



Detailsview in Edit Mode :


DetailsView in Insert Mode:



If you have any queries regarding this example or Detailsview control post ur comment or send mail to

ranjeetpatil4545@gmail.com


Thank You