4 Replies - 1275 Views - Last Post: 20 November 2007 - 12:37 AM

#1 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1658
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Setting properties on seperate web form {Resolved}

Posted 19 November 2007 - 09:19 PM

Ok I have driven myself crazy here (havnet done a lot of ASP.Net lately, mostly software development) but heres the deal:

I have a page (addressimporter.aspx), in said page is an Inline Frame, which displays InlineList.aspx. On InlineList.aspx I have created a public property RepeaterData (which is of the DataSet data type) so I can create and populate the dataset, then send said dataset to InlineList.asp so I can set the RepeaterData.

Can this be done, am I over complicating this?

Is This A Good Question/Topic? 0
  • +

Replies To: Setting properties on seperate web form {Resolved}

#2 Jayman  Icon User is offline

  • Student of Life
  • member icon

Reputation: 421
  • View blog
  • Posts: 9,532
  • Joined: 26-December 05

Re: Setting properties on seperate web form {Resolved}

Posted 19 November 2007 - 09:48 PM

Sounds like it should work just fine. Although if I was going to do it, I would abstract the property into its own class rather than making it a property of a web form. Then I would just instantiate an object of that class on the InlineList.aspx page and retrieve the data using the property in that manner.

Are you having problems implementing it?

Are you simply displaying data directly from the database in the InlineList.aspx page? Would a Repeater Control work for this situation?

MSDN Repeater Class.
Was This Post Helpful? 0
  • +
  • -

#3 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1658
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: Setting properties on seperate web form {Resolved}

Posted 19 November 2007 - 10:03 PM

I am sing a repeater, and it worked beautifully when I had it all on a single page, but decided to have the name/email addresses in an iframe so as not to have to refresh the entire page each time they select a user to add to to the list.

I have tried it the way we do it in WinForms

addressImporter import = new addressImporter();



That does seem to work for web forms, I tried abstracting it and making it a property in my importer class, then when they slick the submit button it populates the dataset with all the information, then setting the property (DataSet type) in the importer class but the InlineList,aspc still doesn't recognize it

Thats why I was trying to set a property of a separate web form and cant see to make it work.
Was This Post Helpful? 0
  • +
  • -

#4 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1658
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: Setting properties on seperate web form {Resolved}

Posted 19 November 2007 - 11:50 PM

Well this has been resolved, I made a couple static variables so they can be accessed without having to instantiate the class, thus wiping out anything currently stored in the class,.
Was This Post Helpful? 0
  • +
  • -

#5 Jayman  Icon User is offline

  • Student of Life
  • member icon

Reputation: 421
  • View blog
  • Posts: 9,532
  • Joined: 26-December 05

Re: Setting properties on seperate web form {Resolved}

Posted 20 November 2007 - 12:37 AM

Good solution. I am glad you were able to find it so quickly.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1