Click here to Skip to main content
14,921,505 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 asp.net 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)

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

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

Thanks in Advance,
Shawon Mahmud
Posted

Hi;

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.
   
Comments
Emon Mahmud 29-Apr-12 5:15am
   
I want your valuable solution. Please help me as soon as your shortest possible time.
XML
<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>



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

                dbmanager.Connect(connectionStr);
                string strEncPass = dbmanager.GetSingleString(&quot;Select isnull(UsrPassword,&#39;&#39;) from Userlist Where UsrUserID = &#39;&quot;+ UID +&quot;&#39; &quot;);
                dbmanager.Disconnect();
                if (STLPasswordEncryptDecrypt.GetInstance().GetDecryptedUserPwd(strEncPass) == UPass)
                {
                    _validUserInfo = true;
                    return _validUserInfo;
                }
                else
                {
                    return _validUserInfo;
                }
            }</pre>
   

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




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