Click here to Skip to main content
12,691,777 members (28,885 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: ASP.NET MVC
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 24-Apr-12 20:37pm
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Comments
Emon Mahmud 29-Apr-12 5:15am
   
I want your valuable solution. Please help me as soon as your shortest possible time.
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

<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>
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.170117.1 | Last Updated 12 Nov 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100