Tuesday, September 15, 2009

Gridview and extra Div

Disclaimer: This post is to share info for people working on ASP.Net. There is no intention to defame or pass comments/remarks or criticize any person or organization.

MicroSoft did it again!

I have code working witin ASP-HTML-Javascript that dynamically shows a vertical scrollbar when the no. of rows exceed a configurable value.

<body onload=fnSetTableHeigh() >
<div>
<table id=tblDetails >
<--- Table rows >
</table>
</div>
</body>

This has been working without any issues in my ASP. Recently, I have added a new ASPX web page to the ASP.Net section of our application.

So, a GridView control is defined to display the data and I have used the same concept. GridView control should render a HTML table and so I enclosed it in a DIV expecting it to work –

<div id=divDetails>
<asp:GridView id=gvDetails & gt;

</asp:GridView>
</div>

But, it was not working. I thought it was an issue with my JS and tried to fix that function. No progress. Then, I tried to adjust various attributes of the gridview and div controls – but in vain.

After struggling for 2 hours, somehow I thought I should see what was getting rendered actually. To my horror, gridview is rendering extra div; The rendered code was –

<div id=divDetails>
<div>
<table id=tblDetails >
<--- Table rows >
</table>
</div>
</div>

This was OK until I saw the response on the site when this bug had been reported in 2006! They did not bother to fix this even in VS 2008, ASP.Net 3.5.

http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=104139

For umpteenth time, I thought of banging my head for choosing MS technologies as my stream.

Tuesday, July 28, 2009

Friendly talk

I have been taking lunch alone these days and feeling alone in the canteen. The other day, while I was taking lunch alone, I was thinking – “ There were many people like me – just come, take food and leave. Why don’t they try to talk to the one sitting opposite or at least just say a friend ‘Hi!’”. Suddenly, a person came and queried whether the seat opposite was available. I nodded affirmative. Then he said a “hi” and introduced himself. We had a good conversation, though I was irritated one or two times for things too personal to be asked and to be disclosed to a stranger.

I have seen this trend commonly in IT people. If you see a train, bus, railway station or any common place, Indians have a common tendency to start a conversation with a complete stranger and make a friendly chat, make the boring waiting or traveling time tick on quickly. But, IT junta cannot come out so quickly.

I think there is nothing wrong in starting a friendly chat or at least give a smile to the person sitting opposite in food court, gym or any other place in the campus, of course, first checking the mood of the other person :)

Friday, June 26, 2009

Challenging Job?

Are you feeling at the end of the day that you have the toughest and the most challenging job in the world? Nothing is tougher. Check out what this person was doing for his living -

Wednesday, June 17, 2009

"Adhi Naaku ivvara"

Recently, I have been teaching Telugu to my roommate and I found out this.
Some words can be interpreted in different ways based on the tone of the speaker.
Consider the following sentence. This can be interpreted in 3 different ways (may be more) -
"Adhi naaku ivvara!"

1. "Adhi naaku ivvara!" - Demand - "Hey! Give that to me" - Ex: A close friend/brother/sister demanding something - "Araye! Aa keys ivvara!". - This is a transformation of ivvu+ra.

2. "Adhi naaku ivvara?" - Question (especially out of concern) - "Hey, won't they give that to me?" - Ex: If something is being given to everyone around, but not to the person, he can ask, "won't they give that to me/us" - This is a negative question.

3."Adhi naaku ivvara!" - Request (with respect) - "Could you please give that to me?" - Alternative words are "Isthaarooo/ivvaroo/isthaara/ivvandi"
Note: The Telugu in the above instance is the usage Telugu of Guntur-Krishna that is commonly used in movies. People from other areas can and most of the times will use different sentences.

Monday, June 15, 2009

Controlling emotions

Right from the day he entered the international cricket, I never liked Dhoni, the cricketer – primarily due to his below par wicket keeping and lately due to the hype and his attempts to hog limelight ignoring the likes of Sachin and Dravid.

Whoever reads this may have a first thought to kill/bash me or rate me a cynic or fool or something else, but I openly supported WI and England in the last two matches and the moment India lost, I was celebrating causing irritation to my roomie and my neighbors.

However, I have to salute the way Dhoni handled the post-match conversation – controlling emotions and speaking with a smile. I like Dhoni the person, as seen on TV during matches and interviews - there are some qualities I would like to learn from him, the above scenario being the one – "Talking without showing any trace of actual state of mind in face or tone".

Kudos to Dhoni.

If interested, please visit my previous posts on emotions.