Click here to Skip to main content
15,897,704 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Greeting All ,
I have a problem to retreive a value from javascript code , I need this value to test it on my c# code .
I have two checkboxes :
XML
<ul id="childCheckBox">
     <a id ="page" href="#"><input id="onPage" type="checkbox" class="childCheckBox" value="#" />@ApplicationResources.PostOnPage</a>
     <a id ="mur" href="#"><input id="onWall" type="checkbox" class="childCheckBox" value="#"/>@ApplicationResources.PostOnWall</a>
  </ul>
  </div>

If the first is checked a function will be executed and if the second will be checked then an other function will be executed .
How can I test which one is checked
Here id my C# code :
C#
var joboffer = manager.JobOffer.GetJobOfferById(id);

if (Test)

    FBEngine.PostJob(joboffer);
}
else
{
    FBEngine.PostJobOnWall(joboffer);
}

I need Help please !
Thanks in advance
Posted

1 solution

first you get hidden field ,set the value of it then access it on server side.
 
Share this answer
 
Comments
amiach 20-May-14 5:31am    
I should get the value checked on controller

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