Interview Questions...............

Posted by Anu_Dgr8 under Interview Questions on 3/28/2012 | Points: 10 | Views : 1371 | Status : [Member] | Replies : 11
1> Can a class implement multiple interfaces in C#?
2>How to kill Session?
3>Where does Viewstate data get stored?
4>How to call a Webservice using Javascript?
5>What are the problems you faced using Update Panel?

Thanks and Regards,
Hoosha Boosha



Responses

Posted by: Pmithun121085 on: 3/28/2012 [Member] Starter | Points: 25

Up
0
Down
1> Can a class implement multiple interfaces in C#?-Yes
2>How to kill Session?
3>Where does Viewstate data get stored?-Hidden Field
4>How to call a Webservice using Javascript?-<%#servicenamespace%>
5>What are the problems you faced using Update Panel?

Mithun P

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

Posted by: Sabarimahesh on: 3/28/2012 [Member] Bronze | Points: 25

Up
0
Down
Hi Anu_Dgr8

Answer:
1)Yes
2)session.abandon()
3)All viewstate data is stored on the client and is submitted back to the server when the user executes a postback.
viewstate stored in Hidden Field
4) You Having The Good Link Herehttp://www.semenoff.dk/en/Code-Corner/ASP.Net.AJAX/WebService-From-JavaScript.aspx
5)I think you are using the jquery plug-ins in the document ready function. But document ready will fire only once, not during partial postbacks. You need to call some functions after each partial post back is happend.

try initializing your jquery methods inside the below function

<script type="text/javascript">
Sys.Application.add_load(function() { . your initialization code.. });
</script>

Life is a Race
Thanks & Regards
By
Sabari Mahesh P M

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

Posted by: Rajni.Shekhar on: 3/28/2012 [Member] Bronze | Points: 25

Up
0
Down
When you have a textbox in update panel and a button outside from update pannel. If you want to validate textbox on button click, it will not reflect.

Thanks,
Rajni Shekhar

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

Posted by: Anu_Dgr8 on: 3/29/2012 [Member] Starter | Points: 25

Up
0
Down
Rajni.Shekhar ,

I tried what you said.I have done validation on Server side Button CLick.Its workin fine.

Can you give Example ?

Thanks and Regards,
Hoosha Boosha

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

Posted by: Rajni.Shekhar on: 3/29/2012 [Member] Bronze | Points: 25

Up
0
Down
Hi Anu,
If it is working fine, what example you wanted, actually i am not getting.

Thanks,
Rajni Shekhar

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

Posted by: Anu_Dgr8 on: 3/29/2012 [Member] Starter | Points: 25

Up
0
Down
Question is as follows:
5>What are the problems you faced using Update Panel? And how you handled those issues? Give Examples.

Thanks and Regards,
Hoosha Boosha

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

Posted by: Anu_Dgr8 on: 3/29/2012 [Member] Starter | Points: 25

Up
0
Down
Got the following good link for Calling Webservice using Javascript:
http://www.codeproject.com/Tips/103215/Webservice-Using-Javascript.aspx

Thanks and Regards,
Hoosha Boosha

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

Posted by: Anu_Dgr8 on: 3/30/2012 [Member] Starter | Points: 25

Up
0
Down
Regarding the 5th QUestion,I have an Answer,But dont know how to handle that issue:

I have a Submit button inside the Update Panel and An Export to Excel Button outside of Update Panel.
And OnClick event of Submit button,i am trying to set the Visibility of Export Button to be false.
But its not happening.Why is this happening? And how to handle this issue.
Please help.

Thanks and Regards,
Hoosha Boosha

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

Posted by: Sabarimahesh on: 4/3/2012 [Member] Bronze | Points: 25

Up
0
Down
Anu_Dgr8

hi

Have you satisfied with my Answer

Life is a Race
Thanks & Regards
By
Sabari Mahesh P M

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

Posted by: Gaur1982 on: 5/10/2012 [Member] Starter | Points: 25

Up
0
Down
Check it out lots of Interview Question : http://planetofcoders.com/category/interview-question/

Gaurav Agrawal
http://www.planetofcoders.com/

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

Posted by: Sakthi.Singaravel on: 5/10/2012 [Member] Silver | Points: 25

Up
0
Down
http://nareshkamuni.blogspot.in/2011/12/c-interview-questions.html

Regards,
Singaravel M

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

Login to post response