<?xml version="1.0" encoding="ISO-8859-1" ?>
<rss version="0.91">
  <channel>
    <title>kuruvidotnet</title>
    <link>http://kuruvidotnet.blogdrive.com/</link>
    <description>kuruvidotnet</description>
    <lastBuildDate>Sun, 30 May 2004 03:40:02 PDT</lastBuildDate>
    <generator>http://www.blogdrive.com</generator>
    <copyright>Copyright 2004.</copyright>
    <category>Computer Science</category>
    <item>
      <title>MCP-Developing web applications with VS.NET-C#&quot; 70-315 tricks</title>
      <link>http://kuruvidotnet.blogdrive.com/</link>
      <pubDate>Sun, 30 May 2004 11:37:28 GMT</pubDate>
      <description>Hi all,&lt;br&gt;
I just cleared the above MCP exam, the exam is my first certification from Microsoft and will be the start of my target to achieving MCAD.NET.&lt;br&gt;
&lt;BR&gt;The exam was very useful in certain aspects for me,&lt;br&gt;
&lt;BR&gt;
&lt;UL&gt;
&lt;LI&gt;very useful for my job.&lt;/LI&gt;
&lt;LI&gt;Has good career potential&lt;/LI&gt;
&lt;LI&gt;Makes u thorough on how things should be done in web development world.&lt;/LI&gt;&lt;/UL&gt;&lt;br&gt;
basically the exam deals with all about ASP.NET, the architecture, state management features of ASP.NET, ADO .NET, Caching and optimizing, testing and deployment of Web applications. I used the MS Press Book recommended for this certification and found it quite useful for giving a proper index and clarity of the subject. But I found it lacking in depth. The MSDN is best source for complete information, but it may take quite some time going through it, having some work exp. really helps&lt;BR&gt;
the following link points the sections of MSDN you have to go through&lt;BR&gt;
&lt;A href=&quot;http://www.codeclinic.com/70-315skills.htm&quot;&gt;&lt;BR&gt;
http://www.codeclinic.com/70-315skills.htm&lt;/A&gt;&amp;nbsp;- an extremely good reference site.&lt;BR&gt;
&lt;BR&gt;
It took me nearly 45 days for getting ready for the exam. I used some sample test papers for checking my progress.&lt;BR&gt;
&lt;BR&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;A href=&quot;http://www.boson.com&quot;&gt;www.boson.com&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href=&quot;http://www.examsheets.com&quot;&gt;www.examsheets.com&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href=&quot;http://www.self-test.com&quot;&gt;www.self-test.com&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href=&quot;http://www.measureup.com&quot;&gt;www.measureup.com&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;The samples and demos did have a&amp;nbsp;very less no. of questions, but if u really want to go in depth and want to do a complete test go for the one in &lt;A href=&quot;http://www.transcender.com&quot;&gt;www.transcender.com&lt;/A&gt; , it is good.&lt;BR&gt;
&lt;BR&gt;
And those who are planning to just start a career in .NET with a certification, and who are worried about which language to&amp;nbsp;choose, my advice u can choose C#, even if ur good in VB only it doesn't make much of a difference for this exam.&lt;BR&gt;

&lt;P align=center&gt;&lt;b&gt;That's all folks!&lt;/b&gt;&lt;br&gt;
&lt;/P&gt;
&lt;DIV align=center&gt;&lt;/DIV&gt;
&lt;P align=center&gt;&lt;b&gt;&lt;FONT size=2&gt;All the Best&lt;/FONT&gt;&lt;/b&gt;&lt;br&gt;
&lt;/P&gt;</description>
      <comments>http://kuruvidotnet.blogdrive.com/comments?id=15</comments>
    </item>
    <item>
      <title>Word-wrap in HTML tables and DATAGRIDS ASP.NET</title>
      <link>http://kuruvidotnet.blogdrive.com/</link>
      <pubDate>Mon, 12 Apr 2004 13:32:16 GMT</pubDate>
      <description>Today I learnt a very frustrating thing with HTML tables&lt;br&gt;
