this is my Income.aspx

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Income.aspx.vb" Inherits="iplapp.Income" %>
<!DOCTYPE html>

and here my Income.aspx.vb

Namespace iplapp
    Public Class Income
        Inherits System.Web.UI.Page
        Private strCon As String = "Data Source=alopex;Integrated Security=true;Initial Catalog=iplmaster;Persist Security Info=True;User ID=nizar;Password=password"
        Dim sql_statement As Object
        Dim ViewBag As Object
        'Private Property db As Object
End Namespace

then here the result

Object variable or With block variable not set ~> ViewBag.uploader = System.Web.HttpContext.Current.User.Identity.Name.ToString()

big thanks for answer

Firstly there's no question in your post. Merely a bunch of info.

Secondly you quote an error but it appears to bear no relation to the code you've shown.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.