Click here to Skip to main content
15,748,098 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello every body

i am devoloping an application with mvc 3 (C#)

I have failed to show check box in PDF when downloading PDF format.
But it's html text work fine and show check box as webpage.

in codebehind i am writing like this

Nature of Employment @Html.CheckBoxFor(m => m.NatureOfEmploymentPermanent)

@Html.CheckBoxFor(m => m.NatureOfEmploymentContractual)

@Html.CheckBoxFor(m => m.NatureOfEmploymentProbation)
On Probation
So can you any one tell me where is wrong?

Thanks in Advance,
Shawon Mahmud


you can use itextshrp "Acrofeild", in that you get varieties of form feilds which can be shown in PDF after exporting like check boxes , radio buttons and even drop down list.

if you want any details of acrofeilds then reply me i will help you in this.
Share this answer
Emon Mahmud 29-Apr-12 5:15am    
I want your valuable solution. Please help me as soon as your shortest possible time.
<pre lang="cs">if (dashboardObj.CheckUserlogonValidity(UserName,Password) == false)
                TempData[&quot;Message&quot;] = &quot;Invalid User ID/ Password.&quot;;
                TempData[&quot;IsSuccess&quot;] = false;
                return RedirectToAction(&quot;Index&quot;);

<pre lang="cs">public bool CheckUserlogonValidity(string UID,string UPass)
                bool _validUserInfo = false;

                string strEncPass = dbmanager.GetSingleString(&quot;Select isnull(UsrPassword,&#39;&#39;) from Userlist Where UsrUserID = &#39;&quot;+ UID +&quot;&#39; &quot;);
                if (STLPasswordEncryptDecrypt.GetInstance().GetDecryptedUserPwd(strEncPass) == UPass)
                    _validUserInfo = true;
                    return _validUserInfo;
                    return _validUserInfo;
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900