Thursday, November 29, 2007

Iframe in html

I was behind Iframe this morning,

I was not having any task today,..we had kannada rajyotsava celebration in office,..

I got a good article which explained me Iframe with Ex.

Iframes is also defined as an "Inline Frame". Inline Frames are those frames that are embedded in any part of the main page. It made its debut way back when Microsoft had released 'Internet Explorer v.3.0'. In the initial stages the usefulness of Iframes where limited to local applications which were compatible to the Microsoft browser.

I feel, simply we can say using Iframe, I can open many page in a single main page..

and whatever function we perform on that Iframe will effect only on that particular Iframe and it will not effect the page.


For more details visit
Iframa example link

Tuesday, November 27, 2007

ASP.NET AJAX Overview

I was doing R & D on how efficiently we can load data in grid view and i figured out one Asynchronous method to load data,...using Ajax here is a note on that..

What is Ajax ?


•AJAX (Asynchronous JavaScript and XML), or Ajax, is a web development technique used for creating interactive web applications


• exchange small amounts of data with the server behind the scenes so that the entire web page does not have to be reloaded each time the user requests a change


Before going though Asp.net Ajax let me tell you some defnition of Server controls

The following list describes the most frequently used ASP.NET AJAX server controls



ScriptManager


•Manages script resources for client components, partial-page rendering, localization,
globalization, and custom user scripts. The ScriptManager control is required in order to use the UpdatePanel, UpdateProgress, and Timer controls.


UpdatePanel


Enables you to refresh selected parts of the page, instead of refreshing the whole page by using a synchronous postback.



UpdateProgress


•Provides status information about partial-page updates in UpdatePanel controls.


Timer


•Performs postbacks at defined intervals. You can use the Timer control to post the whole page, or use it together with the UpdatePanel control to perform partial-page updates at a defined interval.

Code Sample
-- This code is need to execute script

-- This is the panel, all the controls inside this panel will get updated asynchronously











-->



-- This will say what to trigger




--- This will perform when the updation is in progress



---------------

---- This is the link button where u say apply filter


---- This code will fire asynchronously

protected void lbFilter_Click(object sender, EventArgs e)
{
FillGridView( txtName.Text );
}


private void FillGridView( string filter )
{
gridViewPersons.DataSource = get dataset ;
gridViewPersons.DataBind();
}



For more details see this
http://msdn2.microsoft.com/en-us/library/bb398874(VS.90).aspx

This code will load the grid with out refreshing page ,..

But, still i am not sure how this will improve performence,..
Will it take more time to load data,..
What happens if i click on other button when this process is executing,..
Need to figure out ..........








Wednesday, November 21, 2007

Scan web page by url with HttpWebRequest method

Scan the web page with HttpWebRequest

After deploying code and html pages to palladium group we found so many broken links in pages, which has become a big problem to rework...SO, .. i create a console application which will run in back end and get the content of of all url and check the url whether its working or not by getting the response ,.. and if it is not working send the mail to content developers .

This is the method to scan url

private string GetContent(string url )
{
try
{
// Place the web request to the server by specifying the URL
wReq = (HttpWebRequest)WebRequest.Create(url);
// No need for a persistant connection
wReq.KeepAlive = false;
wResp = (HttpWebResponse)wReq.GetResponse();
// Display the header of the response
// wResp.Headers.ToString();
// Get a stream to read the body of the response
rStream = wResp.GetResponseStream();
// Needed for looping through the buffer int bufCount = 0;
// Buffer in which we're going to store data coming from the server
byte[] byteBuf = new byte[1024];
// Loop as long as there's data in the buffer
string myOutPut = string.Empty ;
do
{
// Fill the buffer with data
bufCount = rStream.Read(byteBuf, 0, byteBuf.Length);
if (bufCount != 0)
{
// Transform the bytes into ASCII text and append to the textbox
myOutPut += System.Text.Encoding.ASCII.GetString(byteBuf, 0, bufCount);
}
}
while (bufCount > 0);
if(myOutPut.IndexOf("corp.thepalladiumgroup") != -1)
{
return "This Content contains corp.thepalladiumgroup link ";
}
}
catch (Exception ex)
{
if (ex.Message.IndexOf("404") != -1 )
{
return " Error 404 found : Details - " + ex.Message ;
}
else if ( ex.Message.IndexOf("500") != -1)
{
return " Error 500 found : Detais - " + ex.Message ;
}
else
{
return "General Exception : " + ex.Message ;
}
}
return "" ;
}

