15,899,314 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 10582972 (Top 4 by date)
Member 10582972
12-Feb-15 13:23pm
View
hi,thanks i will use json call using ajax,but please tell me can i make a synchronous call on Sys.WebForms.PageRequestManager.getInstance().beginRequest so that i can update data before any postback ??
Member 10582972
17-Nov-14 14:23pm
View
Thank you for reply but i used string parameter because matched Sno is comming from aspx page via jquery with a ajax get request.
Your Solutions are good,but SNO property may change from class to class,so i had to use reflection for the purpose
Member 10582972
13-Nov-14 15:27pm
View
I have only 1 class Customer and SNO is its property,so all object will have SNO property
Member 10582972
11-Nov-14 13:31pm
View
Thanks for Reply.
i`m not able to see any difference between my code
<pre lang="c#"> bool isEnabled = (bool)type.GetProperty("Enabled").GetValue(childControl, null);
bool isVisible = (bool)type.GetProperty("Visible").GetValue(childControl, null);</pre>
and your`s code
<pre lang="c#">PropertyInfo propertyInfo = controlType.GetProperty("Enabled");
// Get actual value from the control object
object val = propertyInfo.GetValue(control);
bool isEnabled = (bool) val;
propertyInfo = controlType.GetProperty("Visible");
// Get actual value from the control object
val = propertyInfo.GetValue(control);
bool isVisible = (bool) val; </pre>
both is the same code,only style of writing is different
and also
GetValue
Method cannot take 1 parameter in c# 4.0