Jump to content
Xtreme .Net Talk

sbauer

Members
  • Posts

    4
  • Joined

  • Last visited

sbauer's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. If you're using standard non server-side html elements, they will function exactly the same way HTML functions. It doesn't matter where the master page is. You're not calling the master page directly; you're calling the page directly. Therefore, you link to resources in regard to where your page (.aspx) is located, not where the master page, or even user control is located.
  2. if (!Page.IsPostBack) { objCharacter = new ROCharacter(); objCharacter.ConnString = strConnString; LoadJobList(); LoadWeaponList(Convert.ToInt32(lstJobs.SelectedValue)); } If it hasn't been posted back, the list will never have a selected value as it doesn't make sense. I'm not too sure why you're trying to force it anyway. What are you trying to do? Why are you passing the selected value to that function? ASP.NET automatically handles which entry has been selected on postback.
  3. In order to reference a control, the code-behind must know about the control. In your case, the code-behind has no idea the control exists, probably because the control is not declared in your code-behind file. If you're using VS 2003, you can switch to design view, and then switch back to HTML view. That should add the control. Or, you could declare the control yourself. Protected WithEvents name as HtmlInputText
×
×
  • Create New...