Monday, July 29, 2019

HTTP Error 404. The requested resource is not found.

Dear All,

when you get "HTTP Error 404. The requested resource is not found" error on iis server when deploying.

Ans:- 

How system administrators can troubleshoot an "HTTP 404 - File not found" error message on a server that is running IIS.


when you set project with the domain name and domain name is one of the causes of it.

The solution to it 

1)open cmd on the server. type  "nslookup" and that your domain name.

Problem is resolved.


Thank you,

Hope it helps you in your case.



Regards,
Arjun Walmiki

Wednesday, July 24, 2019

Get the selected value in a dropdown using jQuery.

Dear All,


I am posting this blog because most of the people are stuck in code when we want data from dropdown. So I decided to post this blog.

so this is my dropdown:- 

 <select required="" name="AssignedTo" id="LanguageToInvo" onchange="" class="form-control">
                                            <option id="0" value="">--select---</option>
                                            <option id="1" value="En">English</option>
                                            <option id="2" value="Ar">Arabic</option>
                                            <option id="3" value="EnAr">English and Arabic</option>
                                        </select>


How to get selected value or text from the same. Using Jquery we can get it easily.


If you want value:-


jQuery("#availability option:selected").val();

$("#availability option:selected").val();


If you want to text :-

jQuery("#availability option:selected").text();

$("#availability option:selected").text();


Thank you,

Hope it helps you.

Best regards,
Arjun walmiki





How to call Partial view inside a view in Asp.net Code

Dear All,

This post is useful to the beginner.

Today I will tell you how to call Partial view inside a view. This partial view will be work in MVC or  Asp.net core application.

This is syntax you have to write inside a view:-

@Html.Partial("ParentInvitationArabic.cshtml")



Thank you,
Arjun Walmiki

Monday, June 24, 2019

Web Application Project Option in Visual Studio 2005 Tutorial 1

Hi All ,

Today i will show you how ti create web project in visual studio 2005.

Tutorial 1:

The Visual Studio 2005 Web Application Project Model is a new web project option for Visual Studio 2005 that provides the same conceptual web project approach as VS 2003 (a project file based structure where all code in the project is compiled into a single assembly) but with all the new features of VS 2005 (refactoring, class diagrams, test development, generics, etc) and ASP.NET 2.0 (master pages, data controls, membership/login, role management, Web Parts, personalization, site navigation, themes, etc).

Tutorial 1: Building Your First Web Application Project

The below tutorial walks-through how to create, build and run your first web app using C# and the ASP.NET Web Application Project support in VS 2005.

Creating a New Project

Select File->New Project within the Visual Studio 2005 IDE. This will bring up the New Project dialog. Click on the “Visual C#” node in the tree-view on the left hand side of the dialog box and choose the "ASP.NET Web Application" icon:

Choose where you want the project to be created on disk (note that there is no longer a requirement for web projects to be created underneath the inetpub\wwwroot directory -- so you can store the project anywhere on your filesystem). Then name it and hit ok.

Visual Studio will then create and open a new web project within the solution explorer. By default it will have a single page (Default.aspx), an AssemblyInfo.cs file, as well as a web.config file. All project file-meta-data is stored within a MSBuild based project file.




Opening and Editing the Page


Double click on the Default.aspx page in the solution explorer to open and edit the page. You can do this using either the HTML source editor or the design-view. Add a "Hello world" header to the page, along with a calendar server control and a label control (we'll use these in a later tutorial):

Build and Run the Project

Hit F5 to build and run the project in debug mode. By default, ASP.NET Web Application projects are configured to use the built-in VS web-server (aka Cassini) when run. The default project templates will run on a random port as a root site (for example: http://localhost:12345/):
You can end the debug session by closing the browser window, or by choosing the Debug->Stop Debugging (Shift-F5) menu item.

Looking under the covers

When you compile/build ASP.NET Web Application projects, all code-behind code, embedded resources, and standalone class files are compiled into a single assembly that is built in the \bin sub-directory underneath the project root (note: you can optionally change the location if you want to - for example, to build it into a parent application directory).
If you choose the "Show All Files" button in the solution explorer, you can see what the result of our compilation output looks like:
This works exactly the same as with Visual Studio 2003 ASP.NET Web Application Projects

Customizing Project Properties

ASP.NET Web Application Projects share the same configuration settings and behaviors as standard VS 2005 class library projects. You access these configuration settings by right-clicking on the project node within the Solution Explorer in VS 2005 and selecting the "Properties" context-menu item. This will then bring up the project properties configuration editor. You can use this to change the name of the generated assembly, the build compilation settings of the project, its references, its resource string values, code-signing settings, etc:
ASP.NET Web Application Projects also add a new tab called "Web" to the project properties list. Developers use this tab to configure how a web project is run and debugged. By default, ASP.NET Web Application Projects are configured to launch and run using the built-in VS Web Server (aka Cassini) on a random HTTP port on the machine.
This port number can be changed if this port is already in use, or if you want to specifically test and run using a different number:
Alternatively, Visual Studio can connect and debug IIS when running the web application. To use IIS instead, select the "Use IIS Web Server" option and enter the url of the application to launch, connect-to, and use when F5 or Control-F5 is selected:
Then configure the url to this application in the above property page for the web project. When you hit F5 in the project, Visual Studio will then launch a browser to that web application and automatically attach a debugger to the web-server process to enable you to debug it.
Note that ASP.NET Web Application Projects can also create the IIS vroot and configure the application for you. To do this click the "Create Virtual Directory" button.
Click here to go to the next tutorial.

Friday, June 21, 2019

Yoga Day Some good guideline for working People

Dear All Happy Yoga day

Keep healthy  balance your life style personal as well as  work .

This video from my IT VP (DEI) Mr.Harsh .


Link to See or download




Kindly  do something for yourself.


Thank you,
Arjun Walmiki

Thursday, June 20, 2019

Browser does not refresh after componets.html changed in angular 6

Hi All,

Hope you are all good !!

I face some issue at my work place when i take code from my vendor.

The issue is that when we are doing any changes on components.html it is not reflecting on browser.

this is very difficult to understand why my application reaction just like small baby so i am google it and found it is happen an universally .

For this issue we will found multiple solution it is you luck which one work in your case.

In my case i am used some command and work for me.
The command are as below :

npm i -g angular-cli

when this successfully done next step is create bla.

ng new bla

Hope this will help to some one .



Thank you.




Arjun walmiki






       

Tuesday, April 2, 2019

How to validate mobile number, email in jquery?

Definition :-

This tutorial will show you how to validate an email address and mobile number using jquery. This method has a few advantages over validating an email address using jquery, as the validation process takes place within the browser, meaning no server request or reload is necessary. 

Below is the jquery mobile, Email validation regular expression, mobile validation jquery regular expression which is for checking 10 digit number and first number should not be 0 and email validation jquery regular expressional which for checking global email format.

var mob = /^[1-9]{1}[0-9]{9}$/;
var eml = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;

if (eml.test($.trim($("#<%=txtEmail.ClientID %>").val())) == false) {
    alert("Please enter valid email address.");
    $("#<%=txtEmail.ClientID %>").focus();
    return false;
 }


if (mob.test($.trim($("#<%=txtMob.ClientID %>").val())) == false) {
    alert("Please enter valid mobile number.");
    $("#<%=txtMob.ClientID %>").focus();
    return false;
}

Note that this is merely a simple email validation function.


Thank You,Arjun Walmiki