In actual code I am storing all the url in config ,.. get the items in config ,..loop with all url items and check resoponse , if any error send mail ...

Wednesday, November 14, 2007

Trip to BR Hills

On Saturday 10 th of Novemver 2007 we have gone to Biligiri Rangana Betta ( BR Hills) with my friends Kytha , and Ravi ,…other friends who are supposed come, escaped but trip did not cancel..
We decided to go to BR Hills via T Narasipur – Yalandur , we left mandya around 11 Am and we reached BR Hills at 4 PM its about 120 Km from Mandya.

Few things about BR Hills

The Biligiri Rangaswamy Temple wildlife sanctuary (BRT), is a little gem of astonishing bio-diversity. It spreads over an area of 540 Sq. km and is located between 110 43I and 120 08I N latitudes and 770 01I and 770 15I East longitude. Located at the eastern most edge of the
Western ghats, BRT is considered as biogeographic bridge between the Western and the Eastern ghats. The hills are in the Yelandur taluk of Chamarajanagar district of Karnataka. The hills are contiguous with the Satyamangalam range southwards, in the Erode district of Tamil Nadu. The area is 90 km from Mysore and 180 km from Bangalore. It is connected by road, one from Yelandur and the other via Chamarajanagar. The hills are located at the easternmost edge of the Western Ghats and support diverse flora and fauna in view of the various habitat types supported. A wildlife sanctuary of 322.4 km² was created around the temple on 27 June 1974, and enlarged to 539.52 km² on 14 January 1987. The sanctuary derives its name “Biligiri” either from the white rock face that constitutes the major hill crowned with the temple of Lord Rangaswamy, or from the white mist and the silver clouds that cover these lofty hills for a greater of the year. BRT has an amazing diversity of vegetation types such as scrub, dry and moist deciduous, evergreen, sholas and high-altitude grasslands. This diversity of forest types supports a rich variety of fauna, avi-fauna, insects and butterflies. BRT is also known for its many endemic species of plants including valuable medicinal ones. BR Hills constitute a live link between the Eastern Ghats and Western Ghats facilitating an active exchange of gene pools between them. Thus this sanctuary serves as an important biological bridge for the biota of the entire Deccan plateau. BR hills along with the Male-Madeshwara (MM Hills) range are a distinctly unusual mountain range running north-south amidst the plains of Bangalore-(~900 m) Mysore-(~600m) and Krishnagiri-(~450 m) surfaces. The peaks of these lofty ranges rise as high as 1800 m (BR hills 1400 to 1800 m; MM Hills 1000 to 1200 m). The highest hill is Kattari Betta, at 1800 MSL. Biogeographically, BRT sanctuary is very uniquely located. Between 11° and 12° N along its north-south running chain. Western Ghats projects itself in a north-easterly direction and meets the splintered hills of the Eastern Ghats at 78° E. This unique extension of Western Ghats constitutes a live bridge between the Eastern and Western Ghats with the sanctuary located almost in the middle of this bridge. Thus, the biota of BRT sanctuary can be expected to be predominantly of Western Ghats in nature with significant proportion of eastern elements as well.

For more details visit
http://en.wikipedia.org/wiki/Biligirirangan_Hills

After visiting temple we went in search of Lodge,..then we saw board aboout Jungle Resort Lodge in K.Gudi its about 20 Kms from BR Hills,.
We decided to go there but after traveling few Km my friends are afraid to move forward, because the forest is very dense and we not seeing any vehicle form long time in that road. So we turned back and while coming we saw A school Vivekananda Residential Insitution
I need to talk about this institute , this was headed by Dr. Sudharshan and its giving educations to tribal childrens ,..


