Posts

Showing posts from January, 2016

HOW TO CREATE AN HTML BUTTON ON RUNTIME IN ASP.NET USING C#

Image
Today in Engineer's World, we are discussing ASP.NET & C# query faced by a developer in very easy way. Posted By- +Manish Kumar Gautam+LIVE VIAR+ASP.NET SOLUTIONS
Click imagination hunt to see latest Blogs
Previous - How to find client IP Address of user in Asp.net C#? Part-2
How to create an HTML button on runtime in Asp.net using C#
Creating a button control by using the drop down functionality is very easy and simple. Also, adding its various properties include – text, style, width, height, weight, events are too simple. But, when the thing is about creating it dynamically. Most developers get nervous and confused. So, here we tried something that may help you out with this query.
In this, Blog we would learn to design an Html Button control dynamically steps by step.
NOTE: See the code understand every step more clearly.
Step-1: Create a New Empty Asp.net Web site. Add a Web Form (Html_Button_Display_Runtime.aspx). Step-2: Press F7 on the web form. To write server side coding. Ste…

HOW TO FIND CLIENT IP ADDRESS OF USER IN ASP.NET C#

Image
Today in Engineer's World, we are discussing ASP.NET & C# query faced by a developer in very easy way. Posted By- +Manish Kumar Gautam+LIVE VIAR+ASP.NET SOLUTIONS
Click imaginationhunt.blogspot to see latest Blogs
Previous Post - HOW TO FIND CLIENT IP ADDRESS OF USER IN ASP.NET C# Part-I
HOW TO FIND CLIENT IP ADDRESS OF USER IN ASP.NET C#
In our previous blog, we have prepared the design. Now, it’s time to create the logic to fetch the IP Address and bind them with label controls. Now, you are thinking why we have taken four labels? Actually, we have 2 different ways to get the IP Address, that’s why we have taken 2 labels.
Things to Remember: (Before start writing code)
1. “System.Net” Namespace – This namespace provides a simple programming interface for various protocols that used on the network. Read more about namespaces 2. “System.Web” Namespace – This namespace contains types that enable browser/server communication. Read more about namespaces For e.g. - “HttpContext” is a type…

HOW TO FIND CLIENT IP ADDRESS OF USER IN ASP.NET C#

Image
Today in Engineer's World, we are discussing ASP.NET & C# query faced by a developer in very easy way. Posted By- +Manish Kumar Gautam+LIVE VIAR+ASP.NET SOLUTIONS
Click imaginationhunt.blogspot to see latest Blogs
Previous Post - Finding PC IP Address using CMD (Command Prompt) with two most simplest methods How to find client IP Address of user in Asp.net C#
Finding the User Machine IP is a very basic thing. Why would it become a necessity? It starts when a developer builds an application where they need to track the status of visitor that is viewing its application. At that, time knowing the user Machine IP becomes a matter of security and identifying the user location.
Let’s see some direct way in which we can find the IP Address.
Step-1: Create a New Website. Add a Web Form (GetIPAddress.aspx). Step-2: Add a new Web Form. Prepare a layout design with 2 Label controls.
Click imaginationhunt.blogspot to see latest blogs
Practical Implementation:
Web Form (Source Code)
<%@PageLangu…