&lt;BR&gt;HTML tables TD cells don't obey wrap attributes or FIXED width settings for content with continuous text without spaces.&lt;br&gt;
The text within cells only wraps if there are spaces &lt;br&gt;
&lt;BR&gt;Here is a table with center colum of fixed width of 50 px.&lt;br&gt;
&lt;BR&gt;
&lt;TABLE cellSpacing=2 cellPadding=2 width=300 border=2&gt;&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width=50&gt;&amp;nbsp; &lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;&lt;br&gt;
Same table with some text in the fixed width cell that is within it.&lt;br&gt;
&lt;BR&gt;
&lt;TABLE cellSpacing=2 cellPadding=2 width=300 border=2&gt;&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width=50&gt;&amp;nbsp; abcdef&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;&lt;br&gt;
Now the text with some spaces and see it wrap.&lt;BR&gt;
&lt;DIV&gt;
&lt;TABLE cellSpacing=2 cellPadding=2 width=300 border=2&gt;&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width=50&gt;&amp;nbsp; abc def ghi jkl mno pqr&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;&lt;br&gt;
&lt;BR&gt;Now the text without spaces and see it exceed it's fixed width limit.&lt;br&gt;
&lt;BR&gt;
&lt;TABLE cellSpacing=2 cellPadding=2 width=300 border=2&gt;&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width=50&gt;&amp;nbsp; abcdefghijklmnopqr&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;&lt;br&gt;
The problem is because the word does not wrap as it is one big one.&lt;br&gt;
&lt;BR&gt;The solution for this is to add the CSS style attribute break-word to the TD cell which has fixed width. like style=&quot;word-wrap:break-word&quot;&lt;br&gt;
After that it wraps nicely.&lt;br&gt;
&lt;BR&gt;
&lt;TABLE cellSpacing=2 cellPadding=2 width=300 border=2&gt;&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD style=&quot;WORD-WRAP: break-word&quot; width=50&gt;&amp;nbsp; abcdefghijklmnopqr&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;&lt;br&gt;
&lt;BR&gt;All of these are also needed if you use Datagrids in ASP.NET.&lt;BR&gt;
&lt;DIV&gt;&lt;br&gt;
To make a datgrid column word-wrap use the style attributes in the column template or if you are auto generating the columns use,&lt;br&gt;
&lt;BR&gt;&lt;FONT color=#990000&gt;&lt;B&gt;Private Sub DataGrid1_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) Handles DataGrid1.ItemDataBound&lt;br&gt;
&lt;/B&gt;&lt;/FONT&gt;&lt;br&gt;
&lt;FONT color=#990000&gt;&lt;B&gt;e.Item.Cells([INDEX]).Style.Add(&quot;word-wrap&quot;, &quot;break-word&quot;)&lt;br&gt;
e.Item.Cells([INDEX]).Attributes.Add(&quot;width&quot;, &quot;250px&quot;)&lt;br&gt;
&lt;/B&gt;&lt;/FONT&gt;&lt;FONT color=#990000&gt;&lt;B&gt;End sub&lt;br&gt;
&lt;/B&gt;&lt;/FONT&gt;&lt;br&gt;
where index is&amp;nbsp; the column index for which you want to set the wrap property.&lt;br&gt;
&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <comments>http://kuruvidotnet.blogdrive.com/comments?id=14</comments>
    </item>
    <item>
      <title>Command Object:</title>
      <link>http://kuruvidotnet.blogdrive.com/</link>
      <pubDate>Mon, 05 Apr 2004 08:11:50 GMT</pubDate>
      <description>A difficult to track bug can occur when use the ADO.NET command object with parameters, &lt;BR&gt;
the scenario is like this you have a update statement like this &lt;BR&gt;
dim cmdsave as new OleDBCOmmand(&quot;update tbl1 set &lt;A href=&quot;mailto:title=@titl&quot;&gt;title=@titl&lt;/A&gt; where tid=100&quot;) cmdsave.parameters.add(&quot;&lt;U&gt;@title&lt;/U&gt;&quot;,&quot;Test&quot;)&lt;BR&gt;
 cmdsave.executeNonQuery()&lt;BR&gt;
