tag:blogger.com,1999:blog-109763092008-06-26T07:44:30.040-07:00Programming Materials, Training Materials, Tutorials ASP.Net, C#, VB.Net, SQL ServerJagadeeshnoreply@blogger.comBlogger33125tag:blogger.com,1999:blog-10976309.post-66320567177029228422008-06-26T07:40:00.000-07:002008-06-26T07:44:30.081-07:00Previewing image while opening ASP.NET<span style="font-family: verdana; font-weight: bold; color: rgb(204, 102, 0);font-size:180%;" >Previewing image while opening<br /><br /></span><span style="font-family: verdana; color: rgb(204, 102, 0); font-weight: bold;font-size:100%;" ><span style="color: rgb(0, 0, 0);">We can use the following code to preview an image while opening it using ASP.NET, C#, Java script</span></span><span style="font-family: verdana; font-weight: bold; color: rgb(204, 102, 0);font-size:180%;" ><span style="font-weight: bold;">.</span><br /></span><pre class="coloredcode">&lt;<span class="tag">SCRIPT</span>><br />var lastfieldname = ''<br />function preview(i)<br />{<br />var file = i.value<br />if (file.length<<span class="tag">=0)</span> return;<br />var ipreview = document.all('ipreview')<br /><span class="attr">ipreview.src =</span><span class="attrv">'file://'</span> + file<br />}<br /><span class="tag">img</span><span class="attr"> id=</span><span class="attrv">"ipreview"</span><span class="attr"> border=</span><span class="attrv">"1"</span><span class="attr"> height=</span><span class="attrv">"120"</span><span class="attr"> src=</span><span class="attrv">"images/spacer.gif"</span> />&lt;<span class="tag">br</span> /><br />adjust image:<br />&lt;<span class="tag">input</span><span class="attr"> id=</span><span class="attrv">"fotofp"</span><span class="attr"> runat=</span><span class="attrv">"server"</span><span class="attr"> name=</span><span class="attrv">"file1"</span><span class="attr"> onchange=</span><span class="attrv">"preview(this)"</span><span class="attr"> onfocus=</span><span class="attrv">"preview(this)"</span><span class="attr"> size=</span><span class="attrv">"25"</span><span class="attr"> type=</span><span class="attrv">"file"</span> /></pre>Jagadeeshnoreply@blogger.comtag:blogger.com,1999:blog-10976309.post-27707140662541043852008-06-17T07:42:00.000-07:002008-06-17T08:01:10.477-07:00Firefox 3.0 Sets Guinness World Record for Most Software Downloaded in 24 Hours<span style="color: rgb(204, 153, 51);font-family:verdana;font-size:180%;" ><span style="font-weight: bold;">Firefox 3.0 Sets Guinness World Record for Most Software Downloaded in 24 Hours</span></span><br /><br /><span style="font-family:verdana;">Today</span><b style="font-family: verdana;"> 17 June, 2008</b><span style="font-family:verdana;"> the most popular web browser Firefox Version 3 is released.</span><br /><br /><span style="font-family:verdana;">At present Firefox share in web browsing is 15% of Internet users. The release of</span><b style="font-family: verdana;"> </b><span style="font-family:verdana;">Firefox 3.0 would further boost its market share.</span><br /><p style="font-family:verdana;"><span style="font-weight: bold;">New features in Firefox Version 3</span> include automatic warnings when users stray onto webpages booby-trapped with malicious code. </p><p style="font-family: verdana;">Also in Firefox 3.0 will be "Smart Location Bar" that lets people return to places they have visited even if they have not bookmarked them or cannot remember the full web address. </p><p style="font-family: verdana;">Firefox 3.0 will work with Windows 2000, XP and Vista and some non-Windows operating systems including Linux.</p><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_JqOazdtw43M/SFfReWUiR_I/AAAAAAAAAWo/gQ_QzbD_ApI/s1600-h/Firefox+Download.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp0.blogger.com/_JqOazdtw43M/SFfReWUiR_I/AAAAAAAAAWo/gQ_QzbD_ApI/s400/Firefox+Download.jpg" alt="" id="BLOGGER_PHOTO_ID_5212865413022631922" border="0" /></a><br /><span style="font-family:verdana;">Download Firefox 3.0 Now </span><a style="font-family: verdana;" href="http://www.mozilla.com/en-US/firefox/">http://www.mozilla.com/en-US/firefox/</a><br />or here<br /><a href="http://www.spreadfirefox.com/en-US/worldrecord">http://www.spreadfirefox.com/en-US/worldrecord</a><br /><br /><br /><br /><span style="font-family:verdana;">The count down started ;)</span>Jagadeeshnoreply@blogger.comtag:blogger.com,1999:blog-10976309.post-51232931187972407292008-06-17T06:30:00.000-07:002008-06-17T06:41:53.913-07:00AccessDataSource UpdateCommand Gridview Asp.Net AccessDatabase<span style="font-weight: bold; color: rgb(204, 153, 51);font-size:180%;" ><span style="font-family: verdana;">Updating Access Database using Asp.Net Gridview - AccessDataSource, UpdateCommand<br /><br /></span></span><span style="color: rgb(0, 0, 0);font-size:100%;" ><span style="font-family: verdana;">We can use the following code to update Access Database using Asp.Net Gridview...<br /><br /></span></span><span style="font-weight: bold; color: rgb(204, 153, 51);font-size:180%;" ><span style="font-family: verdana;"> </span></span><span style="color: rgb(0, 0, 0);font-size:100%;" ><span style="font-family: verdana;">&lt;asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4"<br /> DataKeyNames="ID" DataSourceID="AccessDataSource1" AutoGenerateDeleteButton="true" AutoGenerateEditButton="true" ForeColor="#333333" GridLines="None"><br /> </span></span><span style="color: rgb(0, 0, 0);font-size:100%;" ><span style="font-family: verdana;">&lt;</span></span><span style="color: rgb(0, 0, 0);font-size:100%;" ><span style="font-family: verdana;">FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" /><br /> </span></span><span style="color: rgb(0, 0, 0);font-size:100%;" ><span style="font-family: verdana;">&lt;</span></span><span style="color: rgb(0, 0, 0);font-size:100%;" ><span style="font-family: verdana;">Columns><br /> </span></span><span style="color: rgb(0, 0, 0);font-size:100%;" ><span style="font-family: verdana;">&lt;</span></span><span style="color: rgb(0, 0, 0);font-size:100%;" ><span style="font-family: verdana;">asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" ReadOnly="True"<br /> SortExpression="ID" /><br /> </span></span><span style="color: rgb(0, 0, 0);font-size:100%;" ><span style="font-family: verdana;">&lt;</span></span><span style="color: rgb(0, 0, 0);font-size:100%;" ><span style="font-family: verdana;">asp:BoundField DataField="Country" HeaderText="Country" SortExpression="Country" /><br /> </span></span><span style="color: rgb(0, 0, 0);font-size:100%;" ><span style="font-family: verdana;">&lt;</span></span><span style="color: rgb(0, 0, 0);font-size:100%;" ><span style="font-family: verdana;">/Columns><br /> </span></span><span style="color: rgb(0, 0, 0);font-size:100%;" ><span style="font-family: verdana;">&lt;</span></span><span style="color: rgb(0, 0, 0);font-size:100%;" ><span style="font-family: verdana;">RowStyle BackColor="#FFFBD6" ForeColor="#333333" /><br /> </span></span><span style="color: rgb(0, 0, 0);font-size:100%;" ><span style="font-family: verdana;">&lt;</span></span><span style="color: rgb(0, 0, 0);font-size:100%;" ><span style="font-family: verdana;">SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" /><br /> </span></span><span style="color: rgb(0, 0, 0);font-size:100%;" ><span style="font-family: verdana;">&lt;</span></span><span style="color: rgb(0, 0, 0);font-size:100%;" ><span style="font-family: verdana;">PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" /><br /> </span></span><span style="color: rgb(0, 0, 0);font-size:100%;" ><span style="font-family: verdana;">&lt;</span></span><span style="color: rgb(0, 0, 0);font-size:100%;" ><span style="font-family: verdana;">HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" /><br /> </span></span><span style="color: rgb(0, 0, 0);font-size:100%;" ><span style="font-family: verdana;">&lt;</span></span><span style="color: rgb(0, 0, 0);font-size:100%;" ><span style="font-family: verdana;">AlternatingRowStyle BackColor="White" /><br /> </span></span><span style="color: rgb(0, 0, 0);font-size:100%;" ><span style="font-family: verdana;">&lt;</span></span><span style="color: rgb(0, 0, 0);font-size:100%;" ><span style="font-family: verdana;">/asp:GridView><br /> </span></span><span style="color: rgb(0, 0, 0);font-size:100%;" ><span style="font-family: verdana;">&lt;</span></span><span style="color: rgb(0, 0, 0);font-size:100%;" ><span style="font-family: verdana;">asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/mReachTV_DB.mdb"<br /> SelectCommand="SELECT [ID], [Country] FROM [TV_Streams]"<br /> UpdateCommand="UPDATE [TV_Streams] SET [Country] = @Country WHERE [ID] = @ID"><br /> </span></span><span style="color: rgb(0, 0, 0);font-size:100%;" ><span style="font-family: verdana;">&lt;</span></span><span style="color: rgb(0, 0, 0);font-size:100%;" ><span style="font-family: verdana;">/asp:AccessDataSource><br /><br />Is it Looking similar to the code you had written??<br /><br />Thats where the trick is... The number of parameters in <span style="font-weight: bold;">Select and Update command</span> should be equal.</span></span>Jagadeeshnoreply@blogger.comtag:blogger.com,1999:blog-10976309.post-17376405776186382722008-06-09T06:57:00.000-07:002008-06-19T06:28:31.802-07:00Message Boxes, Popup in ASP.NET<blockquote></blockquote><span style="font-size:100%;"><span style="color: rgb(204, 153, 51); font-weight: bold;font-size:180%;" >Displaying Message Boxes, </span><span style="color: rgb(204, 153, 51); font-weight: bold;font-size:180%;" >Popup in ASP.NET using Java Script</span><br /></span><br />The following code samples can be used to display message boxes in ASP.NET webpages.<br /><br />mes = chpwd.updat(txtrpwd.Text, txtuname.Text);<br /> if (mes)<br /> {<br /><br /> string script = "alert('New Password is Created');\n";<br /> script += "var f='" + Session["flag"].ToString() + "';\n";<br /> script += "if (f == 'L')\n";<br /> script += "location.href='loginpage.aspx';\n";<br /><br /> Page.ClientScript.RegisterStartupScript(GetType(), "msgbox", script, true);<br /> }<br /><br />----------------------------------------------------------------------------------------<br />Response.Write("&lt;script>alert('New Password is created')&lt;/script>");<br />----------------------------------------------------------------------------------------<br /><span class="kwd">if</span> (mes)<br /><pre class="coloredcode">{<br />StringBuilder sb = <span class="kwd">new</span> StringBuilder();<br />sb.Append(<span class="st">"</span>&lt;<span class="st">script type='text/javascript'>"</span>);<br />sb.Append(<span class="st">"alert('New Password is Create');"</span>);<br /><br /><span class="kwd">if</span> (Session[<span class="st">"flag"</span>].ToString() == <span class="st">"L"</span>)<br />{<br />sb.Append(<span class="st">"window.location = 'loginpage.aspx';"</span>);<br />}<br /><br />sb.Append(<span class="st">""</span>);<br /><br />Page.RegisterClientScriptBlock(<span class="st">"mes"</span>, sb.ToString());<br />}</pre>----------------------------------------------------------------------------------------<br /><p style="font-family:verdana;"><span style="font-size:100%;">Page.ClientScript.RegisterStartupScript(</span><span style="color: rgb(0, 0, 255);font-size:100%;" >this</span><span style="font-size:100%;">.GetType(), </span><span style="color: rgb(128, 0, 0);font-size:100%;" >"myAlertBox"</span><span style="font-size:100%;">, </span><span style="color: rgb(128, 0, 0);font-size:100%;" >"alert('New Password is Created'); window.location = 'loginpage.aspx';"</span><span style="font-size:100%;">, </span><span style="color: rgb(0, 0, 255);font-size:100%;" >true</span><span style="font-size:100%;">);</span></p> <p style="font-family:verdana;"><span style="font-size:100%;"> or </span></p><span style="font-size:85%;"><span style="font-size:85%;"> <p style="font-family:verdana;"><span style="font-size:100%;">ClientScript.RegisterClientScriptBlock(</span><span style="color: rgb(0, 0, 255);font-size:100%;" >this</span><span style="font-size:100%;">.GetType(), </span><span style="color: rgb(128, 0, 0);font-size:100%;" >"myAlertBox"</span><span style="font-size:100%;">, </span><span style="color: rgb(128, 0, 0);font-size:100%;" >"alert('New Password is Created'); <strong><u>window.location = 'loginpage.aspx';"</u></strong></span><span style="font-size:100%;"><strong><u>,</u></strong> </span><span style="color: rgb(0, 0, 255);font-size:100%;" >true</span><span style="font-size:100%;">);</span></p><p>----------------------------------------------------------------------------------------</p><p style="font-family:verdana;"><span style="font-weight: bold;font-size:100%;" >For POP Ups:</span></p><p style="font-family:verdana;"><span style="font-size:100%;">We can use Javascript function <b>window.Open</b> or <b>target="_blank" for popups.<br /></b></span></p><p style="font-family:verdana;"><span style="font-size:100%;">If we want to open a popup in form another popup window? we can use Java script function <b>window.location.</b></span></p><p style="font-family:verdana;"><span style="font-size:100%;"><b>------------------------------------------------------------------------</b></span></p><p style="font-family:verdana;"><span style="font-size:100%;"><b>Another Method to Display Message boxes in ASP.NET<br /></b></span></p></span></span><p><span style="color: rgb(0, 0, 255);font-size:100%;" >protected</span><span style="font-size:100%;"> </span><span style="color: rgb(0, 0, 255);font-size:100%;" >void</span><span style="font-size:100%;"> btnSubmit_Click(</span><span style="color: rgb(0, 0, 255);font-size:100%;" >object</span><span style="font-size:100%;"> sender, </span><span style="color: rgb(0, 128, 128);font-size:100%;" >EventArgs</span><span style="font-size:100%;"> e)</span><span style="font-size:100%;"> <p>{</p></span><span style="font-size:100%;"> </span></p><p><span style="color: rgb(0, 0, 255);font-size:100%;" >string</span><span style="font-size:100%;"> script = </span><span style="color: rgb(128, 0, 0);font-size:100%;" >"alert('Are U sure? ');"</span><span style="font-size:100%;">;</span></p><span style="font-size:100%;">System.Web.UI.</span><span style="color: rgb(0, 128, 128);font-size:100%;" >ScriptManager</span><span style="font-size:100%;">.RegisterClientScriptBlock(<b>this</b>, </span><span style="color: rgb(0, 0, 255);font-size:100%;" >this</span><span style="font-size:100%;">.GetType(), </span><span style="color: rgb(128, 0, 0);font-size:100%;" >"Test"</span><span style="font-size:100%;">, script, </span><span style="color: rgb(0, 0, 255);font-size:100%;" >true</span><span style="font-size:100%;">);</span><span style="font-size:100%;"> <p>}</p><p><span style="font-size:85%;"><p style="font-family:verdana;"><span style="font-size:100%;"><b>------------------------------------------------------------------------</b></span></p> <p style="font-family:verdana;"><span style="font-size:100%;"><b>Another Method to Display Message boxes in ASP.NET</b></span></p></span></p></span><pre class="coloredcode">&lt;<span class="tag">asp:Button</span><span class="attr"> ID=</span><span class="attrv">"button1"</span><span class="attr"> OnClientClick=</span><span class="attrv">"return confirm('Are you sure?');"</span><span class="attr"> runat=</span><span class="attrv">"server"</span> /><br /><br /><span style="font-weight: bold;">or<br /><br /></span>&lt;<span class="tag">asp:LinkButton</span><br /><span class="attr">ID=</span><span class="attrv">"ibtnDelete"</span><br /><span class="attr">runat=</span><span class="attrv">"server"</span><br /><span class="attr">Text=</span><span class="attrv">"Delete"</span><br /><span class="attr">CommandName=</span><span class="attrv">"Delete"</span><br /><span class="attr">OnClientClick=</span><span class="attrv">"javascript:return confirm('Are you sure you want to delete this class?');"</span>><br />&lt;/<span class="tag">asp:LinkButton</span>></pre><span style="font-size:100%;"><p><span style="font-size:85%;"> </span></p></span>Jagadeeshnoreply@blogger.comtag:blogger.com,1999:blog-10976309.post-12798107844103683502008-06-09T06:38:00.000-07:002008-06-17T07:25:21.868-07:00Restricting File Upload size using ASP.NET C#<p>We can use the following code to restrict the File upload size using Asp.Net, C#.</p><br />We can set the maximum upload limit for the file, using <span style="font-weight: bold;">maxRequestLength</span> in web.config of your ASP.NET web application.<br /><br />Here is the sample code for this...<br /><p><br /></p><p> protected void btnUpload_Click(object sender, System.EventArgs e)<br /> {<br /> string fileName = FileSelector.PostedFile.FileName;<br /> int fN = fileName.LastIndexOf("\\");<br /> string newFileName = fileName.Substring(fN).ToLower();</p> <p> if (newFileName.EndsWith(".m4v") || newFileName.EndsWith(".mp3") || newFileName.EndsWith(".mp4") || newFileName.EndsWith(".mov"))<br /> {<br /> if (this.FileSelector.PostedFile.ContentLength &lt; 210000)<br /> {<br /> FileSelector.PostedFile.SaveAs(<br /> Server.MapPath("../audioFiles/") + newFileName);</p> <p> lblWarn.Text = "File uploaded";<br /> lblWarn.ForeColor = System.Drawing.Color.Green;<br /> lblWarn.Visible = true;<br /> }<br /> else<br /> {<br /> lblWarn.Text = "File cannot exceed 350MB";<br /> lblWarn.Visible = true;<br /> lblWarn.ForeColor = System.Drawing.Color.Red;<br /> }<br /> }<br /> else<br /> {<br /> lblWarn.Text = "Only extensions .m4v, .mp4, mp3, or .mov";<br /> lblWarn.Visible = true;<br /> lblWarn.ForeColor = System.Drawing.Color.Red;<br /> }<br /> }</p> <p> </p> <p style="font-family: verdana;"><span style="font-size:100%;">Also default upload limit is 4MB in asp.net. You can change this value in ur web.config file.</span></p><span style="font-family: verdana;font-size:100%;" >&lt;httpRuntime maxRequestLength="210000"/></span><p style="font-family: verdana;"><span style="font-size:100%;"> <p>Include this in your webconfig file in the system.web section</p><p>You can also use <span style="font-weight: bold;">FileUpload1.PostedFile.ContentLength </span>to calculate the length of the file after it is uploaded to server.</p></span></p>Jagadeeshnoreply@blogger.comtag:blogger.com,1999:blog-10976309.post-46861748626381552472008-06-09T06:26:00.000-07:002008-06-09T06:36:45.658-07:00Image size, type Upload Validationprotected void Button1_Click(object sender, EventArgs e)<br /> {<br /> string fileFullname = this.File1.PostedFile.FileName; <p><br /> if (File1.PostedFile.ContentType.ToUpper().IndexOf("IMAGE") > -1)<br /> {<br /> System.Drawing.Image img = System.Drawing.Image.FromStream(File1.PostedFile.InputStream);<br /> int Width = img.Width;<br /> int Height = img.Height;</p> <p> if (Width > 200 || Height > 200 || File1.PostedFile.ContentLength > 1024 * 1024 * 200)<br /> {<br /> Response.Write("&lt;script language='javascript'>alert('your image don not confirm the with and height.!');&lt;/script>");<br /> }<br /> else<br /> {<br /> if (type == "jpg" || type == "gif" || type == "bmp" || type == "JPG" || type == "GIF")<br /> {</p> <p> string sPath = Server.MapPath("images/") + dataName + fileName;</p> <p> string imgPath = "pic/" + dataName + fileName;</p> <p> this.File1.PostedFile.SaveAs(sPath);</p> <p> Response.Write("&lt;script language='javascript'>alert('suceed!!!');&lt;/script>");</p> <p><br /> this.Image1.ImageUrl = imgPath;</p> <p><br /> this.Button1.Enabled = false;<br /> this.Button1.Text = "suceed!";<br /> this.Button1.Enabled = true;</p> <p> }<br /> else<br /> {<br /> Response.Write("&lt;script language='javascript'>alert('your file type wrong!');&lt;/script>");<br /> }<br /> }<br /> }<br /> else<br /> {</p> <p> Response.Write("&lt;script language='javascript'>alert('please choice the image to upload!');&lt;/script>");<br /> }<br /> }</p><span style="font-weight: bold;">Validations::</span><br />We can also use <b>RegularExpressionValidator</b> to validate the file (extensions) which you are uploading. The RE will look like this ^(([a-zA-Z]:)|(\\{2}\w+)\$?)(\\(\w[\w].*))(.jpg|.JPG)$<br /><br />and now you have to set <b>RequiredFieldValidator </b>for fileUpload. It stops you from proceeding further if you do not upload a file.Jagadeeshnoreply@blogger.comtag:blogger.com,1999:blog-10976309.post-68877254517350443472008-06-09T04:56:00.000-07:002008-06-09T04:59:22.133-07:00Getting Geographic Location(country) of internet user ASP.NET C#<p>Here is a FREE web service that will give you Country information from IP address.<br /><a href="http://www.webservicex.net/WS/WSDetails.aspx?WSID=64&amp;CATID=12">http://www.webservicex.net/WS/WSDetails.aspx?WSID=64&amp;CATID=12</a></p>But if you want to pay and get more featured service, then you may check here<br /><a href="http://www.ip2country.net/ip2country/lookup.html">http://www.ip2country.net/ip2country/lookup.html</a><br />This website does not sell Web Service, rather they sell lookup DataBase. You will need to purchase a database from them and then use your ASP.NET look up query to get county information.Jagadeeshnoreply@blogger.comtag:blogger.com,1999:blog-10976309.post-8046556412964870992008-06-09T04:52:00.000-07:002008-06-09T04:56:25.662-07:00Getting Client IP address using ASP.NET C#You can use the following three ways to get the client IP address using C#<br /><p> string test = Request.UserHostAddress.ToString();<br /> string test2 = Request.ServerVariables["REMOTE_ADDR"].ToString();<br /> string test3 = Context.Request.UserHostAddress.ToString();</p>All are returning the same values...<br /><br />Some times client can mask their IP behind a router/nat and it's spoofable.<br /><p><br /></p>Jagadeeshnoreply@blogger.comtag:blogger.com,1999:blog-10976309.post-51166493715854898382008-06-06T06:42:00.000-07:002008-06-06T06:46:31.199-07:00Menu Control (Tab View) Placing TabContainer inside another TabContainer<pre><span style=""> </span>&lt;<span class="tag">form</span><span class="attr"> id=</span><span class="attrv">"form1"</span><span class="attr"> runat=</span><span class="attrv">"server"</span>&gt;<o:p></o:p></pre><pre><span style=""> </span><o:p></o:p></pre><pre><span style=""> </span>&lt;<span class="tag">asp:Menu</span><o:p></o:p></pre><pre><span class="attr"><span style=""> </span>ID=</span><span class="attrv">"Menu1"</span><o:p></o:p></pre><pre><span class="attr"><span style=""> </span>Width=</span><span class="attrv">"168px"</span><o:p></o:p></pre><pre><span class="attr"><span style=""> </span>runat=</span><span class="attrv">"server"</span><o:p></o:p></pre><pre><span class="attr"><span style=""> </span>Orientation=</span><span class="attrv">"Horizontal"</span><o:p></o:p></pre><pre><span class="attr"><span style=""> </span>StaticEnableDefaultPopOutImage=</span><span class="attrv">"False"</span><o:p></o:p></pre><pre><span class="attr"><span style=""> </span>OnMenuItemClick=</span><span class="attrv">"Menu1_MenuItemClick"</span>&gt;<o:p></o:p></pre><pre><span style=""> </span><span style=""> </span>&lt;<span class="tag">Items</span>&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;<span class="tag">asp:MenuItem</span><span class="attr"> ImageUrl=</span><span class="attrv">"~/selectedtab.gif"</span> <o:p></o:p></pre><pre><span class="attr"><span style=""> </span>Text=</span><span class="attrv">" "</span><span class="attr"> Value=</span><span class="attrv">"0"</span>&gt;&lt;/<span class="tag">asp:MenuItem</span>&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;<span class="tag">asp:MenuItem</span><span class="attr"> ImageUrl=</span><span class="attrv">"~/unselectedtab.gif"</span> <o:p></o:p></pre><pre><span class="attr"><span style=""> </span>Text=</span><span class="attrv">" "</span><span class="attr"> Value=</span><span class="attrv">"1"</span>&gt;&lt;/<span class="tag">asp:MenuItem</span>&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;<span class="tag">asp:MenuItem</span><span class="attr"> ImageUrl=</span><span class="attrv">"~/unselectedtab.gif"</span> <o:p></o:p></pre><pre><span class="attr"><span style=""> </span>Text=</span><span class="attrv">" "</span><span class="attr"> Value=</span><span class="attrv">"2"</span>&gt;&lt;/<span class="tag">asp:MenuItem</span>&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;/<span class="tag">Items</span>&gt;<o:p></o:p></pre><pre>&lt;/<span class="tag">asp:Menu</span>&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;<span class="tag">div</span>&gt;&lt;<span class="tag">PRE</span><span class="attr"> lang=html id=pre1 style=</span><span class="attrv">"MARGIN-TOP: 0px"</span><span class="attr"> nd=</span><span class="attrv">"35"</span>&gt;<o:p></o:p></pre><pre>&lt;<span class="tag">asp:MultiView</span> <o:p></o:p></pre><pre><span class="attr"><span style=""> </span>ID=</span><span class="attrv">"MultiView1"</span><o:p></o:p></pre><pre><span class="attr"><span style=""> </span>runat=</span><span class="attrv">"server"</span><o:p></o:p></pre><pre><span class="attr"><span style=""> </span>ActiveViewIndex=</span><span class="attrv">"0"</span><span style=""> </span>&gt;&lt;<span class="tag">asp:View</span><span class="attr"> ID=</span><span class="attrv">"Tab1"</span><span class="attr"> runat=</span><span class="attrv">"server"</span><span style=""> </span>&gt;&lt;<span class="tag">table</span><span class="attr"> width=</span><span class="attrv">"600"</span><span class="attr"> height=</span><span class="attrv">"400"</span> cellpadding=0 cellspacing=0&gt;&lt;<span class="tag">tr</span><span class="attr"> valign=</span><span class="attrv">"top"</span>&gt;&lt;<span class="tag">td</span><span class="attr"> class=</span><span class="attrv">"TabArea"</span><span class="attr"> style=</span><span class="attrv">"width: 600px"</span>&gt;&lt;<span class="tag">br</span> /&gt;&lt;<span class="tag">br</span> /&gt;TAB VIEW 1 INSERT YOUR CONENT IN HERE CHANGE SELECTED IMAGE URL AS NECESSARY &lt;/<span class="tag">td</span>&gt;&lt;/<span class="tag">tr</span>&gt;&lt;/<span class="tag">table</span>&gt;&lt;/<span class="tag">asp:View</span>&gt; &lt;<span class="tag">asp:View</span><span class="attr"> ID=</span><span class="attrv">"Tab2"</span><span class="attr"> runat=</span><span class="attrv">"server"</span>&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;<span class="tag">table</span><span class="attr"> width=</span><span class="attrv">"600px"</span><span class="attr"> height=</span><span class="attrv">"400px"</span> cellpadding=0 cellspacing=0&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;<span class="tag">tr</span><span class="attr"> valign=</span><span class="attrv">"top"</span>&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;<span class="tag">td</span><span class="attr"> class=</span><span class="attrv">"TabArea"</span><span class="attr"> style=</span><span class="attrv">"width: 600px"</span>&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;<span class="tag">br</span> /&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;<span class="tag">br</span> /&gt;<o:p></o:p></pre><pre><span style=""> </span>TAB VIEW 2<o:p></o:p></pre><pre><span style=""> </span>INSERT YOUR CONENT IN HERE<o:p></o:p></pre><pre><span style=""> </span>CHANGE SELECTED IMAGE URL AS NECESSARY<o:p></o:p></pre><pre><span style=""> </span>&lt;/<span class="tag">td</span>&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;/<span class="tag">tr</span>&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;/<span class="tag">table</span>&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;/<span class="tag">asp:View</span>&gt; &lt;<span class="tag">asp:View</span><span class="attr"> ID=</span><span class="attrv">"Tab3"</span><span class="attr"> runat=</span><span class="attrv">"server"</span>&gt;<o:p></o:p></pre><pre><span style=""> </span><span style=""> </span>&lt;<span class="tag">table</span><span class="attr"> width=</span><span class="attrv">"600px"</span><span class="attr"> height=</span><span class="attrv">"400px"</span> cellpadding=0 cellspacing=0&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;<span class="tag">tr</span><span class="attr"> valign=</span><span class="attrv">"top"</span>&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;<span class="tag">td</span><span class="attr"> class=</span><span class="attrv">"TabArea"</span><span class="attr"> style=</span><span class="attrv">"width: 600px"</span>&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;<span class="tag">br</span> /&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;<span class="tag">br</span> /&gt;<o:p></o:p></pre><pre><span style=""> </span><o:p></o:p></pre><pre><span style=""> </span>&lt;<span class="tag">asp:Menu</span><o:p></o:p></pre><pre><span class="attr"><span style=""> </span>ID=</span><span class="attrv">"Menu2"</span><o:p></o:p></pre><pre><span class="attr"><span style=""> </span>Width=</span><span class="attrv">"168px"</span><o:p></o:p></pre><pre><span class="attr"><span style=""> </span>runat=</span><span class="attrv">"server"</span><o:p></o:p></pre><pre><span class="attr"><span style=""> </span>Orientation=</span><span class="attrv">"Horizontal"</span><o:p></o:p></pre><pre><span class="attr"><span style=""> </span>StaticEnableDefaultPopOutImage=</span><span class="attrv">"False"</span><o:p></o:p></pre><pre><span class="attr"><span style=""> </span>OnMenuItemClick=</span><span class="attrv">"Menu2_MenuItemClick"</span>&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;<span class="tag">Items</span>&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;<span class="tag">asp:MenuItem</span><span class="attr"> ImageUrl=</span><span class="attrv">"~/selectedtab.gif"</span> <o:p></o:p></pre><pre><span class="attr"><span style=""> </span><span style=""> </span>Text=</span><span class="attrv">" "</span><span class="attr"> Value=</span><span class="attrv">"0"</span>&gt;&lt;/<span class="tag">asp:MenuItem</span>&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;<span class="tag">asp:MenuItem</span><span class="attr"> ImageUrl=</span><span class="attrv">"~/unselectedtab.gif"</span> <o:p></o:p></pre><pre><span class="attr"><span style=""> </span>Text=</span><span class="attrv">" "</span><span class="attr"> Value=</span><span class="attrv">"1"</span>&gt;&lt;/<span class="tag">asp:MenuItem</span>&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;<span class="tag">asp:MenuItem</span><span class="attr"> ImageUrl=</span><span class="attrv">"~/unselectedtab.gif"</span> <o:p></o:p></pre><pre><span class="attr"><span style=""> </span>Text=</span><span class="attrv">" "</span><span class="attr"> Value=</span><span class="attrv">"2"</span>&gt;&lt;/<span class="tag">asp:MenuItem</span>&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;/<span class="tag">Items</span>&gt;<o:p></o:p></pre><pre>&lt;/<span class="tag">asp:Menu</span>&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;<span class="tag">div</span>&gt;&lt;<span class="tag">PRE</span><span class="attr"> lang=html id=pre2 style=</span><span class="attrv">"MARGIN-TOP: 0px"</span><span class="attr"> nd=</span><span class="attrv">"35"</span>&gt;&lt;<span class="tag">asp:MultiView</span> <o:p></o:p></pre><pre><span class="attr"><span style=""> </span>ID=</span><span class="attrv">"MultiView2"</span><o:p></o:p></pre><pre><span class="attr"><span style=""> </span>runat=</span><span class="attrv">"server"</span><o:p></o:p></pre><pre><span class="attr"><span style=""> </span>ActiveViewIndex=</span><span class="attrv">"0"</span><span style=""> </span>&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;<span class="tag">asp:View</span><span class="attr"> ID=</span><span class="attrv">"View1"</span><span class="attr"> runat=</span><span class="attrv">"server"</span><span style=""> </span>&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;<span class="tag">table</span><span class="attr"> width=</span><span class="attrv">"600"</span><span class="attr"> height=</span><span class="attrv">"400"</span> cellpadding=0 cellspacing=0&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;<span class="tag">tr</span><span class="attr"> valign=</span><span class="attrv">"top"</span>&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;<span class="tag">td</span><span class="attr"> class=</span><span class="attrv">"TabArea"</span><span class="attr"> style=</span><span class="attrv">"width: 600px"</span>&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;<span class="tag">br</span> /&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;<span class="tag">br</span> /&gt;<o:p></o:p></pre><pre><span style=""> </span>TAB VIEW 1<o:p></o:p></pre><pre><span style=""> </span>INSERT YOUR CONENT IN HERE<o:p></o:p></pre><pre><span style=""> </span>CHANGE SELECTED IMAGE URL AS NECESSARY<o:p></o:p></pre><pre><span style=""> </span>&lt;/<span class="tag">td</span>&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;/<span class="tag">tr</span>&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;/<span class="tag">table</span>&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;/<span class="tag">asp:View</span>&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;<span class="tag">asp:View</span><span class="attr"> ID=</span><span class="attrv">"View2"</span><span class="attr"> runat=</span><span class="attrv">"server"</span>&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;<span class="tag">table</span><span class="attr"> width=</span><span class="attrv">"600px"</span><span class="attr"> height=</span><span class="attrv">"400px"</span> cellpadding=0 cellspacing=0&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;<span class="tag">tr</span><span class="attr"> valign=</span><span class="attrv">"top"</span>&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;<span class="tag">td</span><span class="attr"> class=</span><span class="attrv">"TabArea"</span><span class="attr"> style=</span><span class="attrv">"width: 600px"</span>&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;<span class="tag">br</span> /&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;<span class="tag">br</span> /&gt;<o:p></o:p></pre><pre><span style=""> </span>TAB VIEW 2<o:p></o:p></pre><pre><span style=""> </span>INSERT YOUR CONENT IN HERE<o:p></o:p></pre><pre><span style=""> </span>CHANGE SELECTED IMAGE URL AS NECESSARY<o:p></o:p></pre><pre><span style=""> </span>&lt;/<span class="tag">td</span>&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;/<span class="tag">tr</span>&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;/<span class="tag">table</span>&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;/<span class="tag">asp:View</span>&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;<span class="tag">asp:View</span><span class="attr"> ID=</span><span class="attrv">"View3"</span><span class="attr"> runat=</span><span class="attrv">"server"</span>&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;<span class="tag">table</span><span class="attr"> width=</span><span class="attrv">"600px"</span><span class="attr"> height=</span><span class="attrv">"400px"</span> cellpadding=0 cellspacing=0&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;<span class="tag">tr</span><span class="attr"> valign=</span><span class="attrv">"top"</span>&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;<span class="tag">td</span><span class="attr"> class=</span><span class="attrv">"TabArea"</span><span class="attr"> style=</span><span class="attrv">"width: 600px"</span>&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;<span class="tag">br</span> /&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;<span class="tag">br</span> /&gt;<o:p></o:p></pre><pre><span style=""> </span>TAB VIEW 3<o:p></o:p></pre><pre><span style=""> </span>INSERT YOUR CONENT IN HERE<o:p></o:p></pre><pre><span style=""> </span>CHANGE SELECTED IMAGE URL AS NECESSARY<o:p></o:p></pre><pre><span style=""> </span>&lt;/<span class="tag">td</span>&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;/<span class="tag">tr</span>&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;/<span class="tag">table</span>&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;/<span class="tag">asp:View</span>&gt;<o:p></o:p></pre><pre>&lt;/<span class="tag">asp:MultiView</span>&gt;<o:p></o:p></pre><pre> &lt;/<span class="tag">td</span>&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;/<span class="tag">tr</span>&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;/<span class="tag">table</span>&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;/<span class="tag">asp:View</span>&gt;&lt;/<span class="tag">asp:MultiView</span>&gt;&lt;/<span class="tag">PRE</span>&gt;&lt;/<span class="tag">div</span>&gt;<o:p></o:p></pre><pre><span style=""> </span>&lt;/<span class="tag">form</span>&gt;<o:p></o:p></pre> <p><span style="font-weight: bold;">In C#</span><o:p></o:p></p> <pre><span style=""> </span><span class="kwd">protected void</span> Menu1_MenuItemClick(<span class="kwd">object</span> sender, MenuEventArgs e)<o:p></o:p></pre><pre><span style=""> </span>{<o:p></o:p></pre><pre><span style=""> </span>MultiView1.ActiveViewIndex = Int32.Parse(e.Item.Value);<o:p></o:p></pre><pre><span style=""> </span><span class="kwd">int</span> i;<o:p></o:p></pre><pre><span style=""> </span><span class="cmt">// Make the selected menu item reflect the correct imageurl</span><o:p></o:p></pre><pre><span style=""> </span><span class="kwd">for</span> (i = 0; (i &lt;= (Menu1.Items.Count - 1)); i++)<o:p></o:p></pre><pre><span style=""> </span>{<o:p></o:p></pre><pre><span style=""> </span><span style=""> </span><span class="kwd">if</span> (e.Item.Value.Equals(i+<span class="st">""</span>))<o:p></o:p></pre><pre><span style=""> </span>{<o:p></o:p></pre><pre><span style=""> </span>Menu1.Items[i].ImageUrl = <span class="st">"selectedtab.gif"</span>;<o:p></o:p></pre><pre><span style=""> </span>}<o:p></o:p></pre><pre><span style=""> </span><span class="kwd">else</span><o:p></o:p></pre><pre><span style=""> </span>{<o:p></o:p></pre><pre><span style=""> </span>Menu1.Items[i].ImageUrl = <span class="st">"unselectedtab.gif"</span>;<o:p></o:p></pre><pre><span style=""> </span>}<o:p></o:p></pre><pre><span style=""> </span>}<o:p></o:p></pre><pre><span style=""> </span>}<o:p></o:p></pre><pre><span style=""> </span><span style=""> </span><span class="kwd">protected void</span> Menu2_MenuItemClick(<span class="kwd">object</span> sender, MenuEventArgs e)<o:p></o:p></pre><pre><span style=""> </span>{<o:p></o:p></pre><pre><span style=""> </span>MultiView2.ActiveViewIndex = Int32.Parse(e.Item.Value);<o:p></o:p></pre><pre><span style=""> </span><span class="kwd">int</span> i;<o:p></o:p></pre><pre><span style=""> </span><span class="cmt">// Make the selected menu item reflect the correct imageurl</span><o:p></o:p></pre><pre><span style=""> </span><span class="kwd">for</span> (i = 0; (i &lt;= (Menu1.Items.Count - 1)); i++)<o:p></o:p></pre><pre><span style=""> </span>{<o:p></o:p></pre><pre><span style=""> </span><span class="kwd">if</span> (e.Item.Value.Equals(i + <span class="st">""</span>))<o:p></o:p></pre><pre><span style=""> </span>{<o:p></o:p></pre><pre><span style=""> </span>Menu2.Items[i].ImageUrl = <span class="st">"selectedtab.gif"</span>;<o:p></o:p></pre><pre><span style=""> </span>}<o:p></o:p></pre><pre><span style=""> </span><span class="kwd">else</span><o:p></o:p></pre><pre><span style=""> </span>{<o:p></o:p></pre><pre><span style=""> </span>Menu2.Items[i].ImageUrl = <span class="st">"unselectedtab.gif"</span>;<o:p></o:p></pre><pre><span style=""> </span>}<o:p></o:p></pre><pre><span style=""> </span>}<o:p></o:p></pre> <p class="MsoNormal"><o:p> </o:p></p>Jagadeeshnoreply@blogger.comtag:blogger.com,1999:blog-10976309.post-23071568612051783132008-06-06T06:37:00.000-07:002008-06-06T06:41:09.526-07:00Crystal Reports asks for Username and Password while loading - ASP.NET 2.0<p style="color: rgb(204, 102, 0); font-weight: bold;">Here is the code for that in VB.NET:</p><p>On the page load or button click or whatever you want to run the report on you need to add the following: configureCRYSTALREPORT() </p><pre class="coloredcode"><span class="kwd">Private Sub</span> configureCRYSTALREPORT()<br /> <span class="kwd">Dim</span> myConnectionInfo <span class="kwd">As New</span> ConnectionInfo()<br /> myConnectionInfo.DatabaseName = <span class="st">"DatabserName"</span><br /> myConnectionInfo.UserID = <span class="st">"UID"</span><br /> myConnectionInfo.Password = <span class="st">"PWD"</span><br /> setDBLOGONforREPORT(myConnectionInfo)<br /><span class="kwd">End Sub<br /><br />Private Sub</span> setDBLOGONforREPORT(<span class="kwd">ByVal</span> myconnectioninfo <span class="kwd">As</span> ConnectionInfo)<br /> <span class="kwd">Dim</span> mytableloginfos <span class="kwd">As New</span> TableLogOnInfos()<br /> mytableloginfos = CrystalReportViewer1.LogOnInfo<br /> <span class="kwd">For Each</span> myTableLogOnInfo <span class="kwd">As</span> TableLogOnInfo <span class="kwd">In</span> mytableloginfos<br /> myTableLogOnInfo.ConnectionInfo = myconnectioninfo<br /> <span class="kwd">Next<br /><br />End Sub</span> </pre><p> -------------------------------------------------------------------------------------------------------------------------------------------------</p><p><span style="font-weight: bold; color: rgb(204, 102, 0);">Here is the code for that in C#:</span><br /><br /> private void setDBLOGONforREPORT(ConnectionInfo myconnectioninfo)<br /> {<br /> TableLogOnInfos mytableloginfos = new TableLogOnInfos();<br /> mytableloginfos = CrystalReportViewer1.LogOnInfo;<br /> foreach (TableLogOnInfo myTableLogOnInfo in mytableloginfos)<br /> {<br /> myTableLogOnInfo.ConnectionInfo = myconnectioninfo;<br /> }<br /><br /> }<br /><br />In Page Load....<br /> ConnectionInfo myConnectionInfo = new ConnectionInfo();<br /> myConnectionInfo.ServerName = "serverName";<br /> myConnectionInfo.DatabaseName = "DatabaseName";<br /> myConnectionInfo.UserID = "sa";<br /> myConnectionInfo.Password = "pwd";<br /> setDBLOGONforREPORT(myConnectionInfo);</p>Jagadeeshnoreply@blogger.comtag:blogger.com,1999:blog-10976309.post-72181264545090020732008-06-06T06:33:00.000-07:002008-06-06T06:37:09.341-07:00Go back to previous page without Loosing Data ASP.NETWe can use client-side script (JS) for this purpose...<br /><br /><span style="font-size:100%;"><pre class="coloredcode">&lt;<span class="tag">input</span><span class="attr"> type=</span><span class="attrv">"button"</span><span class="attr"> value=</span><span class="attrv">"Click here to go back"</span><span class="attr"> onclick=</span><span class="attrv">"javascript: return history.back();"</span> /> </pre> or<br /></span><p><span style="font-size:100%;"><pre class="coloredcode"><span><span style="font-size:100%;"><pre class="coloredcode">&lt;<span class="tag">input</span><span class="attr"> type=</span><span class="attrv">"button"</span><span class="attr"> value=</span><span class="attrv">"Click here to go back"</span><span class="attr"> onclick=</span><span class="attrv">"javascript: return history.go(-1);"</span> /></pre></span></span></pre></span></p>or<br /><br /><span><span><span><span style="font-size:-1;"><pre class="coloredcode"><span style="font-size:100%;"><span class="attrv">javascript: return history.go(-1);<br /><br />or<br /><br /></span>http://www.aspdotnetfaq.com/Faq/How-to-make-Cross-Page-Postback-in-ASP-Net.aspx </span><br /></pre></span></span></span></span>Jagadeeshnoreply@blogger.comtag:blogger.com,1999:blog-10976309.post-22005540803273670832008-06-06T05:44:00.000-07:002008-06-19T05:46:27.199-07:00Useing HTML tags in C# or VB.Net codebehindIts simple to use HTML tags in Code behind and display in ASP.NET web pages....<br /><br /><span style="font-weight: bold;">Method 1:</span><br /><p>in .cs page</p><p> string t = txtBody.Text;<br /> MyEmailBody.InnerHtml = Server.HtmlDecode(t);</p><p>in .aspx page</p><p>&lt;div id="MyEmailBody" runat="server">&lt;/div> </p><div id="MyEmailBody" runat="server"></div> <p></p><p>It may some times require to change the ValidateRequest="false".</p><p><span style="font-weight: bold;">Method 2:</span><br /></p><p>we can use Literal controls, to view HTML tags in .aspx pages from code behind.</p><p>in . aspx page<br /></p><p> &lt;asp:Literal runat="server">&lt;/asp:Literal></p><p>in .cs page</p><p>this.Controls.Add(new LiteralControl("&lt;b>This is Bold&lt;/b>"));</p><p>Hope this helps you in using HTML tags in codebehind.</p>Jagadeeshnoreply@blogger.comtag:blogger.com,1999:blog-10976309.post-54276996046049315012008-06-06T05:36:00.000-07:002008-06-06T05:44:31.032-07:00Sending HTML Emails using ASP.NET, C# with embedded imagesToday I found these useful links that helps us to embed the images in the HTML emails we are sending using ASP.NET &amp; C#.<br /><br /><span style="font-weight: bold; color: rgb(204, 102, 0);">Simple HTML Format emails::<br /><br /></span> private void SendClick() {<br /> MailMessage mailMsg = new MailMessage();<br /> try {<br /> mailMsg.To = "<tomailid>";<br /> mailMsg.From = "<frommailid>";<br /> mailMsg.BodyFormat = MailFormat.Html;<br /> mailMsg.Subject = "Statistics Report";<br /> mailMsg.Body ="content";<br /> SmtpMail.SmtpServer ="serverHost";<br /> SmtpMail.Send(mailMsg);<br /> }<br /> catch (Exception ex) {<br /> Response.Write(ex.Message);<br /> }<br /> } <p style="font-weight: bold; color: rgb(204, 102, 0);">You can download the example code of sending HTML emails using ASP.NET here...</p> <p><a href="http://www.asp101.com/Samples/email_html_aspx.asp">http://www.asp101.com/Samples/email_html_aspx.asp</a></p> <p><a href="http://download.microsoft.com/download/d/f/c/dfc7a022-3426-4868-b23c-3818a6e54305/HtmlEmail.zip">http://download.microsoft.com/download/d/f/c/dfc7a022-3426-4868-b23c-3818a6e54305/HtmlEmail.zip</a></p><span style="color: rgb(204, 102, 0);font-size:180%;" ><span style="font-weight: bold;">Links to Embed Images in HTML Emails Using ASP.NET &amp; C#<br /><br /></span></span>To have a basic idea of mailing with an embedded image or object from ASP.NET 2.0 using SMTP Client. You can visit the following links...<br /><br /><a href="http://aspalliance.com/1354_Sending_HTML_Mail_with_Embedded_Image_in_NET.8" title="http://aspalliance.com/1354_Sending_HTML_Mail_with_Embedded_Image_in_NET.8" target="_blank">http://aspalliance.com/1354_Sending_HTML_Mail_with_Embedded_Image_in_NET.8</a><br /><br /><a href="http://www.codeproject.com/kb/IP/EmailByjebarson.aspx">http://www.codeproject.com/kb/IP/EmailByjebarson.aspx</a><br /><br /><a href="http://www.codeproject.com/KB/aspnet/inkrajesh.aspx">http://www.codeproject.com/KB/aspnet/inkrajesh.aspx</a><br /><span style="color: rgb(204, 102, 0);font-size:180%;" ><span style="font-weight: bold;"><br /></span></span>Jagadeeshnoreply@blogger.comtag:blogger.com,1999:blog-10976309.post-59975603490596538992008-06-06T05:25:00.000-07:002008-06-06T05:36:10.458-07:00Sending emails using ASP.NET, C# or VB.NET<span style="font-size:85%;">For sending mails from asp.net, C# Using </span><span style="font-size:85%;">System.Web.Mail name space.<br /></span><blockquote><p><span style="color: rgb(0, 0, 255);font-size:85%;" >using</span><span style="font-size:85%;"> System.Web.Mail;</span></p><span style="font-size:85%;"><span style="color: rgb(0, 0, 255);font-size:85%;" >public</span><span style="font-size:85%;"> </span><span style="color: rgb(0, 0, 255);font-size:85%;" >static</span><span style="font-size:85%;"> </span><span style="color: rgb(0, 0, 255);font-size:85%;" >string</span><span style="font-size:85%;"> SendMail(</span><span style="color: rgb(0, 0, 255);font-size:85%;" >int</span><span style="font-size:85%;"> pintUserID, </span><span style="color: rgb(0, 0, 255);font-size:85%;" >string</span><span style="font-size:85%;"> pstrMailTo, </span><span style="color: rgb(0, 0, 255);font-size:85%;" >string</span><span style="font-size:85%;"> pstrMailBcc,</span><span style="color: rgb(0, 0, 255);font-size:85%;" >string</span><span style="font-size:85%;"> pstrMailCc,</span><span style="color: rgb(0, 0, 255);font-size:85%;" >string</span><span style="font-size:85%;"> pstrMailSubject,</span><span style="color: rgb(0, 0, 255);font-size:85%;" >string</span><span style="font-size:85%;"> pstrMailBody,</span><span style="color: rgb(0, 0, 255);font-size:85%;" >string</span><span style="font-size:85%;"> pstrAttachFilePath)</span></span><span style="font-size:85%;"> </span><p><span style="font-size:85%;">{</span></p> <p><span style="color: rgb(0, 0, 255);font-size:85%;" >try</span></p><span style="font-size:85%;"> <p>{</p></span><span style="color: rgb(0, 128, 128);font-size:85%;" >MailMessage</span><span style="font-size:85%;"> objMail = </span><span style="color: rgb(0, 0, 255);font-size:85%;" >new</span><span style="font-size:85%;"> </span><span style="color: rgb(0, 128, 128);font-size:85%;" >MailMessage</span><span style="font-size:85%;">();</span><span style="font-size:85%;"> </span><p><span style="font-size:85%;">objMail.From = System.Configuration.</span><span style="color: rgb(0, 128, 128);font-size:85%;" >ConfigurationSettings</span><span style="font-size:85%;">.AppSettings[</span><span style="color: rgb(128, 0, 0);font-size:85%;" >"FromEmailID"</span><span style="font-size:85%;">];</span></p> <p><span style="color: rgb(0, 128, 0);font-size:85%;" >//objMail.From =System.Web.HttpContext.Current.Session["OfficeEmailID"].ToString() ;</span></p><span style="font-size:85%;"> <p>objMail.To = pstrMailTo;</p> <p>objMail.Bcc = pstrMailBcc;</p> <p>objMail.Cc = pstrMailCc;</p> <p>objMail.Subject = pstrMailSubject;</p></span><span style="color: rgb(0, 128, 128);font-size:85%;" >MailAttachment</span><span style="font-size:85%;"> Attachment = </span><span style="color: rgb(0, 0, 255);font-size:85%;" >null</span><span style="font-size:85%;">;</span><span style="color: rgb(0, 0, 255);font-size:85%;" >if</span><span style="font-size:85%;"> (</span><span style="color: rgb(0, 128, 128);font-size:85%;" >File</span><span style="font-size:85%;">.Exists(pstrAttachFilePath))</span><span style="font-size:85%;"> <p>{</p>Attachment = </span><span style="color: rgb(0, 0, 255);font-size:85%;" >new</span><span style="font-size:85%;"> </span><span style="color: rgb(0, 128, 128);font-size:85%;" >MailAttachment</span><span style="font-size:85%;">(pstrAttachFilePath);</span><span style="font-size:85%;"> </span><p><span style="font-size:85%;">}</span></p> <p><span style="font-size:85%;">objMail.Attachments.Add(Attachment);</span></p> <p><span style="color: rgb(0, 128, 128);font-size:85%;" >SmtpMail</span><span style="font-size:85%;">.SmtpServer = </span><span style="color: rgb(128, 0, 0);font-size:85%;" >"localhost"</span><span style="font-size:85%;">;</span><span style="color: rgb(0, 128, 0);font-size:85%;" >//System.Configuration.ConfigurationSettings.AppSettings["SMTPServerIP"]; </span></p><span style="color: rgb(0, 128, 128);font-size:85%;" >SmtpMail</span><span style="font-size:85%;">.Send(objMail);</span><span style="color: rgb(0, 0, 255);font-size:85%;" >return</span><span style="font-size:85%;"> </span><span style="color: rgb(128, 0, 0);font-size:85%;" >"TRUE"</span><span style="font-size:85%;">;</span><span style="font-size:85%;"> <p>}</p></span><span style="color: rgb(0, 0, 255);font-size:85%;" >catch</span><span style="font-size:85%;">(</span><span style="color: rgb(0, 128, 128);font-size:85%;" >Exception</span><span style="font-size:85%;"> Ex)</span><span style="font-size:85%;"> <p>{</p></span><span style="color: rgb(0, 0, 255);font-size:85%;" >return</span><span style="font-size:85%;"> Ex.Message;</span><span style="font-size:85%;"> <p>}</p> <p>}</p><p>In Config file</p><span style="color: rgb(0, 0, 255);font-size:85%;" > </span><p><span style="color: rgb(0, 0, 255);font-size:85%;" >&lt;</span><span style="color: rgb(128, 0, 0);font-size:85%;" >add</span><span style="color: rgb(0, 0, 255);font-size:85%;" > </span><span style="color: rgb(255, 0, 0);font-size:85%;" >key</span><span style="color: rgb(0, 0, 255);font-size:85%;" >=</span><span style="font-size:85%;">"</span><span style="color: rgb(0, 0, 255);font-size:85%;" >SMTPServerIP</span><span style="font-size:85%;">"</span><span style="color: rgb(0, 0, 255);font-size:85%;" > </span><span style="color: rgb(255, 0, 0);font-size:85%;" >value</span><span style="color: rgb(0, 0, 255);font-size:85%;" >=</span><span style="font-size:85%;">"</span><span style="color: rgb(0, 0, 255);font-size:85%;" >192.168.1.11</span><span style="font-size:85%;">"</span><span style="color: rgb(0, 0, 255);font-size:85%;" >> &lt;/<!--</span--><span style="color: rgb(128, 0, 0);font-size:85%;" >add</span><span style="color: rgb(0, 0, 255);font-size:85%;" >></span></span></p> <p> </p> <p>Call this function SendMail &amp; enable your system SMTP server.</p><p><span style="font-weight: bold; color: rgb(204, 102, 0);">Useful links for sending email </span><br /></p><p><a href="http://www.asp101.com/Samples/email_html_aspx.asp">http://www.asp101.com/Samples/email_html_aspx.asp</a><br /><br /><a href="http://download.microsoft.com/download/d/f/c/dfc7a022-3426-4868-b23c-3818a6e54305/HtmlEmail.zip">http://download.microsoft.com/download/d/f/c/dfc7a022-3426-4868-b23c-3818a6e54305/HtmlEmail.zip</a></p></span><p><a href="http://www.codeproject.com/KB/aspnet/Email_Sending_Programme.aspx">http://www.codeproject.com/KB/aspnet/Email_Sending_Programme.aspx</a></p> <p><a href="http://www.codersource.net/csharp_sending_emails.aspx">http://www.codersource.net/csharp_sending_emails.aspx</a></p></blockquote>Jagadeeshnoreply@blogger.comtag:blogger.com,1999:blog-10976309.post-4504453395080969142008-06-06T00:39:00.000-07:002008-06-06T01:17:10.768-07:00How to Embed Flash, Videos in ASP.Net web pages<span style=";font-family:verdana;font-size:100%;" >To embed flash and videos we can use simple HTML embed tag for this purpose.<br /><br />For example.<br /><br /><<span class="start-tag">embed</span><span class="attribute-name"> src</span>=<span class="attribute-value">"images/flash02.swf" </span><span class="attribute-name">quality</span>=<span class="attribute-value">"high" </span><span class="attribute-name">bgcolor</span>=<span class="attribute-value">"#ffffff" </span><span class="attribute-name">width</span>=<span class="attribute-value">"775" </span><span class="attribute-name">height</span>=<span class="attribute-value">"24" </span><span class="attribute-name">name</span>=<span class="attribute-value">"flash" </span><span class="attribute-name">align</span>=<span class="attribute-value">"middle" </span><span class="attribute-name">allowScriptAccess</span>=<span class="attribute-value">"sameDomain" </span><span class="attribute-name">allowFullScreen</span>=<span class="attribute-value">"false" </span><span class="attribute-name">type</span>=<span class="attribute-value">"application/x-shockwave-flash" </span><span class="attribute-name">pluginspage</span>=<span class="attribute-value">"http://www.macromedia.com/go/getflashplayer" </span><span class="error"><span class="attribute-name">/</span></span>><br /><br />enables us to display flash files in Asp.net web pages.<br /><br /><span style="color: rgb(204, 102, 0); font-weight: bold;">Using JavaScript to display flash in Webpages.<br /><br /></span></span><pre id="line187"><br /></pre><script type="text/javascript" src="FlashSwfObject.js"></script>1. &lt;script type="text/javascript" src="FlashSwfObject.js">&lt;/script><span style="font-family: monospace;"> </span> <p>Use div tag where you want to display the SWF, use a unique <i>id</i>:</p><pre><br />&lt;div id="flashbanner">Your SWF will display here!!.&lt;/div> </pre>We can instantiate the<span style="font-family:monospace;"> </span>FlashSwfObject using below code.<pre id="line187"><span class="entity"></span><br />&lt;script type="text/javascript"><span class="entity"></span><br /> var so = new SWFObject('MyMedia.swf','mpl','300','250','7');<br /> so.addParam('allowfullscreen','true');<br /> so.addVariable('file','playlist.xml');<br /> so.addVariable('backcolor','0x000000');<br /> so.addVariable('autostart','true');<br /> so.write('flashbanner');<br />&lt;<span class="entity"></span>/script></pre> <script type="text/javascript"> var so = new SWFObject('mp3player.swf','mpl','300','250','7'); so.addParam('allowfullscreen','true'); so.addVariable('file','playlist.xml'); so.addVariable('backcolor','0x000000'); so.addVariable('autostart','true'); so.write('flashbanner'); </script>Jagadeeshnoreply@blogger.comtag:blogger.com,1999:blog-10976309.post-14370680755543230122008-06-06T00:25:00.000-07:002008-06-06T00:36:34.222-07:00Image Resize using ASP.NET C# and displaying as Thumbnails dynamicallyThe following code helps us to <span style="font-weight: bold;">Resize images</span> and display them as thumbnails dynamically using ASP.NET C#.<br /><br />protected void Page_Load(object sender, EventArgs e)<br /> {<br /> string BasePath = Server.MapPath(".");<br /> Bitmap Img, ImgTemp;<br /><br /> ImgTemp = new Bitmap(BasePath + "\\images\\Balaji.jpg");<br /> Img = new Bitmap(ImgTemp, 200, 300);<br /><br /> Graphics Graph;<br /> Graph = Graphics.FromImage(Img);<br /><br /> Img.Save(Response.OutputStream, ImageFormat.Jpeg);<br /> Graph.DrawImage(Img, 0, 0);<br /><br /> ImgTemp.Dispose();<br /><br /> Img.Dispose();<br /> }<br /><br />This function helps us to set the height and width of the new image Bitmap(ImgTemp, 200, 300);<span style="font-weight: bold;"></span>Jagadeeshnoreply@blogger.comtag:blogger.com,1999:blog-10976309.post-34898472191288282172008-04-01T01:18:00.000-07:002008-04-01T01:21:07.532-07:00.NET Interview questions and Answers: 14<span style="font-family: verdana;font-size:130%;" ><span style="font-weight: bold;">Localization/Globalization<br /><br /></span></span> <ol style="margin-top: 0in;" start="1" type="1"><li class="MsoNormal" style="">What is Unicode and why was it introduced? <o:p></o:p></li><li class="MsoNormal" style="">Does .NET support UNICODE and how do you know it supports? <o:p></o:p></li><li class="MsoNormal" style="">What’s the difference between localization and globalization?<o:p></o:p></li><li class="MsoNormal" style="">What architecture decisions you should consider while planning for international software’s?<o:p></o:p></li><li class="MsoNormal" style="">How do we get the current culture of the environment in windows and ASP.NET?<o:p></o:p></li><li class="MsoNormal" style="">Which are the important namespaces during localization and globalization?<o:p></o:p></li><li class="MsoNormal" style="">What are resource files and how do we generate resource files?<o:p></o:p></li><li class="MsoNormal" style="">Can resource file be in any other format other than resx extensions?<o:p></o:p></li><li class="MsoNormal" style="">How is resource files actually used in project? <o:p></o:p></li><li class="MsoNormal" style="">How can we use Culture Auto in project? <o:p></o:p></li><li class="MsoNormal" style="">What are satellite assemblies? <o:p></o:p></li><li class="MsoNormal" style="">How do we generate Satellite assemblies? <o:p></o:p></li><li class="MsoNormal" style="">What is AL.EXE and RESGEN.EXE? <o:p></o:p></li><li class="MsoNormal" style="">What’s the use of resource manager class? <o:p></o:p></li><li class="MsoNormal" style="">What precautions do we need to take while deploying satellite assemblies?<o:p></o:p></li><li class="MsoNormal" style="">Can we get a strongly typed resource class rather than using resource manager?<o:p></o:p></li><li class="MsoNormal" style="">Explain fundamentals of “GetGlobalResourceObject” and “GetLocalResourceObject” functions?<o:p></o:p></li><li class="MsoNormal" style="">Can we sign a satellite assembly?<o:p></o:p></li><li class="MsoNormal" style="">Can you explain collation sequence in sql server? <o:p></o:p></li><li class="MsoNormal" style="">How do we define collation sequence for database and tables?<o:p></o:p></li><li class="MsoNormal" style="">Can we change the order in a select query with a specified collation sequence?<o:p></o:p></li><li class="MsoNormal" style="">What are the best practices to be followed while implementing globalization and localization?<o:p></o:p></li><li class="MsoNormal" style="">Why is the culture set to the current thread?</li></ol>Jagadeeshnoreply@blogger.comtag:blogger.com,1999:blog-10976309.post-55410766783646386732008-04-01T01:17:00.000-07:002008-04-01T01:18:36.422-07:00.NET Interview questions and Answers: 13<span style="font-size:130%;"><span style="font-weight: bold;">XML</span></span><br /><br /> <ol style="margin-top: 0in; font-family: verdana;" start="1" type="1"><li class="MsoNormal" style=""><span style="font-size:100%;">What is XML?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What is the version information in XML?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What is ROOT element in XML?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">If XML does not have closing tag will it work?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">Is XML case sensitive?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What’s the difference between XML and HTML?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">Is XML meant to replace HTML?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">Can you explain why your project needed XML?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What is DTD (Document Type definition)?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What is well formed XML?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What is a valid XML?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What is CDATA section in XML?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What is CSS?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What is XSL?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What is Element and attributes in XML?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">Which are the namespaces in .NET used for XML?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What are the standard ways of parsing XML document?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">In What scenarios will you use a DOM parser and SAX parser?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">How was XML handled during COM times?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What’s the main difference between MSML and .NET Framework XML classes?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What are the core functionalities in XML .NET framework? Can you explain in detail<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">those functionalities?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What is XSLT?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">Define XPATH?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What’s the concept of XPOINTER?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What is an XMLReader Class?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What is XMLTextReader?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">How do we access attributes using “XmlReader”?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">Explain simple Walk through of XmlReader ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What does XmlValidatingReader class do?</span></li></ol>Jagadeeshnoreply@blogger.comtag:blogger.com,1999:blog-10976309.post-76175207469788437762008-04-01T01:16:00.000-07:002008-04-01T01:17:23.955-07:00.NET Interview questions and Answers: 12<span style="font-weight: bold;"><span style="font-size:130%;">Project Management</span><br /><span style="font-family: verdana;font-size:100%;" ><br /></span></span> <ol style="margin-top: 0in; font-family: verdana;" start="1" type="1"><li class="MsoNormal" style=""><span style="font-size:100%;">What is project management?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">Is spending in IT project’s constant through out the project?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">Who is a stakeholder ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">Can you explain project life cycle ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">Twist :- How many phases are there in software project ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">Are risk constant through out the project ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">Can you explain different software development life cycles ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What is triple constraint triangle in project management ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What is a project baselines ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What is effort variance?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">How is normally a project management plan document organized ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">How do you estimate a project?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What is CAR (Causal Analysis and Resolution)?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What is DAR (Decision Analysis and Resolution)?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What is a fish bone diagram ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">Twist:- What is Ishikawa diagram ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What is pareto principle ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">Twist :- What is 80/20 principle ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">How do you handle change request?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What is internal change request?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What is difference between SITP and UTP in testing ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What are the software you have used for project management?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What are the metrics followed in project management?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">Twist: - What metrics will you look at in order to see the project is moving successfully?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">You have people in your team who do not meet there deadlines or do not perform what are the actions you will take ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">Twist :- Two of your resources have conflict’s between them how would you sort it out ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What is black box testing and White box testing?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What’s the difference between Unit Testing, Assembly Testing and Regression testing?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What is V model in testing?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">How do you start a project?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">How did you do resource allocations?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">How do you do code reviews ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What is CMMI?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What are the five levels in CMMI?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What is continuous and staged representation?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">Can you explain the process areas?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What is SIX sigma?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What is DMAIC and DMADV ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What are the various roles in Six Sigma implementation?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What are function points?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">Twist: - Define Elementary process in FPA?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What are different types of elementary process in FPA?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What are the different elements in Functions points?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">Can you explain in GSC and VAF in function points?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What are unadjusted function points and how is it calculated?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">Can you explain steps in function points?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What is the FP per day in your current company?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">Twist :- What is your company’s productivity factor ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">Do you know Use Case points?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What is COCOMO I, COCOMOII and COCOMOIII?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What is SMC approach of estimation?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">How do you estimate maintenance project and change requests?</span></li></ol>Jagadeeshnoreply@blogger.comtag:blogger.com,1999:blog-10976309.post-71550219338294802222008-04-01T01:14:00.000-07:002008-04-01T01:16:04.678-07:00.NET Interview questions and Answers: 11<span style="font-family: verdana;font-size:130%;" ><span style="font-weight: bold;">UML</span></span><br /><span style="font-family: verdana;font-size:100%;" ><br /></span> <ol style="margin-top: 0in; font-family: verdana;" start="1" type="1"><li class="MsoNormal" style=""><span style="font-size:100%;">What is UML?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">How many types of diagrams are there in UML ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">Twist :- Explain in short all types of diagrams in UML ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What are advantages of using UML?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">Twist: - What is Modeling and why UML ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What’s the sequence of UML diagrams in project?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">Twist: - How did you implement UML in your project?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">Just a small Twist: - Do I need all UML diagrams in a project?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">Give a small brief explanation of all Elements in activity diagrams?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">Explain Different elements of a collaboration diagram ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">Explain Component diagrams ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">Explain all parts of a deployment diagram?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">Describe various components in sequence diagrams?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What are the element in State Chart diagrams ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">Describe different elements in Static Chart diagrams ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">Explain different elements of a Use Case ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">Twist: - What’s difference between Activity and sequence diagrams?(I leave this to the readers)</span></li></ol> <blockquote><br /></blockquote>Jagadeeshnoreply@blogger.comtag:blogger.com,1999:blog-10976309.post-38201627424294959402008-04-01T01:12:00.000-07:002008-04-01T01:14:22.394-07:00.NET Interview questions and Answers: 10<span style="font-family: verdana;font-size:100%;" ><span style="font-weight: bold;"><span style="font-size:130%;">SQL SERVER</span><br /><br /></span></span> <ol style="margin-top: 0in; font-family: verdana;" start="1" type="1"><li class="MsoNormal" style=""><span style="font-size:100%;">What is normalization? What are different type of normalization?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What is denormalization ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What is a candidate key ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What are different types of joins and whats the difference between them ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What are indexes and What is the difference between clustered and nonclustered indexes?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">How can you increase SQL performance ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What is the use of OLAP ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What's a measure in OLAP ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What are dimensions in OLAP ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What are levels in dimensions ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What are fact tables and dimension tables in OLAP ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">Twist :- can you explain the star schema for OLAP ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What is DTS?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What is fillfactor ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">Twist :- When does plage split occurs ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What is RAID and how does it work ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What's the difference between DELETE TABLE and TRUNCATE TABLE commands?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What are the problems that can occur if you do not implement locking properly in SQL SERVER ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What are different transaction levels in SQL SERVER ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">Twist :- what are different types of locks in SQL SERVER ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What are different locks in SQL SERVER ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">Can we suggest locking hints to SQL SERVER ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What is LOCK escalation?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What are the different ways of moving data/databases between servers and databases in SQL Server?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What are advantages of SQL 2000 over SQl 7.0 ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What is the difference between a HAVING CLAUSE and a WHERE CLAUSE?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What is difference between <st1:place st="on">UNION</st1:place> and UNION ALL SQL syntax ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">How can you raise custom errors from stored procedure ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What is ACID fundamental and what are transactions in SQL SERVER ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What is DBCC?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What is purpose of Replication ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What are different type of replication supported by SQL SERVER ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What is BCP utility in SQL SERVER ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What are different types of triggers in SQl SERVER 2000 ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">If we have multiple AFTER Triggers on table how can we define the sequence of the triggers ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What is SQl injection ?<o:p></o:p></span></li><li class="MsoNormal" style=""><span style="font-size:100%;">What’s the difference between Stored Procedure (SP) and User Defined Function (UDF)?</span></li></ol> <span style="font-family: verdana;font-size:100%;" ><br /></span>Jagadeeshnoreply@blogger.comtag:blogger.com,1999:blog-10976309.post-75821039345781622102008-04-01T01:11:00.001-07:002008-04-01T01:12:49.214-07:00.NET Interview questions and Answers: 9<span style="font-family: verdana;font-size:130%;" ><span style="font-weight: bold;">ADO.NET<br /><span style="font-size:100%;"><br /></span></span></span> <ol style="margin-top: 0in; font-family: verdana;" start="1" type="1"><li class="MsoNormal" style=""><span style="font-size:100%;">What is the namespace in which .NET has the data functionality classes ?<o:p></o:p></span><