i have certain validation check via a jquery/javascript in asp.net 3.5 vb.net
and on submitt button i have following code (see my next post in same thread)Code:<script type="text/javascript"> $(function() { $('#<%= btn_submitt.ClientID %>').click(function() { valid = true; var checkedControls = $('#<%= CheckBoxList1.ClientID %>').find('input:checkbox:checked'); var selected = jQuery('#<%= Rdbtn_hotelbook.ClientID %> input:checked').val(); if (checkedControls.length == 0) { alert('Please select atleast one checkbox from Company Type'); } else if (selected == 0) { var checkedControls1 = $('#<%= hotel_requirement_Types.ClientID %>').find('input:checkbox:checked'); if (checkedControls1.length == 0) { alert('Please select atleast one from hotel requirement'); } // alert('u need to explore placeholder'); } }); return false; }); </script>
it is validation through jquery/javascript but when it comes to code behind it insert when else conditon is true . now the problem is that i want to pass certain variable from jquery/javascript to code behind to validate that u can isnert to tables(mind that i am inserting stuff to multiple table) the main table is users .and it returns userid and i insert into another tables by using same userid.
i hope i m quite clear about my problem if it is still not please post me back
any urgent reply would be really helpful