title: conditions in asp.net mvc
body: <p>i have user control which access the value from querystring and i have made view model acording to this value and when i access the value from query it is not accessing the value of this view model </p>
  
  <pre><code>&lt;%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Menu.ascx.cs" Inherits="ITClassifieds.Menu" %&gt;
  &lt;%@ Import Namespace="ITClassifieds.ViewModels" %&gt;
  &lt;%@ Import Namespace="ITClassifieds.Models" %&gt;
  
  &lt;%  ClassifiedEntities db = new ClassifiedEntities();
  
       string returnvalue = "";
    if (Request.QueryString["resumeid"] != null) {%&gt;
  
          returnvalue = Request.QueryString["resumeid"].ToString();
          int resume=Convert.ToInt32(returnvalue);
         var resumeed = (from result in db.USP_ResumeWizard_LoadingData(resume)
                                              select new USP_ResumeWizard_LoadingData_Result
                                              {
                                                  ExistsResumeTitle = result.ExistsResumeTitle,
                                                  ExistsAdditionalInfo = result.ExistsAdditionalInfo,
                                                  ExistsEducation = result.ExistsEducation,
                                                  ExistsIdealJob = result.ExistsIdealJob,
                                                  ExistsAffiliations = result.ExistsAffiliations,
                                                  ExistsPublishResume = result.ExistsPublishResume,
                                                  ExistsReferences = result.ExistsReferences,
                                                  ExistsSkills = result.ExistsSkills,
                                                  ExistsTargetLocation = result.ExistsTargetLocation,
                                                  ExistsIdealCompany = result.ExistsIdealCompany,
                                                  ExistsWorkExperience = result.ExistsWorkExperience,
                                                  ExistsWorkStatus = result.ExistsWorkStatus
                                              }).SingleOrDefault(); 
  USP_ResumeWizard_LoadingData_Result usp=(USP_ResumeWizard_LoadingData_Result)resumeed;
  bool resumetitle = (bool)usp.ExistsResumeTitle;
  bool additionalinfo = (bool)usp.ExistsAdditionalInfo;
  bool education = (bool)usp.ExistsEducation;
  bool idealjob = (bool)usp.ExistsIdealJob ;
  bool affiliations = (bool)usp. ExistsAffiliations;
  bool publishresume = (bool)usp.ExistsPublishResume;
  bool references = (bool)usp.ExistsReferences;
  bool skills = (bool)usp.ExistsSkills;
  bool targetlocation = (bool)usp.ExistsTargetLocation;
  bool idealcompany = (bool)usp.ExistsIdealCompany;
  bool workexperience = (bool)usp.ExistsWorkExperience;
  bool workstatus=(bool)usp.ExistsWorkStatus;
  </code></pre>
  
  <p>if (resumetitle==true)
   {%>
           
           
                Resumename
  
                          &lt;% }else{  %>
                          Resumename
                          &lt;% } %> </p>
  
  <pre><code>&lt;% }%&gt; 
  </code></pre>
  
  <p>it is showing the error end of file expected what can i do</p>