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

  • SEARCH
  • Home
  • 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 3330676
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T23:30:49+00:00 2026-05-17T23:30:49+00:00

In my forum project I have a partial view (.ascx) that is used for

  • 0

In my forum project I have a partial view (.ascx) that is used for adding a new forum post. Forum posts live inside Topics (Categories) and both these tables have a column named Title.

Now the problem is that when I place the partial view on a Topic page, it automatically grabs the Title value from the Topic, thus populating my Title Textbox with the Topic Title. Not ideal!

The code inside the CreatePost.ascx is simply

<label for="Title">Title</label>
<%= Html.TextBox("Title") %>

I’ve tried changing that to <%= Html.TextBox("Post.Title") %> but then the Textbox value doesn’t get posted.

Is this normal behaviour, and is there a way I can get rid of it without clearing it with Javascript?

I’ve even tried setting a value using the 2nd overload Html.TextBox("Title", "some value") but that just gets overridden.

Please help!

  • 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-17T23:30:50+00:00Added an answer on May 17, 2026 at 11:30 pm

    If you are using ASP.NET MVC 2 you should always use strongly typed helpers which will correctly handle binding:

    <%= Html.TextBoxFor(x => x.Category.Title) %>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WinForm project that contains a form called MainUI. You can see
I have an aspx web form in a WCF service project that gives a
I have this problem that is driving me insane. I have a project to
So, I'm working on a new project using ASP.NET MVC. Honestly I don't have
In my VS 2008, for main project have this error for control/ form that
Firstly, I have a project with a Windows Form that references another project with
I have a rails 3 project where boards has_many topics. I'm trying to add
I have a Visual C# project using windowsforms that does not exit when the
i have a winforms project, and i created a class on assembly A that
I have inherited a project that uses the following pattern for passing parameters from

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.