Monday, February 4, 2008

Dotnet telephonic interivew

Satvik attended a telephonic interview from Wep India Peripherals. It was pure technical. first they asked me to describe about my current job, current CTC, Expected CTS and whether willing to relocate? like that...after that they asked me whether i am ready for a technical interview now (day before yesterday HR called up me to inform abt the telephonic interview). and they asked me to rate myself from 1-10 for sql server, asp.net.
here r the questions they asked. just for ur reference

ASP.NET
1) Difference between Server.Transfer and Response.Redirect?
2) Directives in .NET? - (Page directive & Error Directive)
3) Explain about Web.Config file?
4) How many web.config file can be used with an application?
5) Page level tracing and application level tracing?
6) Explain about ViewState and what will happen if view state is false?
7) Explain about Dataview?
8) What is Ispostback?
9) Use of datagrid and its major properties?
10) How dataset differ from data reader?
11) How to implement polymorphism in .NET?
12) Explain about the use of Ctype and its Syntax?
13) What is shared functions?
14) How to create xml using Dataset?
15) Explain about Global Assembly cache?
16) Where the compiled dll file stored?
17) Explain about garbage collectors?
18) How to register shared assembly?
19) Optional parameters in .NET?

SQL Server 2000
1) What are cursors?
2) What are triggers?
3) How to specify parameters in a stored procedure?
4) Marks of the students are stored in a table called marks.
How to find the row containing the second largest mark from the table using sql query?
there might have been more ques from sql server.but this is all i remember
finally they asked me if i am selected how soon i can join with them? and they told if am selected from this round next round will be hands on, for that i have to appear in person...and they told they will inform me soon about next round through mail. it lasted around 45 min. ok Now am waiting for that.

Thursday, January 17, 2008

What is Google Adsense

What Is Adsense

Adsense is a contextual advertising program by Google which allows website publishers to generate revenue from their sites by placing ads from the Google Adwords network on them. Each time these ads are clicked on by one of your visitors you earn a share of the revenue that Google makes from charging that particular advertiser.

Below is a summary of how the program works and the steps you will need to take to implement it.

1. You join Adsense and on acceptance into the program become an Adsense Publisher.
You will now have your own Adsense account in which you will be able to create the ad code to place on your website and monitor the results of your campaigns.

2. Create your custom Adsense javascript code:

You can do this by logging into your account or create a new google adsense account inside which you will be able to choose the particular ad format and ad color that you want to place on your website.

3. You can then place this code inside your website template:

Make sure you've chosen an ad format which will fit into the space available in your template. Once you have uploaded your page to your server the Adsense ads will automatically be generated.

4. Google's content matching technology will deliver ads that are relevant to the page content you have placed the code on:

It may take anywhere from a few minutes to an hour but Google will start delivering ads that match your content. This is the real perk of Adsense - ads that match the content of your page so that they are relevant to what your visitors are reading and thinking about at the time and so more likely to be clicked on.

In Google's own words:

"Google AdSense™ automatically delivers text and image ads that are precisely targeted to your site and your site content—ads so well-matched, in fact, that your readers will actually find them useful"

Friday, January 11, 2008

Auto Scrolling the Text Content

Call this function on the button click or other controls
//To auto scroll textbox

function autoScroll()
{ //alert("Auto ");
var d=document;
var ta, rng;
if(d.all){
ta=d.all["txtResult"];
if(ta && ta.createTextRange)
{
rng=ta.createTextRange();
//alert(rng);
rng.collapse(false);
rng.select();
}
}
}

getting the cursor position in the textarea javascript

getting the cursor position in the textarea by using java script



//script type="text/javascript"
function s(el){
var sel, rng, r2, i=-1;

if(typeof el.selectionStart=="number") {
i=el.selectionStart;
} else if(document.selection && el.createTextRange) {
sel=document.selection;
if(sel){
r2=sel.createRange();
rng=el.createTextRange();
rng.setEndPoint("EndToStart", r2);
i=rng.text.length;
}
} else {
el.onkeyup=null;
el.onclick=null;
}

el.form.elements["position"].value=i;
}
/script>