Home All Groups Group Topic Archive Search About

Visual Studio 2005 -- Multi-Tabbed Control

Author
7 Sep 2007 2:46 PM
Shane Jones
I began my .Net training with VS .Net 2000 (version 1.0) -- on the toolbar
there is a multi-tabbed control (which allows you to place differing content
on each tab, and display content associated with each seperate tab) -- I'm
NEW to Visual Studio .Net 2005, and I can't seem to locate this multi-tabbed
control on the toolbar.  Does anyone know if this is a standard control for
2005, and will the Multi-View control offer the same functionality?

On an different note -- I'm creating a project which displays SQL Server
2005 data -- I need to place a SEARCH field on my default.aspx page to query
a unique db recordset -- what is the best approach in doing this?

Thanks in advance for any assistance offered.

Author
10 Sep 2007 11:49 AM
Bill Nicholson
To answer your second question:

When I do search logic on web pages and also desktop apps, I usually
end up building SQL pro grammatically after the user clicks the Submit
button. For example:

Dim mySQL as string
mySQL = "SELECT UserName, Password, PermissionLevel FROM tUser WHERE
tUser.UserID = " & me.ddlUserID.SelectedValue.

You can continue to build on this by adding more criteria to the WHERE
clause:

if me.txtMinSalary.text.trim.length > 0 then
  mySQL &= " AND Salary >= " & me.txtMinSalary.text.trim
Endif

Then you submit the criteria to your db engine or use it as a property
in your Data Source Object.

Does that help?


Show quote
On Sep 7, 10:46 am, "Shane Jones" <doctorjones***@yahoo.com> wrote:
> I began my .Net training with VS .Net 2000 (version 1.0) -- on the toolbar
> there is a multi-tabbed control (which allows you to place differing content
> on each tab, and display content associated with each seperate tab) -- I'm
> NEW to Visual Studio .Net 2005, and I can't seem to locate this multi-tabbed
> control on the toolbar.  Does anyone know if this is a standard control for
> 2005, and will the Multi-View control offer the same functionality?
>
> On an different note -- I'm creating a project which displays SQL Server
> 2005 data -- I need to place a SEARCH field on my default.aspx page to query
> a unique db recordset -- what is the best approach in doing this?
>
> Thanks in advance for any assistance offered.
Author
11 Sep 2007 11:00 AM
Rajneesh Narain
Hi Shane,

Look under "All Windows Forms" Tab in the Toolbox, you should see a control
named - "Tab Control".

Regarding the Search thing, you can send a custom select command with
appropriate parameters. That should be the way to go...

HTH.
-Rajneesh
Author
11 Sep 2007 1:42 PM
Shane Jones
Rajneesh,

I see the Tabbed Contral, but it's Grayed-Out -- how can I activate the
control so that I can place it in a New aspx Web Form?

Shane
===================
Show quote
"Rajneesh Narain" <RajneeshNar***@discussions.microsoft.com> wrote in
message news:2CFAAF96-8E9E-4446-AA41-C9EAC89FB4E1@microsoft.com...
> Hi Shane,
>
> Look under "All Windows Forms" Tab in the Toolbox, you should see a
> control
> named - "Tab Control".
>
> Regarding the Search thing, you can send a custom select command with
> appropriate parameters. That should be the way to go...
>
> HTH.
> -Rajneesh
Author
12 Sep 2007 3:42 AM
Rajneesh Narain
Hi Shane,

This is a Windows control and is not available in Web Projects. This is the
reason, why it is grayed out!

There is no "Tab Control" for ASP.NET 2.0; however you can make one yourself
by using Multiview. This control can be set to show one view at a time,
giving a tab control like of UI.

The process has been defined and implemented here:
http://www.codeproject.com/aspnet/TabControl.asp

I hope this helps!
-Rajneesh
Author
12 Sep 2007 3:37 PM
Joe Stateson
Show quote
"Rajneesh Narain" <RajneeshNar***@discussions.microsoft.com> wrote in
message news:43ACBB23-DFA8-41B9-A76F-34BE26229E82@microsoft.com...
> Hi Shane,
>
> This is a Windows control and is not available in Web Projects. This is
> the
> reason, why it is grayed out!
>
> There is no "Tab Control" for ASP.NET 2.0; however you can make one
> yourself
> by using Multiview. This control can be set to show one view at a time,
> giving a tab control like of UI.
>
> The process has been defined and implemented here:
> http://www.codeproject.com/aspnet/TabControl.asp
>
> I hope this helps!
> -Rajneesh

I started to use menu items and multiview but ended up buying 3rd party
"pintab" as it had a nice selection of tabs.
http://www.pintexx.com/
I had not seen that codeproject link before.  Thanks for posting it.


--
======================================================================
Joseph "Beemer  Biker" Stateson
http://ResearchRiders.org     Ask about my 99'R1100RT
======================================================================

AddThis Social Bookmark Button