PDA

Click to See Complete Forum and Search --> : Form Properties for Web Form in VB.NET


csjew
Nov 12th, 2001, 03:04 PM
I have a general question to accomplish a specific task.
The general question is...How do you refer to the webform object of a web application project in order to access the properties of the form itself? I am trying to have a button on a web form that, when clicked, changes the background color of the form.

Cander
Nov 13th, 2001, 08:50 AM
Maybe the Page Object?

Page.BackColor


or something like that..


Just a guess

csjew
Nov 13th, 2001, 09:00 AM
I have tried page.backcolor (nope), document.backcolor(nope), webForm1.backcolor(nope), me.backcolor(nope)

In a Windows application, I just use <i>formname</i>.backcolor and it works fine. I just wonder if there is some reason why this task can't be accomplished in a web form?[I]