Hi Experts i have some interview questions with me and want correct ans for this questions can any one of you provide me correct ans plz :)
1) In which database sql server session will be stored?
2) how to call javascript from c# code under button_click without using Button1.Attributes is there any method?
3)CCW,RCW why to use com components when we can manage everything with dlls?
4)if we try to load the data in database if error occurs that should be displayed when we click button through javascript?
5)How many different types of attributes that is available in database?
6) What are entity sets?
7) What are composite attributes? Explain with one example?
8)Define NULL values? How to represent it?
Thanks in advance
Siri
Loading

Vishnu BhangalePosted Mar 19, 2015, 8:17 AM
For 2nd you can use
protected void Button1_Click(object sender, EventArgs e)
{
Page.ClientScript.RegisterStartupScript(this.GetType(), "myScript", "alert('Your Message');", true);
}
Khargesh RajputPosted Mar 19, 2015, 6:37 AM
use
Page.ClientScript.RegisterStartupScript like below
protected void Button_Click(object sender, EventArgs e)
{
Page.ClientScript.RegisterStartupScript(this.GetType(), "myScript", "Function();", true);
}
Sheila GreenPosted Mar 19, 2015, 6:09 AM
6) refer: https://msdn.microsoft.com/en-us/library/vstudio/ee382830%28v=vs.100%29.aspx
7) Well composite attributes contain two or more other attributes, but to my understanding there is no way to achieve this in .NET because essentially you would want to inherit from more than one class and that is not possible.
8) object nothing = null;I would also recommend you to prepare for an interview with online programming tests.
For example try solving these C# coding tests.
Also since your questions are somewhat web related you could try these coding tests for HTML, CSS and JS as well.
Jignesh TrivediPosted Jan 31, 2013, 4:07 AM
1) ASPState
2) yes you can write following code.
protected void print_click(object sender,eventargs e)
{
string str="";
Page.ClientScript.RegisterStartupScript(this.GetType(), "Script", str, false);
}
it is call you script after executing server side code.
3)CCW and RCW is used to call unmanagecode from manage code.
Suppose you integrate some old hardware in you .net application so hardware device dll is a COM component, so we cannot call function from DLL. So .net provide CCW and RCW
refer for more detail.
http://msdn.microsoft.com/en-us/library/8bwh56xe.aspx
http://msdn.microsoft.com/en-us/library/f07c8z1c.aspx
4)if you are using Jquery ajax call, in this function you may define "error" to catch error.
http://www.codeproject.com/Articles/224827/Jquery-Ajax-Calling-functions
5) refer http://msdn.microsoft.com/en-us/library/z28bh0b5%28v=vs.80%29.aspx
6) are you asking about entity framework?
7)are you looking in which technology?
8) not get you quesion..