Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   tabs galore (http://www.velocityreviews.com/forums/t386236-tabs-galore.html)

=?Utf-8?B?cm9kY2hhcg==?= 02-05-2007 04:10 PM

tabs galore
 
Hey all,
I'm currently working on an asp.net 2.0 project that has many tabs on the
home page. Behind the scenes seems like a nightmare to manage because all the
tabs represented on the home page is a View control inside a MultiView
control (wow, i know). Well I need to add an extra tab to this and i'm afraid
to touch this thing.

does anyone know a good a way to abstract this new tab away from the
confusion cloud?

thanks,
rodchar

Mark Rae 02-05-2007 04:56 PM

Re: tabs galore
 
"rodchar" <rodchar@discussions.microsoft.com> wrote in message
news:C34A1FC3-BECD-4613-B4EF-4E8468E89FC1@microsoft.com...

> does anyone know a good a way to abstract this new tab away from the
> confusion cloud?


Is this not all set up in the markup, then...?



=?Utf-8?B?cm9kY2hhcg==?= 02-05-2007 05:47 PM

Re: tabs galore
 
Hi Mark,
I'm not sure I understand your reply, please forgive me. Could you please
elaborate a little.
Rodchar

"Mark Rae" wrote:

> "rodchar" <rodchar@discussions.microsoft.com> wrote in message
> news:C34A1FC3-BECD-4613-B4EF-4E8468E89FC1@microsoft.com...
>
> > does anyone know a good a way to abstract this new tab away from the
> > confusion cloud?

>
> Is this not all set up in the markup, then...?
>
>
>


Mark Rae 02-05-2007 06:24 PM

Re: tabs galore
 
"rodchar" <rodchar@discussions.microsoft.com> wrote in message
news:22125D9D-EE5A-4B36-A76A-DFEE1C5626F1@microsoft.com...

> I'm not sure I understand your reply, please forgive me. Could you please
> elaborate a little.


You mentioned that the tabs were set up using a MultiView control and a lot
of View controls - I was asking if this was done in the markup as opposed to
being dynamically created in code-behind...

Does it not resemble something like this:?
http://www.codeproject.com/aspnet/TabControl.asp

If so, is it not simply a question of adding another <asp:View> control
wherever you need the new tab to appear...?



=?Utf-8?B?cm9kY2hhcg==?= 02-05-2007 08:32 PM

Re: tabs galore
 
yeah that's very true however, what i was wondering is with the basic View
control in place for the new tab could i take the guts of the new tab and
somehow extract it out into another page or user control, or better
suggestions?

"Mark Rae" wrote:

> "rodchar" <rodchar@discussions.microsoft.com> wrote in message
> news:22125D9D-EE5A-4B36-A76A-DFEE1C5626F1@microsoft.com...
>
> > I'm not sure I understand your reply, please forgive me. Could you please
> > elaborate a little.

>
> You mentioned that the tabs were set up using a MultiView control and a lot
> of View controls - I was asking if this was done in the markup as opposed to
> being dynamically created in code-behind...
>
> Does it not resemble something like this:?
> http://www.codeproject.com/aspnet/TabControl.asp
>
> If so, is it not simply a question of adding another <asp:View> control
> wherever you need the new tab to appear...?
>
>
>


Mark Rae 02-05-2007 09:41 PM

Re: tabs galore
 
"rodchar" <rodchar@discussions.microsoft.com> wrote in message
news:1F19E9BB-F448-42CE-90CD-695E33A589C6@microsoft.com...

> yeah that's very true however, what i was wondering is with the basic View
> control in place for the new tab could i take the guts of the new tab and
> somehow extract it out into another page or user control, or better
> suggestions?


Er, well an <asp:View> is just a container for other controls, so there's
really nothing to stop you doing anything you want with them...

I'm really not seeing what the problem is here...



=?Utf-8?B?cm9kY2hhcg==?= 02-06-2007 01:42 PM

Re: tabs galore
 
i guess i just didn't want to have to go and add new code to the existing
code behind page because it is a huge code behind.

"Mark Rae" wrote:

> "rodchar" <rodchar@discussions.microsoft.com> wrote in message
> news:1F19E9BB-F448-42CE-90CD-695E33A589C6@microsoft.com...
>
> > yeah that's very true however, what i was wondering is with the basic View
> > control in place for the new tab could i take the guts of the new tab and
> > somehow extract it out into another page or user control, or better
> > suggestions?

>
> Er, well an <asp:View> is just a container for other controls, so there's
> really nothing to stop you doing anything you want with them...
>
> I'm really not seeing what the problem is here...
>
>
>


Mark Rae 02-06-2007 01:56 PM

Re: tabs galore
 
"rodchar" <rodchar@discussions.microsoft.com> wrote in message
news:D3C0B6A4-CAA7-429E-98CC-0AE762D71435@microsoft.com...

>i guess i just didn't want to have to go and add new code to the existing
> code behind page because it is a huge code behind.


OK - here's what to do...

1) In Project Explorer, highlight the file in question.

2) Type Ctrl-C

3) Type Ctrl-V

You really will be OK... :-)




All times are GMT. The time now is 08:09 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57