TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Sheikh parvaz
NA
199
109.1k
pass array from asp.net to javascript
Apr 29 2015 7:38 AM
Hi,
I have an array in asp.net in page_load method which I want to pass to javascript :
C#:
EmpDBClass empobj = new EmpDBClass();
DataTable dtCheckValue = empobj.dtGetDataTable("EPS_GetBookedValues");
var bookedarray = dtCheckValue.AsEnumerable().Select(r => r.Field<string>("Name")).ToArray();
javascript:
var bookedSeats = <%new System.Web.Script.Serialization.JavaScriptSerializer().Serialize(this.bookedarray);%>
problem is Bookedarray can not be found .
Kindly help
Reply
Answers (
2
)
textbox search change event in jquery datatable.
toolkit question