Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6977659
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:39:15+00:00 2026-05-27T17:39:15+00:00

I have following abc.aspx file: <%@ Page Language=vb AutoEventWireup=false Codefile=abc.aspx.vb Inherits=abc %> <html xmlns=http://www.w3.org/1999/xhtml>

  • 0

I have following abc.aspx file:

<%@ Page Language="vb" AutoEventWireup="false" Codefile="abc.aspx.vb" Inherits="abc" %>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
         </head>
         <body>
             <asp:textbox id="txtSearch" runat="server"></asp:textbox>
         </body>
</html>

here is abc.aspx.vb file:

Partial Class abc
    txtSearch.Text = "HELLO"

When i try to use this it gives error: txtSearch is not accesible?
Can anyone please tell me what am i doing wrong here?
This is not complete code just a snippet. But i think it gives an idea what am i trying to do.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T17:39:15+00:00Added an answer on May 27, 2026 at 5:39 pm
    Partial Class abc
        txtSearch.Text = "HELLO"
    

    If you’re trying to set that value at the class level, that’s not allowed. The functionality you’d be trying to achieve with that can be accomplished by setting it in the constructor:

    Partial Class abc
    
        Shared Sub New()
            txtSearch.Text = "HELLO"
        End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My goal is to have the url routing as following: http://www.abc.com/this-is-peter-page http://www.abc.com/this-is-john-page What is
I have following html: <table width=100%;> <tr><hr style=width:100%;></hr></tr> <tr> <span style=float:left>abc</span> <span class=noindex style=float:right>PageID</span>
I have following in conf1.py file server = { '1':'ABC' '2':'CD' } client =
I have following file: <rules> <q>abc</q> <a>1</a> <q>bcd</q> <a>2</a> <q>abc</q> <a>3</a> </rules> <rules> <q>bcd</q>
I have following xml file: <os:tax> <os:cat name=abc id=1> <os:subcat name=bcd id=11> <os:t name=def
I have the following data: abc def; ghi. This regex will match: ([a-z0-9A-ZÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÒÓÔÕÖÙÚÛÜÝàáâãäåçèéêëìíîïðòóôõöùúûüýÿ ]*)\W
I have following code snippet: class ABC{ public: int a; void print(){cout<<hello<<endl;} }; int
I have following: temp = aaaab123xyz@+ lists = [abc, 123.35, xyz, AND+] for list
I have the following table (points): recno uid uname points ============================ 1 a abc
I have the following string (the double quotes are part of the string): abc

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.