When we are searching room there we found one person who is from Mandya working as teacher there ,..and He helped a lot in all the way ,.. his name is Sundaresh..

At last we got a room there ,..we drink coffe in Sundaresh house and wathched Etv news in dish Tv ,the speciality of news is ..Mr Yediurappa was about to become CM,..after a long fight…
We had dinner in Biligiri dharshin and came back to room ,..i was roaming in ground till mid night,. ,..
And morning we wake up and went inside jungle ,..we went to K Gudi but could not able to see any animals but we saw one old Temple “Kyatheswara” in K Gudi ,..and my friend kyatha is very happy that he found his Family gods Temple,..He said a story about there ancestors who have moved from Chamraj nagar to bangalore ,..The story is very intresting “ Once the Palegara of that place wanted to marry a girl in this village it seems and the elders did not agree to that,..and they shifted from Chanmraj nagar to Mandya in the night ,..leaving all there properties in that village and while coming they got a lake in between and they prayed god that if they reach safely they will name For helder son as “Kyathe gowda” and for younger son “Boregowda” and still you can see these familys in the place of Shivalli,Panakanalli,villages..near Mandya “

After K Gudi we saw .the view point which is really a fantastic place ,..we can see nice picture of mountains view from there…

While coming we came via Kollegal – mallavalli – Mandya

BR Hills was a nice place for treckking,..Bird watching,.If you plan to go there plan for at least 2 days…

Monday, November 5, 2007

Learn Kannada

we are celeberating our kannada rajyotsava ,..

I feel it is limitted to only for certain region, certain people ,..u can see only auto drivers have the passion of celebration,..
may be as we become more educated,..we loose the joy of celebrating these type of functions,..


The only way to keep our language is,( its not only for kannada,..for all indian language like Tamil, Telugu,Malayalam,..)
Talk only in your mother tounge in the Home,with ur wife,relatives,..and ecourage ur childrens to talk in there mother tounge..

Few words about Kannada,...

Kannada is a Dravidian language spoken primarily in Karnataka State in South India, and has a literature that dates from the ninth century. It has a population of 35,346,000 speakers, and is spoken not only in Karnataka, but to some extent in the neighboring states of Andhra Pradesh, Tamil Nadu, and Maharashtra. The literacy rate in Kannada is estimated to be about 60%. Kannada is written with its own script, which is similar to the script used also for Telugu. The Kannada script is also used for writing Tulu.

This is for non Kannadiga's,

Here are some common kannada words which we use everyday ,.which may help you in proper communication.

It is arranged like this pattren,..
English
Kannada


I
Nanu
He
Avanu
She
Avalu
You
Neenu
It
Adu
This
Idu
That
Adu
A
vandhu
Mother
Thaayi/amma
Father
Appa/thandhe.
Come(You come)
Baa
Came
Baandha(male) /Bandhalu(female)
Will come
Baaruthare
Sit
Kuthko/ Kulithuko
Walk
Nadee
Eat
Thinnu
Drink
Kudee
Win
Gellu
Go
Hogu/Horadu
Run
Odu
I go
Nanu hoguthene
He goes
Avanu hoguthane
He eats an apple
Avanu sebu(apple) thinuthane
He is eating an apple
Avanu sebu thinnuthidhane
He ate an apple
Avanu sebu thindhanu
I saw the film last week
Nanu hodha wara picture/ chalanachitra nodidhenu
She came by bus yesterday
Avalu ninne businalli bandhalu
They went to the mosque
Avaru masidhi/darga ge hodharu
He slept the whole night
Avanu eedi raatri malaghidhanu
He wrote well in the examination
Avanu pariksheyalli chennaghi madidhanu/

