---
title: "how to integrate Webcam in asp.net web page using vb.net"  
description: "how to integrate Webcam in asp.net web page using vb.net"  
author: "Vrahmdev Tiwari"  
published: 2018-07-09  
updated: 2023-07-06  
canonical: https://www.mindstick.com/forum/34593/how-to-integrate-webcam-in-asp-dot-net-web-page-using-vb-dot-net  
category: "vb.net"  
tags: [".net", "asp.net", "ajax", "vb.net", "sql server", "sql", "sql server 2008", "sql server 2012"]  
reading_time: 2 minutes  

---

# how to integrate Webcam in asp.net web page using vb.net

I make admission [page](https://www.mindstick.com/articles/13031/why-to-make-a-wikipedia-page) and I want to integrate [web](https://www.mindstick.com/articles/12783/the-ultimate-bunch-of-free-web-design-resources) cam in that page for admission time [student](https://www.mindstick.com/articles/157138/student-loan-default-wage-garnishment-and-student-loan) [image](https://www.mindstick.com/articles/23551/an-investigate-distinctive-seafood-restaurant-for-your-image-stamp-character) [capture](https://answers.mindstick.com/qa/30907/which-phone-is-better-between-billion-capture-plus-and-xiaomi-mi-a1-and-moto-g5s-plus). and save it in a folder. My page is using **[SSL](https://www.mindstick.com/forum/743/ssl-or-tls) [connection](https://www.mindstick.com/articles/13012/what-makes-ethernet-connection-better-than-wifi)**.\

How to do it ?

Please Help me.\

## Replies

### Reply by Aryan Kumar

Sure, I can help you with that. Here are the steps on how to integrate webcam in ASP.NET webpage using VB.NET:

1. Create a new ASP.NET webpage using VB.NET.
2. Add a WebCam control to the page.
3. Set the WebCam control's AutoStart property to True.
4. Add an event handler for the WebCam control's ImageCaptured event.
5. In the event handler, get the image from the WebCam control and display it on the page.

Here is an example of the code you would need to integrate webcam in ASP.NET webpage using VB.NET:

VB.Net

```plaintext
<%@ Page Language="VB" AutoEventWireup="true" CodeBehind="WebCam.aspx.vb" Inherits="WebCam.WebCam" %>

<html>
<head>
    <title>WebCam</title>
</head>
<body>
    <form id="form1" runat="server">
        <WebCam ID="WebCam1" AutoStart="True" />
        <img id="imgWebCam" />
    </form>
</body>
</html>

Public Class WebCam

    Protected Overrides Sub OnImageCaptured(ByVal sender As Object, ByVal e As ImageCapturedEventArgs)
        ' Get the image from the WebCam control.
        Dim img As Image = WebCam1.Image

        ' Display the image on the page.
        imgWebCam.ImageUrl = img.Url
    End Sub

End Class
```

This code will create a WebCam control and bind it to the page. The WebCam control will automatically start capturing images and the ImageCaptured event will be raised when a new image is captured. The ImageCaptured event handler will get the image from the WebCam control and display it on the page.

### Reply by adams jr

Post is removed by the Admin.


---

Original Source: https://www.mindstick.com/forum/34593/how-to-integrate-webcam-in-asp-dot-net-web-page-using-vb-dot-net

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