&lt;BR&gt;
 The above query is perfectly correct but it will never update the title of the record of tid=100 with &quot;Test&quot; The problem is misspelling that is underlined in the code. This will neither cause a compile time error nor a runtime error. So be careful. </description>
      <comments>http://kuruvidotnet.blogdrive.com/comments?id=13</comments>
    </item>
    <item>
      <title>setting selecteddate property of ASP.NET Calendar Control</title>
      <link>http://kuruvidotnet.blogdrive.com/</link>
      <pubDate>Mon, 05 Apr 2004 07:59:18 GMT</pubDate>
      <description>While programmatically setting the selected date property of ASP.NET calendar control the date is visibly updated only if it is visible in the current month being displayed in the calendar, or the particular date is displayed as other month date in the current month view of the calendar.&lt;br&gt;&lt;br&gt;In order to select a date in another month and refresh the view appropriately we have to set the visibledate property also.&lt;br&gt;&lt;br&gt;Like&lt;br&gt;&lt;br&gt;&lt;font color=&quot;#800000&quot;&gt;&lt;b&gt;Calendar1.selectedDate=&quot;2004/05/10&quot;&lt;br&gt;Calendar1.visibleDate=&quot;2004/05/10&quot;&lt;/b&gt;&lt;/font&gt;</description>
      <comments>http://kuruvidotnet.blogdrive.com/comments?id=12</comments>
    </item>
    <item>
      <title>Front Controller Pattern</title>
      <link>http://kuruvidotnet.blogdrive.com/</link>
      <pubDate>Fri, 26 Mar 2004 13:57:33 GMT</pubDate>
      <description>The Page Controller pattern becomes inefficient when you need to coordinate processing across multiple Web pages because of its implementation of a single object per logical page. The Front Controller is more efficient in such cases because it funnels all requests through a single controller and then directs requests through a single handler and a hierarchy of command classes. The handler retrieves parameters from the HTTP request, chooses the correct command, and transfers processing to it. After each command object performs the specified action, it can choose which view is required to render the page properly. Implementing the Front Controller results in more centralized application control because all page requests come through a single controller instead of being handled by different Page Controllers. But this can also be a liability if the handler does expensive processing, such as database lookups that could cause the entire application to operate slowly. The handler should be as efficient as possible and use external resources only when absolutely necessary. You should also consider caching any external resources to increase the handlerfs performance.&lt;br&gt;&lt;br&gt;You implement the FrontController class by creating a Handler and a CommandFactory, which determines the necessary command to execute in response to a request. ASP.NET provides the IHttpHandler interface to allow developers to create custom interfaces required to service incoming HTTP requests. You implement the Handler by inheriting from System.Web.IHttpHandler and adding the logic to instantiate and call the appropriate command from the CommandFactory. The CommandFactory defines a collection of commands and the logic that determines which of the commands should be executed. Calling the CommandFactory returns the appropriate Command object for which the Handler can call an Execute method. Using this pattern, you can create more robust navigation scenarios and implement them centrally by extending the CommandFactory logic and creating additional commands to handle the required scenarios.&lt;br&gt;</description>
      <comments>http://kuruvidotnet.blogdrive.com/comments?id=11</comments>
    </item>
    <item>
      <title>Changing the Properties of The Body Tag Programatically in WebForm</title>
      <link>http://kuruvidotnet.blogdrive.com/</link>
      <pubDate>Fri, 19 Mar 2004 15:02:41 GMT</pubDate>
      <description>&lt;br&gt;
Declare the body tag element as a HtmlGenericControl as below&lt;br&gt;
protected System.Web.UI.HtmlControls.HtmlGenericControl bodyTag;&lt;br&gt;
&lt;BR&gt;Then you can add attributes to the body tag by using the syntax&lt;br&gt;
&lt;BR&gt;&lt;FONT color=#800000&gt;&lt;B&gt;bodyTag.Attributes.Add(&quot;bgcolor&quot;,&quot;#CCCCCC&quot;); &lt;/B&gt;&lt;/FONT&gt;// This will set the body&lt;br&gt;
bgcolor to be grey&lt;br&gt;
&lt;BR&gt;That should do what you need.&lt;br&gt;
&lt;BR&gt;&lt;br&gt;
Reference:&lt;br&gt;
&lt;A href=&quot;http://msdn.microsoft.com/newsgroups/default.aspx?dg=microsoft.public.dotnet.framework.aspnet&quot; target=_blank&gt;Discussions in ASP.NET&lt;/A&gt;</description>
      <comments>http://kuruvidotnet.blogdrive.com/comments?id=10</comments>
    </item>
    <item>
      <title>Injecting Client Side Scripts From Server</title>
      <link>http://kuruvidotnet.blogdrive.com/</link>
      <pubDate>Thu, 18 Mar 2004 01:14:22 GMT</pubDate>
      <description>You can pass client side scripts from the ASP.NET server app by calling&lt;br&gt;
