Hi Bhavesh23,
Refer below code.
HTML
<asp:Image ID="vImage" runat="server" CssClass="border" Width="120px" />
<asp:Button Text="Save" runat="server" OnClick="OnSave" />
Code
C#
protected void OnSave(object sender, EventArgs e)
{
if (!string.IsNullOrEmpty(vImage.ImageUrl))
{
// Code to save.
}
}
VB.Net
Protected Sub OnSave(sender As Object, e As EventArgs)
If Not String.IsNullOrEmpty(vImage.ImageUrl) Then
' Code to save.
End If
End Sub