Avanu pariksheyalli chennaghi baredhanu
He has eaten
Avanu thindhidhane
He will eat
Avanu thinnuthane
He will go
Avanu hoguthane
He will come
Avanu baruthane
What is your name?
Ninna hesarenu?/ Ninna hesaru yenu?
What
Yenu?
Your
Ninna
Name
Hesaru
What did you do?
Neenu yenu maduthiya?
What should I do?
Nanu yenu madabeku?
What can I do?
Nanu yenu madabhahudhu?/ nanu yenu madaballe
What are the questions?
Yenu prashnegalu?
What were the questions?
Yenu prashnegaliddhavu?
What is the last question?
Koneya prashne yenu?
What is written in the letter?
Pattradhalli/Kaagadhadalli yenu baredhidhe?
What you had been told?
Ninege yenu hellalaghithu?
What will be the answer?
Uttara yenirabhahudhu?
Why did you come?
Neenu yaake bandhe?
Why did you sleep?
Neenu yaake malaghidhe?
Why did you tell him to go?
Neenu avanige yakee hoghalikke hellidhe?
Why did he bring the bag?
Avanu yaake cheela thandhanu?
Why did she pay the money?
Avalu yakee dhuddu kottalu?
Why did they sit there?
Avaru alli yakee kootharu?
Why do you drive the car?
Neenu gaadi yakee biduthiya?/

Neenu yakee gaadi chalayisuthiya?
Why are they late for the meeting?
Avaru meetingige yaake thadavadharu?
How did you come?
Neenu hege bandhe?
How did you sleep?
Neenu hege malaghidhe?
How did you drive?
Neenu hege gaadi chalayisidhe?.
How did you write?
Neenu hege baredhe?
How many apples are there in my hand?
Nanna kaiyalli yestu sebu idde?
How many did you take?
Neenu yestu thagedhukonde?
How much did he pay you?
Avanu ninage yestu hana kottanu?
How much distance to go?
Yestu doora hoghabheku?
How was the journey yesterday?
Ninneya prayana heghithu?
Which way did you come?
Neenu yaava daariyalli bandhe?
Which is your favourite colour?
Ninna istavadha banna yavudhu?/

ninege yava banna ista?
In which room did you sleep?
Neenu yava koneyalli malaghidhe?
Which story did you tell?
Neenu yava khathe helidhe?
Which is the sweetest fruit?
Yallakintha saviyatha hannu yavudhu?
Which is the best newspaper in Hindi?
Hindiya yava patrike sarvashresta?
Which Indian state has the largest population?Bharatha deshada yava rajyadalli jasti janasankye?

Where did you come from?
Neenu yellindha bandhe?/ ninna ooru yavadhu?
Where did you sleep?
Neenu yelli malaghidhe?
Where is the manager’s cabin?
Managerina kone yavudhu?
Where should I go?
Nanu yellige hogabeku?
Whom should I contact?
Nanu yaranna samparkisabeku?
Is it a book?
Idu pustakava?/ idu pustaka naa?
It is a book
Ide pustaka/ ide pustaka
Is it the answer?
Idu uttarana?
It is the answer
Ide uttara
Will you come with me?
Neenu nanna joteghe baaruthiya?
I shall come with you.
Naanu ninna jotege barythene
Will you give me your pen?
Ninna pennu/ kalam nanage koduthiya?
Yes, of course.
Avashyavaghi koduthene
Do you love me?
Neenu nannannu preethisuthiya?
Yes, I love you.
Hovadhu naanu ninna preethisuthene
Can you give me your pen?
Nanege ninna penana kodabhahudha?/

Ninna kalam nanaghe koduthiya?
Can you lift the box?
Neenu dabbiyanna yethe balliya?/

Ninindha dabbi yathellu sadhyava?
Can you write the exam?
Ninindha parikshe bariyalu sadyana?
Did you have your lunch?
Oota madhidheya?/ oota aayitha?
How are you?
Hegiddhiya?/ Neenu heghiddhiya?
I am fine
Nanu chenagiddene.
Happy Kannada Rajyotsava,....