ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2017 www.aspforums.com. All rights reserved.Zoom ( Enlarge image ) on MouseOver in ListView Image Gallery using ASP.Net<p>http://aspsnippets.com/Articles/Image-Gallery-using-ASP.Net-GridView-control.aspx</p> <p>used the css and html from the above sample code &nbsp;, but instead of the actual image i get loader image</p> <p>i am using datalist to display image</p> <p>&nbsp;</p> <p>&nbsp;</p> <pre class="brush: xml">&lt;asp:ListView ID=&#34;ListView1&#34; runat=&#34;server&#34;&gt; &lt;LayoutTemplate&gt; &lt;ul class=&#34;ProductList&#34;&gt; &lt;asp:PlaceHolder runat=&#34;server&#34; ID=&#34;itemPlaceholder&#34;&gt;&lt;/asp:PlaceHolder&gt; &lt;/ul&gt; &lt;/LayoutTemplate&gt; &lt;ItemTemplate&gt; &lt;li onclick=&#34;return LoadDiv(this.src);&#34;&gt; &lt;asp:Image ID=&#34;Img1&#34; runat=&#34;server&#34; ImageUrl=&#39;&lt;%#&#34;../images/&#34;+Eval(&#34;photo&#34;)%&gt;&#39; Height=&#34;200px&#34; BorderStyle=&#34;Double&#34; Width=&#34;150px&#34; /&gt;&lt;br /&gt; &lt;br /&gt; &lt;/li&gt; &lt;/ItemTemplate&gt; &lt;EmptyItemTemplate&gt; &lt;div&gt; Sorry! No Item found found. &lt;/div&gt; &lt;/EmptyItemTemplate&gt; &lt;/asp:ListView&gt;</pre> <p>&nbsp;</p>http://www.aspforums.net/Threads/206519/Zoom-Enlarge-image-on-MouseOver-in-ListView-Image-Gallery-using-ASPNet/http://www.aspforums.net/Threads/206519/Zoom-Enlarge-image-on-MouseOver-in-ListView-Image-Gallery-using-ASPNet/Sun, 17 Feb 2013 23:28:30 GMTZip more than one files and download using ASP.Net<p>I need to download more than one file from server and download into loacl. Using gzipStream class in system.io.compression.</p>http://www.aspforums.net/Threads/812268/Zip-more-than-one-files-and-download-using-ASPNet/http://www.aspforums.net/Threads/812268/Zip-more-than-one-files-and-download-using-ASPNet/Thu, 18 Jul 2013 09:47:06 GMTYes No Confirmation Message Box using VB.Net<p>Is there any other option to display a message in server since this way it cannot show a message?</p> <pre class="brush: vb">Dim msgRslt As MsgBoxResult = MsgBox(&#34;Jig tool succussfully registered. Do you want to continue register jigtool? .&#34;, MsgBoxStyle.YesNo) If msgRslt = MsgBoxResult.Yes Then Response.Redirect(&#34;regJig.aspx&#34;) ElseIf msgRslt = MsgBoxResult.No Then Response.Redirect(&#34;home.aspx&#34;) End If</pre> <p>&nbsp;</p>http://www.aspforums.net/Threads/558322/Yes-No-Confirmation-Message-Box-using-VBNet/http://www.aspforums.net/Threads/558322/Yes-No-Confirmation-Message-Box-using-VBNet/Mon, 17 Oct 2016 02:40:58 GMTXmlrpc Example<p>Hi.</p> <p>I want to do some task that is based to xmlrpc please can anyone help me for this. any refrence from basic to use it&nbsp;</p> <p>thanxs</p> <p>regards</p> <p>droiddeve</p>http://www.aspforums.net/Threads/429662/Xmlrpc-Example/http://www.aspforums.net/Threads/429662/Xmlrpc-Example/Thu, 02 Mar 2017 01:53:18 GMTWhy we use Partial Class in ASP.Net<p>What if not a partial class?Can you explain with an example</p>http://www.aspforums.net/Threads/173392/Why-we-use-Partial-Class-in-ASPNet/http://www.aspforums.net/Threads/173392/Why-we-use-Partial-Class-in-ASPNet/Fri, 10 May 2013 08:52:26 GMTWhy we need WCF application<p>Requested,</p> <p>i refer all atricle for WCF. but i am not getting proper explanation.</p> <p>&nbsp;</p> <p>Upendra PAtel</p> <p>&nbsp;</p>http://www.aspforums.net/Threads/863001/Why-we-need-WCF-application/http://www.aspforums.net/Threads/863001/Why-we-need-WCF-application/Tue, 12 Nov 2013 03:34:28 GMTwhy sometime mails go to spam folder and take lots of time in ASP.Net SMTP<p>why sometime mail go to spam folder and take lots of time.</p>http://www.aspforums.net/Threads/615489/why-sometime-mails-go-to-spam-folder-and-take-lots-of-time-in-ASPNet-SMTP/http://www.aspforums.net/Threads/615489/why-sometime-mails-go-to-spam-folder-and-take-lots-of-time-in-ASPNet-SMTP/Tue, 24 Jul 2012 10:45:17 GMTWhy ReCaptcha does not work properly in ASP.Net<p>I downloaded your file to use recaptcha with vb.net. When I run it in VS 2013 asp.net 4.0 with localhost it does not connect to Google for a response. Have you made changes to your earlier post? Everything displays properly. The only change I made was to use the default (blank) on the xml page file for the Google http.</p>http://www.aspforums.net/Threads/204433/Why-ReCaptcha-does-not-work-properly-in-ASPNet/http://www.aspforums.net/Threads/204433/Why-ReCaptcha-does-not-work-properly-in-ASPNet/Mon, 16 Jan 2017 01:53:39 GMTWhy is Page Load event in ASP.Net is marked as Protected<p>Usually when we create an aspx page and then open the aspx.cs page we can see a protected void page_load().So my question is why that should be protected in default.Can we give other access modifiers.Can you help me with an example</p>http://www.aspforums.net/Threads/478984/Why-is-Page-Load-event-in-ASPNet-is-marked-as-Protected/http://www.aspforums.net/Threads/478984/Why-is-Page-Load-event-in-ASPNet-is-marked-as-Protected/Fri, 10 May 2013 05:43:00 GMTYes No Confirmation Dialog using Modal Popup in ASP.Net<p>1-I want to "when I was click the Show button show Datetime.now in label but but popup will not close" ;</p> <p>2-When popup open all textboxt empty</p> <p>3-when popup close ;closeButton will run like Response.Redirect("abc.aspx")</p> <p>&nbsp;</p> <p>This is my code;</p> <p>&lt;style type="text/css"&gt;<br />#overlay {<br />position: fixed;<br />top: 0;<br />left: 0;<br />width: 100%;<br />height: 100%;<br />background-color: #000;<br />filter:alpha(opacity=70);<br />-moz-opacity:0.7;<br />-khtml-opacity: 0.7;<br />opacity: 0.7;<br />z-index: 100;<br />display: none;<br />}<br />.content a{<br />text-decoration: none;<br />}<br />.popup{<br />width: 100%;<br />margin: 0 auto;<br />display: none;<br />position: fixed;<br />z-index: 101;<br />}<br />.content{<br />min-width: 600px;<br />width: 600px;<br />min-height: 150px;<br />margin: 100px auto;<br />background: #f3f3f3;<br />position: relative;<br />z-index: 103;<br />padding: 10px;<br />border-radius: 5px;<br />box-shadow: 0 2px 5px #000;<br />}<br />.content p{<br />clear: both;<br />color: #555555;<br />text-align: justify;<br />}<br />.content p a{<br />color: #d91900;<br />font-weight: bold;<br />}<br />.content .x{<br />float: right;<br />height: 35px;<br />left: 22px;<br />position: relative;<br />top: -25px;<br />width: 34px;<br />}<br />.content .x:hover{<br />cursor: pointer;<br />}<br />&lt;/style&gt;<br />&lt;script type="text/javascript" src="jquery-1.8.2.js"&gt;&lt;/script&gt;<br />&lt;script type='text/javascript'&gt;<br /> $(function () {<br /> var overlay = $('&lt;div id="overlay"&gt;&lt;/div&gt;');<br /> //$('.close').click(function () {<br /> // $('.popup').hide();<br /> // overlay.appendTo(document.body).remove();<br /> // return false;<br /> //});</p> <p>$('.x').click(function () {<br /> $('.popup').hide();<br /> overlay.appendTo(document.body).remove();<br /> return false;<br /> });</p> <p>$('.click').click(function () {<br /> overlay.show();<br /> overlay.appendTo(document.body);<br /> $('.popup').show();<br /> return false;<br /> });<br /> });<br />&lt;/script&gt;<br />&lt;/head&gt;<br />&lt;body&gt;<br /> &lt;form runat="server"&gt;<br />&lt;div class='popup'&gt;<br />&lt;div class='content'&gt;<br />&lt;img src="x.png" alt='quit' class='x' id='x' /&gt;<br />&lt;p&gt;<br />Please use above search option which was there in top right side to get help with many of articles.<br /> &lt;br/&gt;<br /> &lt;asp:TextBox ID="TextBox1" runat="server"&gt;&lt;/asp:TextBox&gt;<br /> &lt;br/&gt;<br /> &lt;asp:TextBox ID="TextBox2" runat="server"&gt;&lt;/asp:TextBox&gt;<br />&lt;br/&gt;<br /> &lt;asp:Button ID="btnTime" runat="server" Text="Time??" /&gt;<br /> &lt;br /&gt;</p> <p>&lt;asp:Label ID="labelTime" runat="server" Text="_"&gt;&lt;/asp:Label&gt;<br />&lt;br/&gt;<br />&lt;a href='' class='close'&gt;Kapat&lt;/a&gt;<br />&lt;/p&gt;<br />&lt;/div&gt;<br />&lt;/div&gt; <br /> <br /> <br /> <br />&lt;div id='container'&gt;<br />&lt;a href='' class='click'&gt;&lt;h2&gt;&lt;b&gt;Click Here to See Popup! &lt;/b&gt;&lt;/h2&gt;&lt;/a&gt; &lt;br/&gt;<br />&lt;/div&gt;<br /> &lt;/form&gt;<br />&lt;/body&gt;</p>http://www.aspforums.net/Threads/139625/Yes-No-Confirmation-Dialog-using-Modal-Popup-in-ASPNet/http://www.aspforums.net/Threads/139625/Yes-No-Confirmation-Dialog-using-Modal-Popup-in-ASPNet/Fri, 17 May 2013 00:26:57 GMTYearly Report using Bar Chart in ASP.Net<p>I want to generate the yearly report&nbsp;</p> <p>how i get my input in dropdown list as march2015 to febuary 2016</p> <p>i want to extract and generate the datas from database and sorting by using month and the year of the date??? How?? help me with the code?????</p>http://www.aspforums.net/Threads/164306/Yearly-Report-using-Bar-Chart-in-ASPNet/http://www.aspforums.net/Threads/164306/Yearly-Report-using-Bar-Chart-in-ASPNet/Wed, 24 Feb 2016 03:18:37 GMTYear Month and Day parameters describe an un-representable DateTime<p>HI</p> <p>&nbsp;</p> <p>&nbsp;I use below code to showing date in Persian in my site</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <pre class="brush: csharp"> DateTime miladi = DateTime.Now; System.Globalization.PersianCalendar shamsi = new System.Globalization.PersianCalendar(); DateTime shamsidate = new DateTime(shamsi.GetYear(miladi), shamsi.GetMonth(miladi), shamsi.GetDayOfMonth(miladi)); Lbldate.Text = (shamsidate.ToString(&#34;yyyy/MM/dd&#34;, System.Globalization.CultureInfo.InvariantCulture)); </pre> <p>but below erro happen</p> <h1 style="font-family: Verdana; font-weight: normal; font-size: 18pt; color: red;">Server Error in '/behtop website' Application.</h1> <hr size="1" width="100%" /> <h2 style="font-family: Verdana; font-weight: normal; font-size: 14pt; color: maroon;"><em>Year, Month, and Day parameters describe an un-representable DateTime.</em></h2> <p><span style="color: #000000; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; font-family: Arial,Helvetica,Geneva,SunSans-Regular,sans-serif;"><span style="color: #000000; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; font-family: Arial,Helvetica,Geneva,SunSans-Regular,sans-serif;"><strong style="font-family: Verdana; font-weight: bold; color: black; margin-top: -5px;">Description:<span class="Apple-converted-space">&nbsp;</span></strong>An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.<span class="Apple-converted-space">&nbsp;</span><br /><br /><strong style="font-family: Verdana; font-weight: bold; color: black; margin-top: -5px;">Exception Details:<span class="Apple-converted-space">&nbsp;</span></strong>System.ArgumentOutOfRangeException: Year, Month, and Day parameters describe an un-representable DateTime.<br /><br /><strong style="font-family: Verdana; font-weight: bold; color: black; margin-top: -5px;">Source Error:</strong><span class="Apple-converted-space">&nbsp;</span><br /><br /></span></span></p> <table width="100%" bgcolor="#ffffcc"> <tbody> <tr> <td> <pre style="font-family: 'Lucida Console'; font-size: 0.9em;">Line 43: DateTime miladi = DateTime.Now; Line 44: System.Globalization.PersianCalendar shamsi = new System.Globalization.PersianCalendar(); <span style="color: red;">Line 45: DateTime shamsidate = new DateTime(shamsi.GetYear(miladi), shamsi.GetMonth(miladi), shamsi.GetDayOfMonth(miladi)); </span>Line 46: Line 47: </pre> </td> </tr> </tbody> </table> <p>it worked correctly before but suddenly it make an error Why?</p> <p>Best Regards</p> <p>Thanks alot</p>http://www.aspforums.net/Threads/916100/Year-Month-and-Day-parameters-describe-an-un-representable-DateTime/http://www.aspforums.net/Threads/916100/Year-Month-and-Day-parameters-describe-an-un-representable-DateTime/Mon, 20 May 2013 01:19:54 GMTxxx.application did not succeed error in WPF using clickonce<p>Hi Team,</p> <p>I need quick help on WPF using clickonce tehcnology.</p> <p>In a class file I am having code like this:<br /> MyInstaller installer = new MyInstaller();<br /> installer.InstallApplication(@"C:\Users\msurkanti115\Documents\Visual Studio 2013\Projects\WPFSample_Mahesh\WPFSample_Mahesh\bin\Debug\WPFSample_Mahesh.application");</p> <p>Then when I run my application the application is working fine.</p> <p>But if I use shared path instead of local path there then I am getting an error: "Downloading file://shareddrive/myapp/myapp.application did not succeed."</p> <p>Any help would greatly appreciated!!!</p>http://www.aspforums.net/Threads/437997/xxxapplication-did-not-succeed-error-in-WPF-using-clickonce/http://www.aspforums.net/Threads/437997/xxxapplication-did-not-succeed-error-in-WPF-using-clickonce/Wed, 15 Mar 2017 02:04:10 GMTXML validation for accepting Null value aswell as Time (HH:MM)<p>Hi,</p> <p>below are the sample to play with</p> <p>&nbsp;</p> <pre class="brush: xml">&lt;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&gt; &lt;UsersList&gt; &lt;User&gt; &lt;Name&gt;sam&lt;/Name&gt; &lt;BirthTime&gt;&lt;/BirthTime&gt; &lt;/User&gt; &lt;User&gt; &lt;Name&gt;wit&lt;/Name&gt; &lt;BirthTime&gt;&lt;/BirthTime&gt; &lt;/User&gt; &lt;/UsersList&gt;</pre> <p>&nbsp;</p> <pre class="brush: xml">&lt;?xml version=&#34;1.0&#34; encoding=&#34;UTF-8&#34;?&gt; &lt;xs:schema xmlns:xs=&#34;http://www.w3.org/2001/XMLSchema&#34; elementFormDefault=&#34;qualified&#34; attributeFormDefault=&#34;qualified&#34;&gt; &lt;xs:element name=&#34;UsersList&#34;&gt; &lt;xs:complexType&gt; &lt;xs:sequence&gt; &lt;xs:element ref=&#34;User&#34; maxOccurs=&#34;unbounded&#34;/&gt; &lt;/xs:sequence&gt; &lt;/xs:complexType&gt; &lt;/xs:element&gt; &lt;xs:element name=&#34;User&#34;&gt; &lt;xs:complexType&gt; &lt;xs:sequence&gt; &lt;xs:element ref=&#34;Name&#34; /&gt; &lt;xs:element ref=&#34;BirthTime&#34; /&gt; &lt;/xs:sequence&gt; &lt;/xs:complexType&gt; &lt;/xs:element&gt; &lt;xs:element name = &#34;Name&#34;&gt; &lt;xs:simpleType&gt; &lt;xs:restriction base = &#34;xs:string&#34;&gt; &lt;xs:pattern value=&#34;[a-zA-Z0-9]*&#34;/&gt; &lt;/xs:restriction&gt; &lt;/xs:simpleType&gt; &lt;/xs:element&gt; &lt;xs:element name=&#34;BirthTime&#34;&gt; &lt;xs:simpleType&gt; &lt;xs:restriction base=&#34;xs:string&#34;&gt; &lt;xs:pattern value=&#34;(0[0-9]|[1][0-9]|2[0-3]):[0-5][0-9]&#34;/&gt; &lt;/xs:restriction&gt; &lt;/xs:simpleType&gt; &lt;/xs:element&gt; &lt;/xs:schema&gt;</pre> <p>Basically i want the birth time should allow &nbsp;empty value or value with HH:MM format. for HH:MM format i managed but unable to allow the emoty value. tried with nillable = true option. but not working. any sugestion please</p>http://www.aspforums.net/Threads/110178/XML-validation-for-accepting-Null-value-aswell-as-Time-HHMM/http://www.aspforums.net/Threads/110178/XML-validation-for-accepting-Null-value-aswell-as-Time-HHMM/Thu, 03 Nov 2016 01:59:18 GMTxml usage for dropdownlist in asp.net<p>how to create a xml page for a dropdownlist and use it in asp.net.</p>http://www.aspforums.net/Threads/170990/xml-usage-for-dropdownlist-in-aspnet/http://www.aspforums.net/Threads/170990/xml-usage-for-dropdownlist-in-aspnet/Wed, 30 May 2012 04:19:45 GMTXML Parsing Error: not well-formed<p>Hi sir,</p> <p>I am deploying&nbsp; website on server but it is showing error in local it is working fine.<br /><br /><strong>XML Parsing Error: not well-formed</strong><br /><strong>Location: file://///10.10.1.220/share/CozmoBlog/Default.aspx</strong><br />Line Number 1, Column 2:&lt;%@ Page Language="C#" AutoEventWireup="true" <span style="color: #ff0000;">MasterPageFile="MasterPage.master"&nbsp; CodeFile="Default.aspx.cs" Inherits="_Default" %&gt;<br /></span></p> <p><span style="color: #ff0000;"><strong><span style="color: #000000;">screenshot</span></strong><br /></span></p> <p><span style="color: #000000;"><a href="https://lh3.googleusercontent.com/-em4UmVw3L44/VPVQTeXSnmI/AAAAAAAABUE/Uu5GBHxhJTE/w958-h766-no/Untitled-1.jpg" target="_blank">https://lh3.googleusercontent.com/-em4UmVw3L44/VPVQTeXSnmI/AAAAAAAABUE/Uu5GBHxhJTE/w958-h766-no/Untitled-1.jpg</a></span></p> <p><span style="color: #000000;">regards</span></p> <p><span style="color: #000000;">firoz</span></p>http://www.aspforums.net/Threads/526264/XML-Parsing-Error-not-well-formed/http://www.aspforums.net/Threads/526264/XML-Parsing-Error-not-well-formed/Tue, 03 Mar 2015 01:27:33 GMTXML Parsing Error: no element found<p>My website was running perfectly without errors both on IIS and VS2013. Now today it stopped working in IIS 7 but working on VS2013. when i explore it using localhost/bsd then it gave this error :</p> <p>XML Parsing Error: no element found<br />Location: http://localhost/BSD/Builder.aspx<br />Line Number 1, Column 1:</p> <p>This error goes same for all page while accessing from IIS Localhost</p> <p><img src="http://i1286.photobucket.com/albums/a615/Emadkhanqai/xmlerror_zps7ed98a22.png" alt="" width="1024" height="575" /></p> <p>As you can see in picture , I surfed internet and found these two :</p> <p><a href="http://forums.asp.net/t/1004395.aspx?What+causes+this+XML+Parsing+Error+no+element+found">http://forums.asp.net/t/1004395.aspx?What+causes+this+XML+Parsing+Error+no+element+found</a></p> <p><br /><a href="http://www.c-sharpcorner.com/Forums/Thread/216997/how-to-resolve-xml-parsing-error-no-element-found.aspx">http://www.c-sharpcorner.com/Forums/Thread/216997/how-to-resolve-xml-parsing-error-no-element-found.aspx</a></p> <p>but none of them helped me.</p>http://www.aspforums.net/Threads/154356/XML-Parsing-Error-no-element-found/http://www.aspforums.net/Threads/154356/XML-Parsing-Error-no-element-found/Mon, 16 Feb 2015 08:20:37 GMTXML class Error : Object reference not set to an instance of an object<p>I'm try to fetch unique number with the other extra information that belong to the specified unique number but it "Object reference not set to an instance of an object.". I have created this class and when i run, it only fetches the unique and display it well but it does not fetch the other values that belongs to the unique number. I've searched for many examples but i just can't fine anyone that help to fix this.</p> <p>this is my .cs</p> <p>&nbsp;</p> <pre class="brush: csharp">public Advertentie GetDetails(string unieknummer) { XmlRootAttribute xRoot = new XmlRootAttribute(); xRoot.ElementName = &#34;root&#34;; xRoot.IsNullable = true; XmlSerializer deserializer = new XmlSerializer(typeof(Advertentie), xRoot); StreamReader reader = new StreamReader(&#34;C:\\Users\\Gabriel\\documents\\visual studio 2013\\Projects\\ADadvertisement\\ADadvertisement\\Xml\\advertenties.xml&#34;); Advertentie rootObj = (Advertentie)deserializer.Deserialize(reader); rootObj.Unieknummer = unieknummer; return rootObj; }</pre> <p>and in my Page_load()</p> <p>&nbsp;</p> <p>&nbsp;</p> <pre class="brush: csharp">var obj = new XMLHelper(); Advertentie adv = obj.GetDetails(Request.QueryString[&#34;unieknummer&#34;]); lblTopModel.Text = adv.Unieknummer; //(this one works fine) lblTopMerk.Text = Convert.ToString(adv.Laatstemutatie);//(this one doesn&#39;t show anything) lblModel.Text = adv.Auto.Model; //(this is gives me the error Object reference no set to an instance of an object)</pre> <p>&nbsp;</p>http://www.aspforums.net/Threads/192799/XML-class-Error-Object-reference-not-set-to-an-instance-of-an-object/http://www.aspforums.net/Threads/192799/XML-class-Error-Object-reference-not-set-to-an-instance-of-an-object/Fri, 24 Mar 2017 05:05:50 GMTxamlparserexception was thrown on shinyredTheme silverlight-4 (vs2010)<p>Hi,</p> <p>&nbsp;I am new to silverlight( working in silverlight 4.0) and getting Xaml exception&nbsp; .</p> <p>&nbsp;&nbsp; xamlparserexception was thrown on shinyredTheme: cannot create an instance of "ShinyRedTheme" . (Error Details are as :)<br /><br />&nbsp; Invalid attribute value SearchMode for property Property. [Line: 3291 Position: 26]<br />&nbsp;&nbsp; at MS.Internal.XcpImports.CreateFromXaml(String xamlString, Boolean createNamescope, Boolean requireDefaultNamespace, Boolean allowEventHandlers, Boolean expandTemplatesDuringParse)<br />&nbsp;&nbsp; at System.Windows.Controls.Theming.ResourceParser.Parse(Stream stream, Boolean checkTypes)<br />&nbsp;&nbsp; at System.Windows.Controls.Theming.Theme.LoadTheme(Stream themeResourceStream)<br />&nbsp;&nbsp; at System.Windows.Controls.Theming.Theme..ctor(Assembly themeAssembly, String themeResourceName)<br />&nbsp;&nbsp; at System.Windows.Controls.Theming.ShinyRedTheme..ctor()</p> <p>&nbsp;</p> <p>&nbsp;&nbsp;</p> <p>&nbsp; My Xaml is:-</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;controls:ChildWindow x:Class="BulkEmail.Bulk_Email.NewUserWindow"<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmlns:shinyRed="clr-namespace:System.Windows.Controls.Theming;assembly=System.Windows.Controls.Theming.ShinyRed"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Width="400" Height="300" <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Title="New User"&gt;<br />&nbsp;&nbsp;&nbsp; &lt;Grid x:Name="LayoutRoot" ShowGridLines="True"&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Grid.ColumnDefinitions&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ColumnDefinition Width="*"/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Grid.ColumnDefinitions&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Grid.RowDefinitions&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;RowDefinition Height="*"/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Grid.RowDefinitions&gt;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Border Grid.Column="0" Grid.Row="0" x:Name="bdrNewUser"&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;shinyRed:ShinyRedTheme&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Grid&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Grid.ColumnDefinitions&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ColumnDefinition Width="3.5*"/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ColumnDefinition Width="6.5*"/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Grid.ColumnDefinitions&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Grid.RowDefinitions&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;RowDefinition Height="2.5*"/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;RowDefinition Height="Auto"/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;RowDefinition Height="10"/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;RowDefinition Height="Auto"/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;RowDefinition Height="3*"/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;RowDefinition Height="1*"/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;RowDefinition Height="30"/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Grid.RowDefinitions&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;StackPanel x:Name="HeaderStackPanel" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" VerticalAlignment="Center" HorizontalAlignment="Center"&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;TextBlock x:Name="HeaderText" Text="Please Enter Details" FontSize="15" Margin="2,2,2,2"/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/StackPanel&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;TextBlock x:Name="tbEmailID" Text="Email ID :" Grid.Row="1" Grid.Column="0" Margin="30,6,2,2"&gt;&lt;/TextBlock&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;TextBlock x:Name="tbMobileNumber" Text="Mobile Number :" Grid.Row="3" Grid.Column="0" Margin="30,6,2,2"&gt;&lt;/TextBlock&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;TextBox x:Name="txtEmailID" Grid.Row="1" MaxLength="30" Grid.Column="1" Width="200" HorizontalAlignment="Left" Height="25" Margin="2,2,2,2"&gt;&lt;/TextBox&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;TextBox x:Name="txtMobileNumber" Grid.Row="3" MaxLength="10" Grid.Column="1" Width="200" HorizontalAlignment="Left" Height="25" Margin="2,2,2,2"&gt;&lt;/TextBox&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;StackPanel Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="2" HorizontalAlignment="Center" Orientation="Horizontal"&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Button x:Name="btnSubmit" Cursor="Hand" Content="Submit" Height="25" Margin="2,2,2,2" Width="80" Click="btnSubmit_Click"/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Button x:Name="btnCancel" Cursor="Hand" Content="Cancel" Height="25" Margin="2,2,2,2" Width="80" Click="btnCancel_Click"/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/StackPanel&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;HyperlinkButton Content="Enter Verification Code." Grid.Row="5" Grid.Column="0" Grid.ColumnSpan="2" Height="23" FontSize="12"&nbsp; Margin="2,2,2,2" Name="hprlnkVerification" HorizontalAlignment="Center" Click="hprlnkVerification_Click"/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;TextBlock x:Name="tbWait" Text="Please Wait..." Grid.Row="6" FontSize="14" Grid.Column="0" Grid.ColumnSpan="2" HorizontalAlignment="Center" Visibility="Collapsed"/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Grid&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/shinyRed:ShinyRedTheme&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Border&gt;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Border Grid.Column="0" Grid.Row="0" x:Name="bdrVerification" Visibility="Collapsed"&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;shinyRed:ShinyRedTheme&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Grid&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Grid.ColumnDefinitions&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ColumnDefinition Width="3.5*"/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ColumnDefinition Width="6.5*"/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Grid.ColumnDefinitions&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Grid.RowDefinitions&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;RowDefinition Height="1.5*"/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;RowDefinition Height="Auto"/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;RowDefinition Height="10"/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;RowDefinition Height="Auto"/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;RowDefinition Height="10"/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;RowDefinition Height="Auto"/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;RowDefinition Height="1.5*"/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;RowDefinition Height="1*"/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Grid.RowDefinitions&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;StackPanel x:Name="HeaderStackPanelV" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" VerticalAlignment="Center" HorizontalAlignment="Center"&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;TextBlock x:Name="HeaderTextV" Text="Please Enter Verification Details" FontSize="15" Margin="2,2,2,2"/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/StackPanel&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;TextBlock x:Name="tbEmailIDV" Text="EmailID :" Grid.Row="1" Grid.Column="0" Margin="30,6,2,2"&gt;&lt;/TextBlock&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;TextBlock x:Name="tbMobileNumberV" Text="Mobile Number :" Grid.Row="3" Grid.Column="0" Margin="30,6,2,2"&gt;&lt;/TextBlock&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;TextBlock x:Name="tbVeriCode" Text="Verification Code :" Grid.Row="5" Grid.Column="0" Margin="30,6,2,2"&gt;&lt;/TextBlock&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;TextBox x:Name="txtEmailIDV" Grid.Row="1" MaxLength="30" Grid.Column="1" Width="200" HorizontalAlignment="Left" Height="25" Margin="2,2,2,2"&gt;&lt;/TextBox&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;TextBox x:Name="txtMobileNumberV" Grid.Row="3" MaxLength="10" Grid.Column="1" Width="200" HorizontalAlignment="Left" Height="25" Margin="2,2,2,2"&gt;&lt;/TextBox&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;TextBox x:Name="txtVeriCode" Grid.Row="5" MaxLength="10" Grid.Column="1" Width="200" HorizontalAlignment="Left" Height="25" Margin="2,2,2,2"&gt;&lt;/TextBox&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;StackPanel Grid.Row="6" Grid.Column="0" Grid.ColumnSpan="2" HorizontalAlignment="Center" Orientation="Horizontal"&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Button x:Name="btnSubmitV" Cursor="Hand" Content="Submit" Height="25" Margin="2,2,2,2" Width="80" Click="btnSubmitV_Click"/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Button x:Name="btnCancelV" Cursor="Hand" Content="Cancel" Height="25" Margin="2,2,2,2" Width="80" Click="btnCancelV_Click"/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/StackPanel&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;HyperlinkButton Content="New User" Grid.Row="7" Grid.Column="0" Grid.ColumnSpan="2" Height="23" FontSize="12"&nbsp; Margin="2,2,2,2" Name="hprlnkNewUser" HorizontalAlignment="Center" Click="hprlnkNewUser_Click"/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Grid&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/shinyRed:ShinyRedTheme&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Border&gt;<br />&nbsp;&nbsp;&nbsp; &lt;/Grid&gt;<br />&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp; <br />&lt;/controls:ChildWindow&gt;</p> <p>&nbsp;</p> <p>Thanks.</p>http://www.aspforums.net/Threads/154435/xamlparserexception-was-thrown-on-shinyredTheme-silverlight-4-vs2010/http://www.aspforums.net/Threads/154435/xamlparserexception-was-thrown-on-shinyredTheme-silverlight-4-vs2010/Mon, 21 May 2012 04:52:59 GMTWriting Nested If condition using C# in ASP.Net<p>hi</p> <p>I use if condition in behind code:</p> <pre class="brush: csharp">if (Ch3D.Checked == true) { &nbsp;&nbsp;&nbsp; _cmd.Parameters.AddWithValue(&#34;@GenrePre&#34;, &#34;1&#34;); } else { &nbsp;&nbsp;&nbsp; if (ChOscar.Checked == true) &nbsp;&nbsp;&nbsp; { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _cmd.Parameters.AddWithValue(&#34;@GenrePre&#34;, &#34;2&#34;); &nbsp;&nbsp;&nbsp; } &nbsp;&nbsp;&nbsp; else &nbsp;&nbsp;&nbsp; { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (ChDobleF.Checked == true) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _cmd.Parameters.AddWithValue(&#34;@GenrePre&#34;, &#34;3&#34;); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } &nbsp;&nbsp;&nbsp; } }</pre> <p>as you see I used neasted <strong>if else condition</strong> is there other code that I use it instead of neasted if else contition?</p> <p>best regards</p> <p>neda</p> <p>&nbsp;</p>http://www.aspforums.net/Threads/816715/Writing-Nested-If-condition-using-C-in-ASPNet/http://www.aspforums.net/Threads/816715/Writing-Nested-If-condition-using-C-in-ASPNet/Thu, 21 Jul 2016 07:45:07 GMT