Take the 2-minute tour ×  I have a sandboxed solution in which I
need to pass data from javascript to server side. Can anyone
suggest me with help links or any ideas?  share|improve this
question what kind of sandbox solution you are working on? are
you deploying any visual webpart as sandbox ? –  Arsalan Adam
Khatri Oct 15 '12 at 11:57 Yes. I em working with visual webpart
in sandboxed solution –  sharmila Oct 15 '12 at 11:58 Did you
see this? sharepoint.stackexchange.com/a/45548/627 –  eirikb Oct
15 '12 at 12:21  2 Answers 2   You can take a HiddenField in
Visual WebPart and inside Javascript you can access it like:
<script type="text/javascript"> function setHiddenField()
document.getElementById("<%=hiddenFieldID.ClientID %>").value =
"your-value";  And you can access it on server side like:
hiddenFieldID.Value  But remember, javascript should be in the
Visual WebPart as well.. If you want to do this from page and
not server side, then you can take HTML input control and access
it through its id.. Let