How to implement Call Back?

Posted by Laghaterohan under Regular Expressions on 4/13/2011 | Points: 10 | Views : 1894 | Status : [Member] | Replies : 4
Hello i want to create an user control .
In that, i will have a textbox Roll Number and in a ddl i will have a selected item as Details.
I am having a table in database as students_history

When i will enter the student roll no and then select Details from ddl then it should fetch from the database the record related to that particular student and display in a table format / html/or label [ in any one of the format]

For this i need to implement call back so that working is faster. May i know how should i actually do this??

Please help...

Best Regards,
Rohan Laghate



Responses

Posted by: SheoNarayan on: 4/13/2011 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
Hi Rohan,

You can do this by using the OnSelectedIndexChanged event of the DropDownList, read http://www.dotnetfunda.com/tutorials/controls/dropdownlist.aspx for more details.

On the selected item change of the DropDownList, you need to fire the server side event and in that event you will need to get the student's details from the database based no the roll number entered.

Thanks

Regards,
Sheo Narayan
http://www.dotnetfunda.com

Laghaterohan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Laghaterohan on: 4/13/2011 [Member] Starter | Points: 25

Up
0
Down
Yes Sheo absolutely we can do it the way you suggested...However, the scenario which i mentioned above is just a sample of many complexities actually involved in the module. So, we have zeroed on implementing the Call Back....Please let me know how should i proceed....Please help me.....i need to compelete that module asap...

Thanks!

Best Regards,
Rohan Laghate

Laghaterohan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Laghaterohan on: 4/13/2011 [Member] Starter | Points: 25

Up
0
Down
Hi Shivprasad,

Can we have a video on Call Back??

Can any one please let me know where can i get to see video of how to implement Call Back [C#] ??


Thanks!

Best Regards,
Rohan Laghate

Laghaterohan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ndebata on: 4/13/2011 [Member] Starter | Points: 25

Up
0
Down
Hi Rohan,

Please take a look at the following link.
call the CallServer function in onchange of textbox.

http://msdn.microsoft.com/en-us/library/ms178208.aspx


Regards,
Debata

Laghaterohan, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response