Click here to Skip to main content
15,899,314 members

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