1. How can you prevent a cleint by using Action method in MVC?
Ans using ChildActionOnly attribute
2. How can you add extra paramtere in a function wihtout updating method in Web API?
Ans: Send non primtive Data in the form of class object , then you can add properties in class.
3. What are child Action method?
Ans:
A ChildAction method is an action method thought its accessible from the View only, if you invoked this action via an URL then it prompts you an error that we will look down the level in this article.
How to use in View
4. What are Mutex and Monitor?
5. Can we use commit with datareader?
6. class abc{
int i=0;
abc(){
i=i+1;
}
}
abc obj = new abc();
If two client access at same time how will you ensure both would get updated value of i.
7. class test
{
int i;
string str;
}
static void main(args[] arg){
int j;
test a = new test();
}
8. Table A contains following data
Id Name
1 A
2 B
3 C
Table B contains following data
Id Name
1
1
2
2
3
3
Update table B with the help of Table A.
Ans using ChildActionOnly attribute
2. How can you add extra paramtere in a function wihtout updating method in Web API?
Ans: Send non primtive Data in the form of class object , then you can add properties in class.
3. What are child Action method?
Ans:
A ChildAction method is an action method thought its accessible from the View only, if you invoked this action via an URL then it prompts you an error that we will look down the level in this article.
How to use in View
@Html.Action("SomeActionName", "SomeController")
But can not call it from url.4. What are Mutex and Monitor?
5. Can we use commit with datareader?
6. class abc{
int i=0;
abc(){
i=i+1;
}
}
abc obj = new abc();
If two client access at same time how will you ensure both would get updated value of i.
7. class test
{
int i;
string str;
}
static void main(args[] arg){
int j;
test a = new test();
}
8. Table A contains following data
Id Name
1 A
2 B
3 C
Table B contains following data
Id Name
1
1
2
2
3
3
Update table B with the help of Table A.
No comments:
Post a Comment