tag:blogger.com,1999:blog-18669659872852867582024-03-05T08:46:25.068-08:00Issues That I've FacedAshokhttp://www.blogger.com/profile/04298168259549274949noreply@blogger.comBlogger77125tag:blogger.com,1999:blog-1866965987285286758.post-23413286926911462162011-11-09T04:34:00.000-08:002011-11-09T04:43:06.786-08:00Beware of recursion on getter/setter methods<div dir="ltr" style="text-align: left;" trbidi="on"><div style="color: #3d85c6;"><span style="font-size: large;"><b>Question Received:</b></span></div> The Application is not responding apparently.<br />
<div style="color: #3d85c6;"><span style="font-size: large;"><b><br />
</b></span></div><div style="color: #3d85c6;"><span style="font-size: large;"><b>Solution:</b></span></div> Check the code for any defects like recursion in the statement and methods.<br />
Defect I have found from the getter/setter methods.<br />
private string _mail;<br />
<span style="color: #6aa84f;">public string Mail</span><br />
<div style="color: #6aa84f;"> {</div> <span style="color: #e06666;">get</span><br />
<div style="color: #e06666;"> {</div><div style="color: #e06666;"> return _mail;</div><div style="color: #e06666;"> }</div><div style="color: #e06666;"> set</div><div style="color: #e06666;"> {</div><div style="color: #e06666;"> if(condition)</div><div style="color: #e06666;"> {</div><div style="color: #e06666;"> Mail="mail@daemon.com"; </div><div style="color: #e06666;"> }</div> <span style="color: #e06666;">}</span><br />
<span style="color: #6aa84f;">}</span><br />
<span style="color: #e69138;">public DataSource()</span><br />
<div style="color: #e69138;"> {</div><div style="color: #e69138;"> <span style="color: #6aa84f;">Mail="mail@daemon.com";</span></div><div style="color: #e69138;"> }</div><br />
<span style="color: #674ea7;">[Note:]</span><br />
The culprit is,<br />
In setter method, <span style="color: red;">Mail="mail@daemon.com"</span> makes it call the setter method <b><span style="color: yellow;">recursively</span></b>.</div>Ashokhttp://www.blogger.com/profile/04298168259549274949noreply@blogger.com0tag:blogger.com,1999:blog-1866965987285286758.post-72502471792824833632011-11-09T04:15:00.000-08:002011-11-09T04:38:50.134-08:00How to add the extender to Silverlight TextBox<div dir="ltr" style="text-align: left;" trbidi="on"><div style="color: #3d85c6;"><span style="font-size: large;"><b>Question Received:</b></span></div> To add the <span style="color: cyan;">extender </span>to validate any value typed in the TextBox.<br />
<br />
<div style="color: #3d85c6;"><span style="font-size: large;"><b>Solution:</b></span></div> i. Create <span style="color: #93c47d;">DataSource.cs</span> which contains the <b style="color: #b45f06;">getter/setter methods</b> for evaluating the value in the TextBox.<br />
ii.Integrate it with the <span style="color: #93c47d;">Page.xaml.cs</span> using instance to point the DataContext in the LayoutRoot.<br />
iii.Bind the Data to the necessary controls (ie.,TextBox).<br />
iv.Throw the error on exception and make it to be caught from '<span style="color: #93c47d;">LayoutRoot</span>'.<br />
v. Add the necessary handler in the <span style="color: #93c47d;">'page.xaml.cs</span>'.<br />
vi.However, all the handlers will be coded in the <span style="color: #93c47d;">'page.xaml.cs</span>'.<br />
vii.Alright, Compile and execute it will be working.<br />
viii.Download the detailed document from, <a href="https://skydrive.live.com/redir.aspx?cid=71c30be9c60402d0&resid=71C30BE9C60402D0%21151">ExtenderToSilverLightControls.docx.</a> <br />
ix.Download the source from, <a href="https://skydrive.live.com/?cid=d2868c4e2b15623f&sc=documents&id=D2868C4E2B15623F%21360#">SilverlightDataValidation</a>.<br />
<br />
<span style="color: #674ea7;">[Note:]</span><br />
--> Make sure that the DataSource to initialize the value, that will not throw the error on <span style="color: #e06666;">Page_init() </span>or <span style="color: #e06666;">page_Load()</span>.<br />
--> If so, <span style="color: lime;">silverlight </span>application will not be starting.</div>Ashokhttp://www.blogger.com/profile/04298168259549274949noreply@blogger.com0tag:blogger.com,1999:blog-1866965987285286758.post-23940279131660471372011-11-09T02:32:00.000-08:002011-11-09T02:32:49.291-08:00Deploying the Web Application or Web Service in IIS.<div dir="ltr" style="text-align: left;" trbidi="on"><div style="color: #3d85c6;"><span style="font-size: large;"><b>Question Received:</b></span></div> How to publish the Web Components into the<span style="color: #93c47d;"> IIS Server 7.0</span><br />
from '<span style="color: cyan;">MicrosoftVisualStudio2010</span>'.<br />
<div style="color: #3d85c6;"><span style="font-size: large;"><b><br />
</b></span></div><div style="color: #3d85c6;"><span style="font-size: large;"><b>Solution:</b></span></div> i. Build the Entire Project and solution.<br />
ii.Right-Click on the project, select '<span style="color: #6aa84f;">Build Deployment Package</span>'.<br />
iii.Right-Click on the project, select '<span style="color: #6aa84f;">Publish</span>'.<br />
iv.Select '<span style="color: #6aa84f;">FileSystem</span>' to deploy.<br />
v. Browse for Target Location.<br />
vi. Click '<span style="color: #6aa84f;">OK</span>' to publish.<br />
vii.Go to target location and copy the path.<br />
viii.Start IIS Manager 7.0 ('<span style="color: #e06666;">inetmgr.exe</span>')<br />
ix.Right-Click '<span style="color: #6aa84f;">DefaultWebSite</span>'-->Add Application.<br />
x. Give the Application Name and TargetPath.<br />
xi.Browse the Application from InternetExplorer<br />
<br />
That's it. Finished.<br />
<span style="color: #674ea7;">[Note:]</span> Best Practices,<br />
--> Choose '<span style="color: #e06666;">Delete the files in the targetFolder prior to publish</span>'.<br />
--> Conform <span style="color: #e06666;">building </span>the project and solution prior to publish.<br />
<br />
</div>Ashokhttp://www.blogger.com/profile/04298168259549274949noreply@blogger.com0tag:blogger.com,1999:blog-1866965987285286758.post-48809739544016399332011-11-09T00:01:00.000-08:002011-11-09T00:02:23.071-08:00Adding the 'YesNo' MessageBox in the ASP.NetWebApplication<div dir="ltr" style="text-align: left;" trbidi="on"><div style="color: #3d85c6;"><span style="font-size: large;"><b>Questions Received:</b></span></div> How to add the '<b style="color: #e06666;">YesNo</b>' <span style="color: #6aa84f;">MessageBox</span> in the ASP.Net WebApplication.<br />
<br />
<div style="color: #3d85c6;"><b><span style="font-size: large;">Solution:</span></b></div> In the 'default.aspx.cs' page,<br />
<div style="color: #93c47d;"> <span style="color: #38761d;">private void callMessageBox()</span><br />
<span style="color: #38761d;"> {</span><br />
uscMessageBox.AddMessage("Are you sure that you want update the database?", </div><div style="color: #93c47d;">[NameSpace].MessageBox.enmMessageType.Attention, true, true, string.Empty);<br />
<span style="color: #38761d;">}</span><br />
<br />
<span style="color: #38761d;">public void MessageAnswered(object sender, [NameSpace].MessageBox.MsgBoxEventArgs e)</span><br />
<span style="color: #38761d;"> {</span><br />
if (e.Answer == [NameSpace].MessageBox.enmAnswer.OK)<br />
{</div><div style="color: #93c47d;"> }<br />
else<br />
{<br />
}<br />
<span style="color: #38761d;">}</span></div> <br />
In the<span style="color: #6fa8dc;"> 'page_load()' </span>method,<br />
Add, <span style="color: #93c47d;">uscMessageBox.MsgBoxAnswered += MessageAnswered;</span><span style="color: #6fa8dc;"> //Event HandlerCaller</span><br />
<br />
<span style="color: #674ea7;">[Note:]</span> The UpdatePanel will be rendered after the method ends. Parent page control will be lost.<br />
when the UpdatePanel is displayed.</div>Ashokhttp://www.blogger.com/profile/04298168259549274949noreply@blogger.com0tag:blogger.com,1999:blog-1866965987285286758.post-7918795027945619552011-11-08T23:46:00.000-08:002011-11-09T03:38:37.155-08:00How to add the MessageBox in the ASP.Net WebApplication<div dir="ltr" style="text-align: left;" trbidi="on"><div style="color: #3d85c6;"><span style="font-size: large;"><b>Question Received:</b></span></div> How to add the<span style="color: cyan;"> popup messageBox</span> in the ASP.Net Web Page.<br />
<br />
<div style="color: #3d85c6;"><span style="font-size: large;"><b>Solution:</b></span></div> First, Add a new panel over the current page. Panel should hold the<br />
messageBox. It will be refreshed or updated whenever it renders the<br />
messageBox.<br />
In the <span style="color: #6fa8dc;">'default.aspx'</span> page, Register the Control Page by,<br />
<span style="color: #6aa84f;"> <%@ Register </span><br />
<span style="color: #e06666;">Src="~/MessageBox.ascx" </span><br />
<div style="color: #e06666;"> TagName="uscMsgBox" </div><div style="color: #e06666;"> TagPrefix="usc" %></div> <span style="color: #6aa84f;"> <asp:Content </span><br />
<span style="color: #e06666;"> ID="BodyContent" </span><br />
<div style="color: #e06666;"> runat="server" </div><div style="color: #e06666;"> ContentPlaceHolderID="MainContent"></div> <span style="color: #6aa84f;"> <usc:uscMsgBox </span><br />
<span style="color: #e06666;"> ID="uscMessageBox" </span><br />
<span style="color: #e06666;"> runat="server" /></span><br />
<span style="color: #6aa84f;"> </asp:Content></span><br />
In the <span style="color: #6fa8dc;">'default.aspx.cs'</span> page, Use the methods like,<br />
--> <span style="color: red;">uscMessageBox.AddMessage(message [NameSpace].MessageBox.enmMessageType.Error);</span><br />
--><span style="color: #38761d;"> uscMessageBox.AddMessage(message [NameSpace].MessageBox.enmMessageType.Info);</span><br />
Add the App_Themes with default.css, icons. <br />
<br />
Now compile, It will work.<br />
If Need, You can give the handler to '<span style="color: #38761d;">OK</span>' Button.<br />
i. First, write control code in the<span style="color: #6fa8dc;"> 'MessageBox.ascx.cs'</span> page.<br />
<span style="color: #93c47d;"> protected void btnOK_Click(object sender, EventArgs e)</span><br />
<span style="color: #93c47d;"> {</span><br />
<span style="color: #93c47d;"> if (ClickedOK != null)</span><br />
<span style="color: #93c47d;"> {</span><br />
<span style="color: #93c47d;"> ClickedOK(this, new MsgBoxEventArgs(enmAnswer.OK, Args));</span><br />
<span style="color: #93c47d;"> Args = "";</span><br />
<span style="color: #93c47d;"> }</span><br />
<span style="color: #93c47d;"> }</span><br />
ii. Add the Handler Event to the<span style="color: #6fa8dc;"> 'default.aspx.cs'</span> page.<br />
<span style="color: #93c47d;"> uscMessageBox.ClickedOK += OKClick;</span><br />
iii. Write handler in the<span style="color: #6fa8dc;"> 'default.aspx.cs' </span>page.<br />
<span style="color: #93c47d;">public void OKClick(object sender, [NameSpace].MessageBox.</span><br />
<span style="color: #93c47d;">MsgBoxEventArgs e)</span><br />
<span style="color: #93c47d;"> {</span><br />
<span style="color: #93c47d;"> if (confirmContinue)</span><br />
<span style="color: #93c47d;"> {</span><br />
<span style="color: #93c47d;"> confirmContinue = false;</span><br />
<span style="color: #93c47d;"> <span style="color: #e06666;"> Response.Redirect("default.aspx"); </span> </span><br />
<span style="color: #93c47d;"> }</span><br />
<span style="color: #93c47d;"> }</span><br />
iv. Please make changes in the <span style="color: #6fa8dc;">'Message.ascx.cs'</span> page.<br />
<span style="color: #e06666;">OnPreRender()</span><br />
<span style="color: #93c47d;"> //ModalPopUpExtender_OKButton</span><br />
<span style="color: #93c47d;"> mpeMsg.OkControlID = "btnD2";</span><br />
<br />
<br />
Download source from, <a href="https://skydrive.live.com/redir.aspx?cid=71c30be9c60402d0&resid=71C30BE9C60402D0%21151">YaBu.MessageBox.zip</a><br />
<span style="color: #674ea7;">[Note:]</span> Do above four steps if You want any handler to '<span style="color: #38761d;">OK</span>' Button.</div>Ashokhttp://www.blogger.com/profile/04298168259549274949noreply@blogger.com0tag:blogger.com,1999:blog-1866965987285286758.post-59617960295362375192011-11-08T22:42:00.000-08:002011-11-08T22:42:46.741-08:00How to break the connection string into elements<div dir="ltr" style="text-align: left;" trbidi="on"><div style="color: #3d85c6;"><span style="font-size: large;"><b>Question Received:</b></span></div> How to <b style="color: #e06666;">split </b>the connection string into individual elements<br />
like InitialCatalog, DBName, UserName, Passwd..<br />
<div style="color: #3d85c6;"><span style="font-size: large;"><b><br />
</b></span></div><div style="color: #3d85c6;"><span style="font-size: large;"><b>Solution:</b></span></div> To break the conn. String, use the SQLConnectionBuilder as,<br />
<div style="color: #93c47d;"> SqlConnectionStringBuilder builder = new SqlConnectionStringBuilder("");</div><div style="color: #93c47d;"> builder="AnyConnectionString";</div><span style="color: #93c47d;"> String DBName = builder.IntialCatalog.ToString();</span></div>Ashokhttp://www.blogger.com/profile/04298168259549274949noreply@blogger.com0tag:blogger.com,1999:blog-1866965987285286758.post-22037095678287469972011-11-08T22:34:00.000-08:002011-11-08T22:34:36.316-08:00Extender to any control in the WebApplication<div dir="ltr" style="text-align: left;" trbidi="on"><div style="color: #3d85c6;"><span style="font-size: large;"><b>Question Received:</b></span></div> To add an extender to any control in the web page.<br />
<br />
<div style="color: #3d85c6;"><span style="font-size: large;"><b>Solution:</b></span></div> Add it like,<br />
<span style="color: #6aa84f;"> <asp:RegularExpressionValidator </span><br />
<span style="color: #e06666;"> ID="RegExValidatorCommonGroup" </span><br />
<span style="color: #e06666;"> runat="server" </span><br />
<span style="color: #e06666;"> ControlToValidate="anyTxtBox"</span><br />
<span style="color: #e06666;"> ErrorMessage="Requires valid Text" </span><br />
<span style="color: #e06666;"> ValidationExpression="(Expression_)+[1234]$" </span><br />
<span style="color: #e06666;"> ValidationGroup="<span style="color: #674ea7;">CommonGroup</span>"></span><br />
<span style="color: #6aa84f;"></asp:RegularExpressionValidator></span><br />
<span style="color: #6aa84f;"> <asp:TextBox </span><br />
<span style="color: #e06666;"> ID="anyTxtBox" </span><br />
<span style="color: #e06666;"> runat="server" </span><br />
<span style="color: #e06666;"> Width="250px"</span><br />
<span style="color: #e06666;"> ValidationGroup="<span style="color: #674ea7;">CommonGroup</span>"></span><br />
<span style="color: #6aa84f;"></asp:TextBox></span><br />
<span style="color: #6aa84f;"> <asp:Button </span><br />
<span style="color: #e06666;">ID="AnyBtn" </span><br />
<span style="color: #e06666;"> runat="server" </span><br />
<span style="color: #e06666;"> Text="OK" </span><br />
<span style="color: #e06666;"> onclick="AnyBtn_Click" </span><br />
<span style="color: #e06666;"> ValidationGroup="<span style="color: #674ea7;">CommonGroup</span>"> </span> <br />
<span style="color: #6aa84f;"> </asp:Button></span><br />
<br />
All Controls in the same group will be triggered for validation.<br />
<span style="color: #674ea7;">[Note:]</span> Please do care about the ValidationGroup. Else, All controls in the<br />
page will be triggered for validation.</div>Ashokhttp://www.blogger.com/profile/04298168259549274949noreply@blogger.com0tag:blogger.com,1999:blog-1866965987285286758.post-7784722296907078322011-11-08T22:23:00.000-08:002011-11-08T22:23:24.382-08:00How to give style to different components in the ASP<div dir="ltr" style="text-align: left;" trbidi="on"><div style="color: #3d85c6;"><span style="font-size: large;"><b>Question Received:</b></span></div> How to give style to the components <b><span style="color: #e06666;">implicitly </span></b>without<br />
giving it <b style="color: #e06666;">explicitly </b>in the CSS file.<br />
<br />
<div style="color: #3d85c6;"><span style="font-size: large;"><b>Solution:</b></span></div> It can be marked up in the header content as,<br />
<span style="color: #38761d;"> <asp:Content ID="<b style="color: #93c47d;">HeaderContent</b>" runat="server" ContentPlaceHolderID="<b style="color: #93c47d;">HeadContent</b>"></span><br />
<span style="color: #93c47d;"> <style type="text/css"></span><br />
<span style="color: #e06666;">.styleForComponent</span><br />
<span style="color: #e06666;"> {</span><br />
<span style="color: #e06666;"> position: absolute;</span><br />
<span style="color: #e06666;"> right: 4px;</span><br />
<span style="color: #e06666;"> width: 17px;</span><br />
<span style="color: #e06666;"> height: 18px;</span><br />
<span style="color: #e06666;"> }</span><br />
<span style="color: #93c47d;"></style></span><br />
<span style="color: #93c47d;"> <span style="color: #38761d;"></asp:Content> </span></span><br />
It can be used in the asp BodyContent as,<br />
<span style="color: #38761d;"><asp:Content ID="<b><span style="color: #93c47d;">BodyContent</span></b>" runat="server" ContentPlaceHolderID="</span><b><span style="color: #93c47d;">BodyContent</span></b><span style="color: #38761d;">"></span><br />
<span style="color: #38761d;"><span style="color: #e06666;"> <table style="styleForComponent"> </span></span><br />
<span style="color: #38761d;"> </asp:Content></span><br />
<span style="color: #38761d;"><br />
</span></div>Ashokhttp://www.blogger.com/profile/04298168259549274949noreply@blogger.com0tag:blogger.com,1999:blog-1866965987285286758.post-31726219734167792652011-11-08T22:10:00.000-08:002011-11-08T22:10:50.242-08:00How to register the component or server page<div dir="ltr" style="text-align: left;" trbidi="on"><div style="color: #3d85c6;"><span style="font-size: large;"><b>Question Received:</b></span></div> How to use the<span style="background-color: black; color: #e06666;"> AjaxControlToolkit</span> or<span style="color: #e06666;"> Control WebPages</span> into <span style="color: #93c47d;">ActiveServerPages(.aspx)</span><br />
<br />
<span style="color: #3d85c6; font-size: large;"><b>Solution:</b></span><br />
First, Register the controls into asp by,<br />
For any Toolkit, <br />
<span style="color: #93c47d;"><%@ Register </span><br />
<span style="color: #ea9999;"> Assembly="AjaxControlToolkit" </span><br />
<div style="color: #ea9999;"> Namespace="AjaxControlToolkit" </div><div style="color: #ea9999;"> TagPrefix="asp" %></div> For any Control page,<br />
<span style="color: #93c47d;"> <%@ Register </span><br />
<span style="color: #ea9999;">Src="~/MessageBox.ascx" </span><br />
<div style="color: #ea9999;"> TagName="uscMsgBox" </div><div style="color: #ea9999;"> TagPrefix="usc" %></div><br />
<span style="color: #3d85c6; font-size: large;"><b>TagName:</b></span><br />
'TagName' is the class that implements the necessary methods.<br />
For Toolkit, <br />
<span style="color: #b6d7a8;">Menu, TabContainer, TabPanel</span>,... are predefined<br />
For Control page,<br />
It is the object created to class implemented in the ctrl page.<br />
Methods should be implemented for using it explicitly.<br />
<br />
</div>Ashokhttp://www.blogger.com/profile/04298168259549274949noreply@blogger.com0tag:blogger.com,1999:blog-1866965987285286758.post-62387825327686951432011-11-02T06:38:00.000-07:002011-11-02T06:38:00.834-07:00Download File Synchronously<div dir="ltr" style="text-align: left;" trbidi="on"><div style="color: #3d85c6;"><span style="font-size: large;"><b>Questions Received:</b></span></div> How to download a file synchronously.<br />
<br />
<span style="color: #3d85c6; font-size: large;"><b>Solution:</b></span><br />
The following is the logic to download a file from Web URL, <br />
<span class="type" style="color: #999999;">webClient</span><span style="color: #999999;"> webClient = </span><span class="keyword" style="color: #999999;">new</span><span style="color: #999999;"> </span><span class="type" style="color: #999999;">WebClient</span><span style="color: #999999;">(); </span><br />
<div style="color: #999999;"> webClient.<strong>DownloadFile</strong>(<span class="string">"http://mysite.com/myfile.txt"</span>, <span class="string">@"c:\myfile.txt"</span>);</div><pre class="code"> </pre><pre class="code"><span style="color: #8e7cc3;">[Note:]</span> Reference Namespace,
<span class="keyword"> <span style="color: #93c47d;">using</span></span><span style="color: #93c47d;"> System.Net;</span>
</pre></div>Ashokhttp://www.blogger.com/profile/04298168259549274949noreply@blogger.com0tag:blogger.com,1999:blog-1866965987285286758.post-58649928406045504822011-11-02T06:32:00.000-07:002011-11-02T06:32:01.538-07:00Download File Asynchronously<div dir="ltr" style="text-align: left;" trbidi="on"><div style="color: #3d85c6;"><b><span style="font-size: large;">Questions Received:</span></b></div> How to download a file asynchronously using C sharp Client.<br />
<br />
<br />
<br />
<div style="color: #3d85c6;"><span style="font-size: large;"><b>Solution:</b></span></div> Here is the business logic for <span style="color: #6aa84f;">download a file</span> from website URL,<br />
<br />
<span style="color: #cccccc;"> </span><span style="background-color: black; color: #999999;">private void btnDownload_Click(object sender, EventArgs e)</span><br style="background-color: black; color: #999999;" /><span style="background-color: black; color: #999999;"> {</span><br style="background-color: black; color: #999999;" /><span style="background-color: black; color: #999999;"> <span style="background-color: black; color: #cccccc;">WebClient webClient = new WebClient();</span></span><br style="background-color: black; color: #cccccc;" /><span style="background-color: black; color: #cccccc;"> webClient.DownloadFileCompleted += new AsyncCompletedEventHandler(Completed);</span><br style="background-color: black; color: #cccccc;" /><span style="background-color: black; color: #cccccc;"> webClient.DownloadProgressChanged += new DownloadProgressChangedEventHandler(ProgressChanged);</span><br style="background-color: black; color: #cccccc;" /><span style="background-color: black; color: #cccccc;"> webClient.DownloadFileAsync(new Uri("http://education.vnu.edu.vn/eng/pic_upload/1252901905~Master_Mathematics.doc"), @"d:\Files.doc");</span><br style="background-color: black; color: #999999;" /><span style="background-color: black; color: #999999;"> }</span><br style="background-color: black; color: #999999;" /><br style="background-color: black; color: #999999;" /><span style="background-color: black; color: #999999;"> <span style="background-color: black; color: #999999;"> private void ProgressChanged(object sender, System.Net.DownloadProgressChangedEventArgs e)</span></span><br style="background-color: black; color: #999999;" /><span style="background-color: black; color: #999999;"> <span style="background-color: black; color: #cccccc;">{</span></span><br style="background-color: black; color: #cccccc;" /><span style="background-color: black; color: #cccccc;"> progressBar.Value = e.ProgressPercentage;</span><br style="background-color: black; color: #cccccc;" /><span style="background-color: black; color: #cccccc;"> }</span><br style="background-color: black; color: #999999;" /><br style="background-color: black; color: #999999;" /><span style="background-color: black; color: #999999;"> <span style="background-color: black; color: #999999;">private void Completed(object sender, AsyncCompletedEventArgs e)</span></span><br style="background-color: black; color: #999999;" /><span style="background-color: black; color: #999999;"> <span style="background-color: black; color: #cccccc;">{</span></span><br style="background-color: black; color: #cccccc;" /><span style="background-color: black; color: #cccccc;"> MessageBox.Show("Download completed!");</span><br style="background-color: black; color: #cccccc;" /><span style="background-color: black; color: #cccccc;"> }</span><br />
<br />
<span style="color: #674ea7;">[Note:]</span> The Namespaces are,<br />
<span style="color: #93c47d;">using System.Deployment.Application;</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> using System.Net;</span></div>Ashokhttp://www.blogger.com/profile/04298168259549274949noreply@blogger.com0tag:blogger.com,1999:blog-1866965987285286758.post-52121300333150138002011-10-19T00:54:00.000-07:002011-10-19T00:54:09.687-07:00To Rename the nameSpace(FolderContainer), ProjectFile, solutionFile constructively<div dir="ltr" style="text-align: left;" trbidi="on"><div style="color: #3d85c6;"><b><span style="font-size: large;">Question Received:</span></b></div> How to<span style="color: #6aa84f;"> Rename</span> the nameSpace(FolderContainer), ProjectFile,<br />
solutionFile <span style="color: #bf9000;">undestructively</span>.<br />
<br />
<br />
<span style="color: #3d85c6; font-size: large;"><b>To Rename the nameSpace(FolderContainer), </b></span><br />
<span style="color: #3d85c6; font-size: large;"><b>ProjectFile, solutionFile</b></span><br />
i. Rename the SolutionFile.<br />
ii.Open the VS SolutionFile in the MSVisualStudio<br />
iii.Rename the projectFile.<br />
iv.Build the solution.<br />
v. Rename the 'cs' Files, if Yo need<br />
vi.Re-Build the solution<br />
vii.Finally, Build the Entire solution once.<br />
viii.For renaming the namespace, unload and remove the project<br />
from the solution.<br />
ix. Rename the projectFolder(nameSpace)<br />
x. GoTo <span style="color: #93c47d;">MSVisualStudio, Add-->ExistingProject--></span><br style="color: #93c47d;" /><span style="color: #93c47d;"> BrowseForProjectFile--><b style="color: #6aa84f;">'OK'</b></span><br />
xi.Re-Build the Solution.<br />
xii.Cheers, It's done.<br />
<br />
[Note:] Follow the steps in order, and taking the backup of <b style="color: #e06666;">Entire Project</b> is more advisable.</div>Ashokhttp://www.blogger.com/profile/04298168259549274949noreply@blogger.com1tag:blogger.com,1999:blog-1866965987285286758.post-88031501022172097862011-10-13T23:03:00.000-07:002011-10-13T23:03:16.745-07:00Settings the controls in Windows Form<div dir="ltr" style="text-align: left;" trbidi="on"><div style="color: #3d85c6;"><b><span style="font-size: large;">Questions Received:</span></b></div> How to set/unset the controls in the Windows Form<br />
<br />
<div style="color: #3d85c6;"><span style="font-size: large;"><b>Solution:</b></span></div> To find the required using the accessible name of the controls, use the 'find' method in<br />
Form.Controls.find().<br />
<span style="color: #93c47d;">public static <b style="color: #e06666;">void set(Control form,string ctrlName,string DBName)</b></span><br style="color: #93c47d;" /><span style="color: #93c47d;"> {</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> foreach (Control ctrl in form.Controls.Find(ctrlName, true))</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> {</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> if (ctrl is<b> <span style="color: #e06666;">CheckBox</span></b>)</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> {</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> CheckBox chk = (CheckBox)ctrl;</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> if (chk != null)</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> {</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> chk.Checked = true;</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> }</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> }</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> if (ctrl is<b> <span style="color: #e06666;">TextBox</span></b>)</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> {</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> TextBox tb = (TextBox)ctrl;</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> if (tb != null)</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> {</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> tb.Text = DBName;</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> }</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> }</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> }</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> }</span><br />
<br />
<span style="color: #8e7cc3;">[Note:]</span> Assume, Form-->this, ctrlName-->AccessibleCtrlName, DBName-->TextFieldEntry<br />
You can use this function to manage different controls in the Form</div>Ashokhttp://www.blogger.com/profile/04298168259549274949noreply@blogger.com0tag:blogger.com,1999:blog-1866965987285286758.post-36106487016044230992011-10-11T04:58:00.000-07:002011-10-11T04:59:34.318-07:00rmdir command for removing directories[Force Mode]<div dir="ltr" style="text-align: left;" trbidi="on"><div style="color: #3d85c6;"><b><span style="font-size: large;">Questions Received:</span></b></div> I cannot delete a folder which says, "<span style="color: #e06666;">Access is denied</span>" while trying to delete it thru<br />
GUI mode or thru Command Prompt.<br />
<br />
<div style="color: #3d85c6;"><span style="font-size: large;"><b>Solution:</b></span></div> Change the permissions for directories by using the commands,<br />
<span style="color: #93c47d;">* cacls.exe</span><br />
<div style="color: #93c47d;"> * icacls.exe</div><div style="color: #3d85c6;"><span style="font-size: large;"><b>Cacls.exe</b></span></div> <span style="color: #8e7cc3;">[NOTE:]</span> i. Cacls is now deprecated, please use Icacls.<br />
ii. Wildcards can be used to specify more than one file in a command.<br />
You can specify more than one user in a command.<br />
<br />
<b style="color: #3d85c6;"><span style="font-size: large;">Description:</span></b><br />
Displays or modifies access control lists (ACLs) of files<br />
<span style="color: #3d85c6; font-size: large;"><b>Syntax:</b></span><br />
<span style="color: #93c47d;">CACLS filename [/T] [/M] [/L] [/S[:SDDL]] [/E] [/C] [/G user:perm]</span><br />
<span style="color: #93c47d;"> [/R user [...]] [/P user:perm [...]] [/D user [...]]</span><br />
filename Displays ACLs.<br />
/T Changes ACLs of specified files in<br />
the current directory and all subdirectories.<br />
/L Work on the Symbolic Link itself versus the target<br />
/M Changes ACLs of volumes mounted to a directory<br />
/S Displays the SDDL string for the DACL.<br />
/S:SDDL Replaces the ACLs with those specified in the SDDL string<br />
(not valid with /E, /G, /R, /P, or /D).<br />
/E Edit ACL instead of replacing it.<br />
/C Continue on access denied errors.<br />
/G user:perm Grant specified user access rights.<br />
Perm can be: R Read<br />
W Write<br />
C Change (write)<br />
F Full control<br />
/R user Revoke specified user's access rights (only valid with /E).<br />
/P user:perm Replace specified user's access rights.<br />
Perm can be: N None<br />
R Read<br />
W Write<br />
C Change (write)<br />
F Full control<br />
/D user Deny specified user access.<br />
<br />
<div style="color: #3d85c6;"><span style="font-size: large;"><b>iCacls.exe</b></span></div> <br />
<span style="color: #93c47d;">ICACLS name /save aclfile [/T] [/C] [/L] [/Q]</span><br />
stores the DACLs for the files and folders that match the name<br />
into aclfile for later use with /restore. Note that SACLs,<br />
owner, or integrity labels are not saved.<br />
<br />
<span style="color: #93c47d;">ICACLS directory [/substitute SidOld SidNew [...]] /restore aclfile</span><br />
[/C] [/L] [/Q]<br />
applies the stored DACLs to files in directory.<br />
<br />
<span style="color: #93c47d;">ICACLS name /setowner user [/T] [/C] [/L] [/Q]</span><br />
changes the owner of all matching names. This option does not<br />
force a change of ownership; use the takeown.exe utility for<br />
that purpose.<br />
<br />
<span style="color: #93c47d;">ICACLS name /findsid Sid [/T] [/C] [/L] [/Q]</span><br />
finds all matching names that contain an ACL<br />
explicitly mentioning Sid.<br />
<br />
<span style="color: #93c47d;">ICACLS name /verify [/T] [/C] [/L] [/Q]</span><br />
finds all files whose ACL is not in canonical form or whose<br />
lengths are inconsistent with ACE counts.<br />
<br />
<span style="color: #93c47d;">ICACLS name /reset [/T] [/C] [/L] [/Q]</span><br />
replaces ACLs with default inherited ACLs for all matching files.<br />
<br />
<span style="color: #93c47d;">ICACLS name [/grant[:r] Sid:perm[...]]</span><br />
<span style="color: #93c47d;"> [/deny Sid:perm [...]]</span><br />
<span style="color: #93c47d;"> [/remove[:g|:d]] Sid[...]] [/T] [/C] [/L] [/Q]</span><br />
<span style="color: #93c47d;"> [/setintegritylevel Level:policy[...]]</span><br />
<br />
Say,<br />
To delete the victim folder,<br />
<span style="color: lime;">cacls <FilePath> /T /C /E /G User:Perm</span><br />
Example, cacls "C:\Folder\*.*" /T /C /E /G User:<F|N|RX|W|R><br />
And, <span style="color: lime;">rmdir /s /d "C:\Folder"</span><br />
<br />
</div>Ashokhttp://www.blogger.com/profile/04298168259549274949noreply@blogger.com0tag:blogger.com,1999:blog-1866965987285286758.post-71582755972347640652011-10-11T00:25:00.000-07:002011-10-11T00:25:58.151-07:00rmdir command for removing directories<div dir="ltr" style="text-align: left;" trbidi="on"><div style="color: #3d85c6;"><span style="font-size: large;"><b>Questions Received:</b></span></div> Removing the directories thru GUI takes much downtime.<br />
<br />
<div style="color: #3d85c6;"><b><span style="font-size: large;">Solution:</span></b></div> Remove the directories thru the command prompt in quiet mode.<br />
<br />
<br />
<br />
<b><span style="color: #3d85c6; font-size: large;">'rmdir' command</span></b><br />
Removes (deletes) a directory.<br />
<br />
<span style="color: #6aa84f;"> RMDIR [drive:]path</span><br style="color: #6aa84f;" /><span style="color: #6aa84f;"> RD [drive:]path</span><br />
<br />
Windows 2000 and Windows XP Syntax.<br />
<br />
<span style="color: #93c47d;">RMDIR [/S] [/Q] [drive:]path</span><br style="color: #93c47d;" /><span style="color: #93c47d;">RD [/S] [/Q] [drive:]path</span><br />
<span style="color: #e06666;">/S</span> Removes all directories and files in the specified directory in addition to the directory itself. Used to remove a directory tree.<br />
<span style="color: #e06666;">/Q</span> Quiet mode, do not ask if ok to remove a directory tree with /S.<br />
<br />
<span style="font-size: large;"><b><span style="color: #3d85c6;">Examples</span></b></span><br />
<br />
<span style="color: #93c47d;">rmdir c:\test</span><br />
<br />
Remove the test directory, if empty. If you want to delete directories that are full, use the deltree command or if you're using Windows 2000 or later use the below example.<br />
<br />
<span style="color: #93c47d;">rmdir c:\test /s</span><br />
<br />
Windows 2000, Windows XP and later versions of Windows can use this option with a prompt to permanently delete the test directory and all subdirectories and files. Adding the /q switch would suppress the prompt.<br />
<br />
<span style="color: #674ea7;">[Note:]</span> Run the command as Administrator, if needed.<br />
<br />
</div>Ashokhttp://www.blogger.com/profile/04298168259549274949noreply@blogger.com0tag:blogger.com,1999:blog-1866965987285286758.post-57077648835695766822011-10-11T00:08:00.000-07:002011-10-11T00:08:47.021-07:00Delete the files thru Command Prompt<div dir="ltr" style="text-align: left;" trbidi="on"><div style="color: #3d85c6;"><b><span style="font-size: large;">Questions received:</span></b></div> Deleting the file thru GUI takes much downtime.<br />
<br />
<div style="color: #3d85c6;"><b><span style="font-size: large;">Solution:</span></b></div> Deleting the files thru the command prompt makes it passive and quiet.<br />
<br />
<br />
<span style="color: #3d85c6; font-size: large;"><b>'<span style="color: #6aa84f;">DEL</span>' Command</b></span><br />
Delete one or more files.<br />
<br />
<b><span style="font-size: small;"><span style="color: #3d85c6;">Syntax</span></span></b><br />
<span style="color: #93c47d;">DEL [options] [/A:file_attributes] files_to_delete</span><br />
<br />
<b style="color: #3d85c6;">Key</b><br />
<span style="color: #93c47d;">files_to_delete</span> : This may be a filename, a list of files or a Wildcard <br />
<br />
<span style="color: #3d85c6;">options </span><br />
/P Give a Yes/No Prompt before deleting. <br />
/F Ignore read-only setting and delete anyway (FORCE) <br />
/S Delete from all Subfolders (DELTREE)<br />
/Q Quiet mode, do not give a Yes/No Prompt before deleting.<br />
<br />
/A Select files to delete based on file_attributes <br />
<br />
<b style="color: #3d85c6;">file_attributes:</b><br />
R Read-only -R NOT Read-only<br />
S System -S NOT System<br />
H Hidden -H NOT Hidden<br />
A Archive -A NOT Archive<br />
<br />
<b><span style="color: #3d85c6;">Wildcards:</span></b> These can be combined with part of a filename<br />
<br />
* Match any characters<br />
? Match any ONE character<br />
<br />
<span style="color: #3d85c6; font-size: large;"><b>Examples:</b></span><br />
<br />
To delete HelloWorld.TXT<br />
DEL HelloWorld.TXT<br />
<br />
To delete "Hello Big World.TXT"<br />
DEL "Hello Big World.TXT"<br />
<br />
To delete all files that start with the letter A<br />
DEL A*<br />
<br />
To delete all files that end with the letter A<br />
DEL *A.*<br />
<br />
To delete all files with a .DOC extension<br />
DEL *.DOC<br />
<br />
To delete all read only files<br />
DEL /a:R *<br />
<br />
To delete all files including any that are read only<br />
DEL /F *<br />
<br />
<span style="color: #674ea7;">[Note:]</span> Run these commands as Administrator, if needed.<br />
<br />
</div>Ashokhttp://www.blogger.com/profile/04298168259549274949noreply@blogger.com0tag:blogger.com,1999:blog-1866965987285286758.post-56920995730966621082011-10-01T11:22:00.000-07:002011-10-01T11:23:46.205-07:00Unblock Wupload in India<div dir="ltr" style="text-align: left;" trbidi="on"><br />
<div class="post-header-line-1"><span class="post-author vcard"><br />
</span><span class="post-labels"><a href="http://www.egyhacks.net/search/label/Things%20You%20Must%20Know" rel="tag"></a> </span> </div><div style="text-align: justify;"></div><div style="text-align: center;"><div class="separator" style="clear: both; text-align: center;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfYXurJbqGyPV0BxvcHPlVCgnWOjEgpSr1YKbjxHU3XhcGZm-Vu94xc9MjaSLmbCVSiUzlIxkMRC8ELt4TORCDxzM3iQyLw5jRrQVq_6QdEDgqESJSsqUkqXm7SaT8sEAM4CvUvWUkCZA/s1600/WUpload-Logo.png" /></div><div style="color: #444444;"></div></div><div style="color: #444444; text-align: center;"><b>Unblock Wupload Blocked In India</b></div><div style="color: #444444; text-align: center;"></div><div style="color: #444444; text-align: justify;"><br />
<div style="text-align: justify;">Hello all users, as you know that many Internet Service Providers in India are agreed to block file sharing sites in order to prevent piracy as much as possible so I thought of sharing this info with you This topic concerns all wupload.com users form India using BSNL or Tata Photon as their Internet Service Provider. As most of you have noticed, Wupload is not opening. But if you run a check with isup.me, you will find that the site is perfectly working. </div></div><div style="color: #3d85c6; text-align: justify;"><span style="font-size: large;"><b><br />
</b></span></div><span style="font-size: large;"><b><a href="http://www.blogger.com/post-edit.g?blogID=1866965987285286758&postID=5692099573096662108" name="more" style="color: #3d85c6;"></a></b></span><br />
<div style="color: #3d85c6; text-align: justify;"></div><div style="color: #3d85c6; text-align: justify;"><span style="font-size: large;"><b>What's the solution? </b></span></div><div style="color: #444444; text-align: justify;"></div><div style="color: #444444; text-align: justify;">Wupload is working fine. All you need to do is change your PC or Laptop's DNS server to Google's DNS server i.e. 8.8.8.8 and 8.8.4.4. Once done, you'll find that Wupload is working absolutely fine. Huge thanks to awaiz007.</div><div style="text-align: justify;"></div><span style="font-size: large;"><b><span style="color: #3d85c6;"> </span></b><b style="color: #3d85c6;">How to change the DNS? (Source)</b></span><br />
<br />
1) Open Network Connections. <span style="color: #6aa84f;">Start menu > My Computer > My Network Places > View Network Connections.</span><br />
<br />
2) Locate the network connection that is associated with your Internet connection. This may be labeled something like Local Area Connection or Wireless Network Connection. If you have more than one connection to choose from, be sure you determine the right one before proceeding.<br />
<br />
3) Right click on the appropriate connection and select Properties.<br />
<br />
4) In the list that appears under the General tab, double click on Internet Protocol (TCP/IP).<br />
<br />
5) In the window that appears, you want to select the option to Use the following DNS server addresses.<br />
<br />
6) Enter <span style="color: #6aa84f;">8.8.8.8</span> in Preferred DNS Server.<br />
<br />
7) Enter<span style="color: #6aa84f;"> 8.8.4.4</span> in Alternate DNS Server.<br />
<br />
8) Press<span style="color: #6aa84f;"> OK</span> out of all windows until you are back to the Network Connections window.<br />
<br />
Now open your preferred web browser to find out that Wupload is working! </div>Ashokhttp://www.blogger.com/profile/04298168259549274949noreply@blogger.com0tag:blogger.com,1999:blog-1866965987285286758.post-38258963426073194922011-10-01T04:19:00.000-07:002011-10-01T04:19:07.696-07:00Reset Form Fields to default NULL Values<div dir="ltr" style="text-align: left;" trbidi="on"><span style="color: #3d85c6; font-size: large;"><b>Question Received:</b></span><br />
How to reset form fields and controls thru programming?<br />
<br />
<div style="color: #3d85c6;"><span style="font-size: large;"><b>Solution: </b></span></div> To reset the form controls and fields with NULL (or) Empty String,<br />
Call function <b style="color: #6aa84f;">ResetFields<span style="background-color: white;"><span style="background-color: black;">(</span><span style="background-color: black; color: #6fa8dc;">this</span></span>) </b>from any function,<br />
<span style="color: #93c47d;"> public static void ResetFields(Control form)</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> {</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> foreach (Control ctrl in form.Controls)</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> {</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> if (ctrl.Controls.Count > 0)</span><span style="background-color: white; color: #93c47d;"></span><br style="color: #93c47d;" /><span style="color: #93c47d;"> ResetFields(ctrl);</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> Reset(ctrl);</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> } </span><br style="color: #93c47d;" /><span style="color: #93c47d;"> }</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> public static void Reset(Control ctrl)</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> {</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> if (ctrl is TextBox)</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> {</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> TextBox tb = (TextBox)ctrl;</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> if (tb != null)</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> {</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> tb.ResetText();</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> }</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> }</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> else if (ctrl is ComboBox)</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> {</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> ComboBox cb = (ComboBox)ctrl;</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> if (cb != null)</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> {</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> cb.ResetText();</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> }</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> }</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> else if (ctrl is CheckBox)</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> {</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> CheckBox chk = (CheckBox)ctrl;</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> if (chk != null)</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> {</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> chk.Checked = false;</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> }</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> }</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> else if (ctrl is RadioButton)</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> {</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> RadioButton rb = (RadioButton)ctrl;</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> if (rb != null)</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> {</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> rb.Enabled = true;</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> }</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> }</span><br style="color: #93c47d;" /><span style="color: #93c47d;"> }</span><br />
<br />
<br />
</div>Ashokhttp://www.blogger.com/profile/04298168259549274949noreply@blogger.com0tag:blogger.com,1999:blog-1866965987285286758.post-12937025657534894802011-09-27T02:43:00.000-07:002011-09-27T02:43:41.229-07:00To debug cmd (or) bat files<div dir="ltr" style="text-align: left;" trbidi="on"><div style="color: #3d85c6;"><span style="font-size: large;"><b>Question Received: </b></span></div> To debug the cmd (or) bat files with line by line debugger.<br />
<br />
<div style="color: #3d85c6;"><span style="font-size: large;"><b>Solution:</b></span></div> Running Steps V1.1 is a debugger tool that executes the batch files thru<br />
Debugger IDE. Download the utility from the site,<br />
<span style="color: #93c47d;"> </span><a href="http://www.steppingsoftware.com/ssportal/Downloads/tabid/58/Default.aspx" style="color: #93c47d;">Running Steps V1.1</a><br />
<br />
<span style="color: #674ea7;">[Note:]</span> Add the macro for debugging the batch files thru IDE. <br />
</div>Ashokhttp://www.blogger.com/profile/04298168259549274949noreply@blogger.com0tag:blogger.com,1999:blog-1866965987285286758.post-5703621914750835792011-09-22T00:32:00.000-07:002011-09-22T00:32:42.069-07:00How to enable JavaScript in Internet Explorer<div dir="ltr" style="text-align: left;" trbidi="on"><br />
<div style="color: #3d85c6;"><b><span style="font-size: large;">Issue:</span></b></div> In Internet Explorer, the error '<span style="color: #e06666;">JavaScript Enabled Browser required</span>' received when loading the Oracle Applications.<br />
<br />
<div style="color: #3d85c6;"><b><span style="font-size: large;">Solution: </span></b></div> In Internet Explorer, Go to (Tab)Tools-->(Tab)Security-->(Button)Custom Level-->(Category)Scripting--><span style="color: #6aa84f;">Enable Active Scripting.</span><br />
Then, restart the browser, it works.<br />
<br />
</div>Ashokhttp://www.blogger.com/profile/04298168259549274949noreply@blogger.com0tag:blogger.com,1999:blog-1866965987285286758.post-61218334220934666912011-09-20T06:55:00.000-07:002011-09-20T06:55:50.115-07:00To Start, Stop, Suspend a process in C Sharp<div dir="ltr" style="text-align: left;" trbidi="on"><div style="color: #3d85c6;"><span style="font-size: large;"><b>Question received:</b></span></div> How to start, stop, and suspend a process from c sharp client.<br />
<br />
<div style="color: #3d85c6;"><span style="font-size: large;"><b>Solution:</b></span></div> <b style="color: #6aa84f;">Start process</b><br />
System.Diagnostics.Process processObject =<br />
Process.Start(<FullPathOfProcess>,<ProcessArguments>)<br />
<b style="color: #6aa84f;">Stop process</b><br />
System.Diagnostics.Process.Kill(<processObject>)<br />
<b><span style="color: #6aa84f;">Suspend process </span></b><br />
Thread.Sleep(<TimeInMilliseconds>)<br />
<br />
<span style="color: #674ea7;">[Note:]</span> Add necessary dlls for above classes mentioned while doing for the client.<br />
<br />
</div>Ashokhttp://www.blogger.com/profile/04298168259549274949noreply@blogger.com0tag:blogger.com,1999:blog-1866965987285286758.post-1413681254510619442011-09-20T05:58:00.000-07:002011-09-20T06:02:02.061-07:00Installation Tips<div dir="ltr" style="text-align: left;" trbidi="on"><div style="color: #3d85c6;"><span style="font-size: large;"><b>Issue:</b></span></div> To guide the installation.<br />
<br />
<div style="color: #3d85c6;"><span style="font-size: large;"><b>Steps:</b></span></div> <span style="font-size: small;"> i. If setup is multiple files like (<span style="color: #6aa84f;">Disk 1 Disk 2 Disk 3….</span>), we can put it in the </span><br />
<span style="font-size: small;"> common folder. So that the installer will not prompt for the new CD during installation.</span><br />
<span style="font-size: small;"> ii. <span style="color: #6fa8dc;">JDK</span> is available in the folder wherein the bin folder exists.</span><br />
<span style="font-size: small;"> iii. When you uninstall a software which is not having the entry in the </span><br />
<span style="font-size: small;"> ‘Program and Features’, You need to delete that package/folder and clean the </span><br />
<span style="font-size: small;"> related component. Fix registry issues or values with ‘</span><span style="color: #93c47d; font-size: small;">CCleaner</span><span style="font-size: small;">’. If issues remains</span><br />
<span style="font-size: small;"> persisting, go <span style="color: #e06666;">Registry Editor</span> by typing the command ‘regedit’, manually clean the </span><br />
<span style="font-size: small;"> component entry. But You need to backup the changes before changing the Registry.</span></div>Ashokhttp://www.blogger.com/profile/04298168259549274949noreply@blogger.com0tag:blogger.com,1999:blog-1866965987285286758.post-47270776145667500212011-09-20T05:54:00.000-07:002011-09-20T05:54:44.591-07:00How to extract and run a jar file:<div dir="ltr" style="text-align: left;" trbidi="on"><!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:TrackMoves/> <w:TrackFormatting/> <w:PunctuationKerning/> <w:ValidateAgainstSchemas/> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:DoNotPromoteQF/> <w:LidThemeOther>EN-US</w:LidThemeOther> <w:LidThemeAsian>X-NONE</w:LidThemeAsian> <w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript> <w:Compatibility> <w:BreakWrappedTables/> <w:SnapToGridInCell/> <w:WrapTextWithPunct/> <w:UseAsianBreakRules/> <w:DontGrowAutofit/> <w:SplitPgBreakAndParaMark/> <w:DontVertAlignCellWithSp/> <w:DontBreakConstrainedForcedTables/> <w:DontVertAlignInTxbx/> <w:Word11KerningPairs/> <w:CachedColBalance/> </w:Compatibility> <m:mathPr> <m:mathFont m:val="Cambria Math"/> <m:brkBin m:val="before"/> <m:brkBinSub m:val="--"/> <m:smallFrac m:val="off"/> <m:dispDef/> <m:lMargin m:val="0"/> <m:rMargin m:val="0"/> <m:defJc m:val="centerGroup"/> <m:wrapIndent m:val="1440"/> <m:intLim m:val="subSup"/> <m:naryLim m:val="undOvr"/> </m:mathPr></w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
DefSemiHidden="true" DefQFormat="false" DefPriority="99"
LatentStyleCount="267"> <w:LsdException Locked="false" Priority="0" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Normal"/> <w:LsdException Locked="false" Priority="9" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="heading 1"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/> <w:LsdException Locked="false" Priority="39" Name="toc 1"/> <w:LsdException Locked="false" Priority="39" Name="toc 2"/> <w:LsdException Locked="false" Priority="39" Name="toc 3"/> <w:LsdException Locked="false" Priority="39" Name="toc 4"/> <w:LsdException Locked="false" Priority="39" Name="toc 5"/> <w:LsdException Locked="false" Priority="39" Name="toc 6"/> <w:LsdException Locked="false" Priority="39" Name="toc 7"/> <w:LsdException Locked="false" Priority="39" Name="toc 8"/> <w:LsdException Locked="false" Priority="39" Name="toc 9"/> <w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/> <w:LsdException Locked="false" Priority="10" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Title"/> <w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/> <w:LsdException Locked="false" Priority="11" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/> <w:LsdException Locked="false" Priority="22" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Strong"/> <w:LsdException Locked="false" Priority="20" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/> <w:LsdException Locked="false" Priority="59" SemiHidden="false"
UnhideWhenUsed="false" Name="Table Grid"/> <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/> <w:LsdException Locked="false" Priority="1" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 1"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 1"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 1"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/> <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/> <w:LsdException Locked="false" Priority="34" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/> <w:LsdException Locked="false" Priority="29" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Quote"/> <w:LsdException Locked="false" Priority="30" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 1"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 1"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 2"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 2"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 2"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 2"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 2"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 3"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 3"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 3"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 3"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 3"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 4"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 4"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 4"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 4"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 4"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 5"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 5"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 5"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 5"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 5"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 6"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 6"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 6"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 6"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 6"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/> <w:LsdException Locked="false" Priority="19" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/> <w:LsdException Locked="false" Priority="21" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/> <w:LsdException Locked="false" Priority="31" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/> <w:LsdException Locked="false" Priority="32" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/> <w:LsdException Locked="false" Priority="33" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Book Title"/> <w:LsdException Locked="false" Priority="37" Name="Bibliography"/> <w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/> </w:LatentStyles> </xml><![endif]--><!--[if gte mso 10]> <style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin-top:0in;
mso-para-margin-right:0in;
mso-para-margin-bottom:10.0pt;
mso-para-margin-left:0in;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
</style> <![endif]--> <br />
<b style="color: #3d85c6;"><span style="font-size: large;">Steps:</span></b><br />
<br />
i. Install the JDK in the Machine<br />
ii. Set the path of JDK to JAVA_HOME<br />
iii. Set JAVA_HOME=”address of the folder wherein ‘bin’ folder exists”<br />
iv. Check whether it has been created in Environment Variables. Or, you should manually enter path <br />
for the JAVA_HOME on that.<br />
<br />
v. Check this by the command<br />
<span style="color: #6aa84f;">echo %JAVA_HOME%</span><br />
vi Check whether the JAVA is configured by the command.<br />
<span style="color: #6aa84f;"> %JAVA_HOME%\bin\java –version</span><br />
<span style="color: #6aa84f;">%JAVA_HOME%\bin\java –jar <executable jar file></span><br />
<br />
<div style="color: #674ea7;"><span style="font-size: small;">[Note:] </span></div> Run the command prompt with administrative privileges.</div>Ashokhttp://www.blogger.com/profile/04298168259549274949noreply@blogger.com0tag:blogger.com,1999:blog-1866965987285286758.post-26177506353130859342011-09-17T03:35:00.000-07:002011-09-17T03:35:58.385-07:00Internet Connection is not established<div dir="ltr" style="text-align: left;" trbidi="on"><div style="color: #3d85c6;"><b><span style="font-size: large;">Issue: </span></b></div> Internet connectivity is lost in Internet Explorer but in Mozilla Firefox, is working.<br />
<br />
<div style="color: #3d85c6;"><span style="font-size: large;"><b>Scenario:</b></span></div> In Hyper-V Manager, I have added two network adapters with <span style="color: #6aa84f;">same Local Area Connection(LAN)</span> .<br />
<br />
<br />
<b style="color: #3d85c6;"><span style="font-size: large;">Soln:</span></b><br />
Disable one of the Adapters makes the Internet Explorer to get its Connectivity.<br />
<br />
<br />
<br />
</div>Ashokhttp://www.blogger.com/profile/04298168259549274949noreply@blogger.com0tag:blogger.com,1999:blog-1866965987285286758.post-75787954294031632152011-09-17T03:03:00.000-07:002011-09-17T03:03:21.284-07:00Adding Network Adapter to Virtual Machine(Hyper-V)<div dir="ltr" style="text-align: left;" trbidi="on"><b><span style="font-size: large;"><span style="color: #3d85c6;">Issue:</span> </span></b><br />
Local Area Connection is not detecting in the Virtual Machine.<br />
To add the Virtual Network, Network Adapter to the Virtual Machine thru Hyper-V Manager.<br />
<br />
<div style="color: #3d85c6;"><b><span style="font-size: large;">Soln:</span></b></div> <b> <span style="color: #6aa84f;">i. Creating New Virtual Network</span></b><br />
* Start Hyper-V Manager.<br />
* In the Right-Pane, select Virtual Network Manager<br />
* To Create New Connection, Go to New Connection, give details needed-->select the existing LAN, then confirm the action.<br />
* To find the existing Connection, Go--><Virtual Network>(Left Pane),edit the settings(if needed).<br />
<b> <span style="color: #6aa84f;"> ii. Adding the Network Adapter to Virtual Machine:</span></b><br />
* Start the Hyper-V Manager. <br />
* In the Right-Pane, select 'settings' for the Virtual Machine.<br />
* In the Left-Pane, Go to AddHardware, select any Network Adapter and confirm.<br />
<br />
Now start the Virtual Machine, Go to Start-->Control Panel-->Network Connections-->Select a LAN.<br />
Then, go for properties-->set the IP address to your virtual machine.<br />
<b> <span style="color: #6aa84f;"> iii.</span></b> <b><span style="color: #6aa84f;">Ping</span></b> the network to check the LAN is available.<br />
<b> <span style="color: #6aa84f;">iv. Adding the machine to domain.</span></b><br />
* Right-Click 'My Computer', select 'Manage'-->Local Users and Groups-->Administrators<br />
* Add the administrator users for this virtual machine.<br />
* Go to Users, to add the Local Users from the machine-centric domain.<br />
<b style="color: #6aa84f;">v. Check</b> the Remote access.<br />
<br />
</div>Ashokhttp://www.blogger.com/profile/04298168259549274949noreply@blogger.com0