&lt;BR&gt;&lt;FONT color=#800000&gt;&lt;B&gt;&lt;TEXTAREA rows=5 cols=45&gt;Response.Write(&quot;
&amp;lt;SCRIPT&amp;gt;alert('hai');&amp;lt;/SCRIPT&amp;gt;&quot;)&lt;/TEXTAREA&gt;&lt;/B&gt;&lt;/FONT&gt;&lt;br&gt;
-This will popup a MsgBox front of the browser window.&lt;br&gt;
&lt;BR&gt;&lt;B&gt;&lt;FONT color=#800000&gt;&lt;TEXTAREA rows=5 cols=45&gt;Response.Write(&quot;
&amp;lt;SCRIPT&amp;gt;window.print();&amp;lt;/SCRIPT&amp;gt;&quot;)&lt;/TEXTAREA&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;br&gt;
-This will popup a print dialog in the one which comes when you goto File-&amp;gt;Print in IE.&lt;br&gt;
&lt;BR&gt;</description>
      <comments>http://kuruvidotnet.blogdrive.com/comments?id=9</comments>
    </item>
    <item>
      <title>Selected Value Property of DropDownList Control</title>
      <link>http://kuruvidotnet.blogdrive.com/</link>
      <pubDate>Thu, 18 Mar 2004 01:09:37 GMT</pubDate>
      <description>We developers coming from an ASP background find ASP.NET a bliss, especially after seeing nice functionality such as the selected value property of the DropDownList Control.&lt;BR&gt;
&lt;BR&gt;
 Frequently in web development we come across situations when values are dynamically loaded into a dropdownbox from a DB and a particular item has to be preselected programatically. This was done in a tedious manner by iterating through all the items in dropdownlist and comparing the listitem value's to the value what we want it to be selected and if it matches make the selected property to be true.&lt;BR&gt;
&lt;BR&gt;
 Phew! Along Came ASP.NET In ASP.NET the beauty the above functionality can be achieved by simply setting the selectedValue property to the value in the dropdown you want to be selected and freow it is done!! For example you have a set of departments in the DB with dept. code,dept. description for each. &lt;BR&gt;
&lt;BR&gt;
Load these departments into dropdown as&lt;BR&gt;
 &lt;FONT color=#800000&gt;&lt;B&gt;Dim dbconn As New MySqlConnection(connStr) &lt;BR&gt;
dbconn.Open()&lt;BR&gt;
 Dim cmdfetch As New MySqlCommand(&quot;SELECT * FROM dept_master&quot;, dbconn) &lt;BR&gt;
dbreader = cmdfetch.ExecuteReader &lt;BR&gt;
drpDept.DataSource = dbreader &lt;BR&gt;
drpDept.DataTextField = &quot;DEPT_DESC&quot; &lt;BR&gt;
drpDept.DataValueField = &quot;DEPT_CODE&quot; &lt;BR&gt;
drpDept.DataBind() &lt;BR&gt;
dbreader.Close() &lt;BR&gt;
dbconn.Close()&lt;/B&gt;&lt;/FONT&gt; &lt;BR&gt;
&lt;BR&gt;
After that If the dept codes are like 100,101,102 ... I can select the department in the dropdown with value 101 as &lt;FONT color=#800000&gt;&lt;B&gt;drpDept.SelectedValue = 101&lt;/B&gt;&lt;/FONT&gt; and it gets selected. :-) &lt;I&gt;Note: The selected value property is supported only in .NET framework1.1&lt;/I&gt; dbconn.Dispose()</description>
      <comments>http://kuruvidotnet.blogdrive.com/comments?id=8</comments>
    </item>
    <item>
      <title>Using Required Field Validator to validate dropdown box selections</title>
      <link>http://kuruvidotnet.blogdrive.com/</link>
      <pubDate>Tue, 09 Mar 2004 18:03:39 GMT</pubDate>
      <description>A typical Dropdown will have a default &quot;Select&quot; listitem as the first item in the DropDown. The users will have to select some other listitem in the dropdown to proceed. They should not be allowed to proceed without making a selection in the dropdown. For these purposes the RequiredFieldValidator link can be used. But the validator won't throw an error as the default item &quot;Select&quot; has some value like 0 or -1. Solution: Set the InitialValue Property of the Required Field validator to &quot;0&quot; or -1 &amp;nbsp;the default ListItem&amp;nbsp;value and now the required field validator will function as required. </description>
      <comments>http://kuruvidotnet.blogdrive.com/comments?id=6</comments>
    </item>
    <item>
      <title>Printing From an ASP.NET Page, Injecting Client Side Script</title>
      <link>http://kuruvidotnet.blogdrive.com/</link>
      <pubDate>Tue, 09 Mar 2004 15:49:53 GMT</pubDate>
      <description>This injects a client side script for popping up the windows print dialog. 

&lt;pre&gt;&lt;Script&gt;window.print()&lt;/script&gt;&lt;/pre&gt;</description>
      <comments>http://kuruvidotnet.blogdrive.com/comments?id=5</comments>
    </item>
  </channel>
</rss>
