Showing posts with label controls. Show all posts
Showing posts with label controls. Show all posts

Saturday, March 31, 2012

Table Schema Editor

Friends are there any tools/controls in asp.net which can help design create
a table in a database.
thanks!!!There are many databases out there, and many tools for creating database
objects in them. There are some tools as well in VS.Net.

HTH,

Kevin Spencer
Microsoft FrontPage MVP
Internet Developer
http://www.takempis.com
Big things are made up of
lots of Little things.

"sunil" <sunil_godiyal@.yahoo.com> wrote in message
news:eVgxxNAPDHA.3016@.TK2MSFTNGP10.phx.gbl...
> Friends are there any tools/controls in asp.net which can help design
create
> a table in a database.
> thanks!!!
Ah, thanks for the clarification. Hopefully someone here knows of such
third-party apps.

HTH,

Kevin Spencer
Microsoft FrontPage MVP
Internet Developer
http://www.takempis.com
Big things are made up of
lots of Little things.

"sunil" <sunil_godiyal@.yahoo.com> wrote in message
news:u1QzTxAPDHA.1216@.TK2MSFTNGP11.phx.gbl...
> Kevin, Thanks for your reply. Here is my problem. I want the user using
my
> web application to be able to create table using the web interface
provided
> with in the web app. Iam looking for any activex controls or asp.net
> components which can do this.
> Appreciate your help.
> Thanks
>
> "Kevin Spencer" <kevin@.SPAMMERSSUCKtakempis.com> wrote in message
> news:%23S9lmhAPDHA.4024@.tk2msftngp13.phx.gbl...
> > There are many databases out there, and many tools for creating database
> > objects in them. There are some tools as well in VS.Net.
> > HTH,
> > Kevin Spencer
> > Microsoft FrontPage MVP
> > Internet Developer
> > http://www.takempis.com
> > Big things are made up of
> > lots of Little things.
> > "sunil" <sunil_godiyal@.yahoo.com> wrote in message
> > news:eVgxxNAPDHA.3016@.TK2MSFTNGP10.phx.gbl...
> > > Friends are there any tools/controls in asp.net which can help design
> > create
> > > a table in a database.
> > > thanks!!!
> >

Wednesday, March 28, 2012

Tables and Design

I am using a table in grid layout and position my controls where I want them. Does anyone know why when I view it in a browser my controls are not positioned like the way I have them in design view. Some images are overlapping other images.

post your html table code here.

Saturday, March 24, 2012

TabStrip controls

Hello,

Could anyone recommend a good ASP.NET TabStrip
server control? The IE webcontrol requires IE 5.5 and
higher but I have to support as many browsers as possible
on multiple platforms. I looked at the VisualASP one but
it seems they lack a lot of basic .NET stuff like
templates. Any suggestions? Thanks!have a look at what infragistics has to offer, you may find one there
"Mark Fox" <info@.solelsoftware.com> wrote in message
news:0d9d01c35cca$93bf68d0$a101280a@.phx.gbl...
> Hello,
> Could anyone recommend a good ASP.NET TabStrip
> server control? The IE webcontrol requires IE 5.5 and
> higher but I have to support as many browsers as possible
> on multiple platforms. I looked at the VisualASP one but
> it seems they lack a lot of basic .NET stuff like
> templates. Any suggestions? Thanks!
Thanks for the lead. Their's looks great.

>--Original Message--
>have a look at what infragistics has to offer, you may
find one there
>"Mark Fox" <info@.solelsoftware.com> wrote in message
>news:0d9d01c35cca$93bf68d0$a101280a@.phx.gbl...
>> Hello,
>>
>> Could anyone recommend a good ASP.NET TabStrip
>> server control? The IE webcontrol requires IE 5.5 and
>> higher but I have to support as many browsers as
possible
>> on multiple platforms. I looked at the VisualASP one
but
>> it seems they lack a lot of basic .NET stuff like
>> templates. Any suggestions? Thanks!
>
>.

TabStrip or Tab Controls

I would like to place a tab control on an ASP Web Page. I
don't see a control that I can drag from the toolbox for
either "web forms" or "html" that I can use. Does anyone
know how to do this?There isn't one out of the box. You have to a) download the IE Web Controls
from http://www.asp.net/IEWebControls/Do...index=0&tabid=1, b)
add an association to the ie web controls dll to your project, then c)
manually add the tabstrip capability to the toolbox by customizing the
toolbar to display the items from the ie web controls dll.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage

"Natasha" <ndicocco@.nauticom.net> wrote in message
news:0b6101c36822$81e3e9c0$a001280a@.phx.gbl...
> I would like to place a tab control on an ASP Web Page. I
> don't see a control that I can drag from the toolbox for
> either "web forms" or "html" that I can use. Does anyone
> know how to do this?

Tabstrip shows only text

I've downloaded IE Web Controls for ASP.NET
I'm using Visual Studio.NET and I included the tabstrip
inside a custom user control.
In the visual studio editor the tab strip appears correctly
but when running on IE it shows only the text labels.!!!!!!!!
I've placed the dll in the bin directory and the webctrl_client
in the same path with the custom control.Well I must add that it works correctly in Mozilla Firefox!!!!
In IE nothing!
I just thought the control was developed from Microsoft OR NOT ? :)
"Stelios Skiathitis" <sski@.keta-notioaigaio.gr> wrote in message
news:d4l852$s47$1@.usenet.otenet.gr...
> I've downloaded IE Web Controls for ASP.NET
> I'm using Visual Studio.NET and I included the tabstrip
> inside a custom user control.
> In the visual studio editor the tab strip appears correctly
> but when running on IE it shows only the text labels.!!!!!!!!
> I've placed the dll in the bin directory and the webctrl_client
> in the same path with the custom control.
>
>
Stelios:
Any chance you have javascript disabled in IE? Perhaps you are using
IE on server 2003 in a hardened security configuration?
Scott
http://www.OdeToCode.com/blogs/scott/
On Tue, 26 Apr 2005 14:22:44 +0300, "Stelios Skiathitis"
<sski@.keta-notioaigaio.gr> wrote:

>I've downloaded IE Web Controls for ASP.NET
>I'm using Visual Studio.NET and I included the tabstrip
>inside a custom user control.
>In the visual studio editor the tab strip appears correctly
>but when running on IE it shows only the text labels.!!!!!!!!
>I've placed the dll in the bin directory and the webctrl_client
>in the same path with the custom control.
>

Tabstrip shows only text

I've downloaded IE Web Controls for ASP.NET

I'm using Visual Studio.NET and I included the tabstrip
inside a custom user control.
In the visual studio editor the tab strip appears correctly
but when running on IE it shows only the text labels.!!!!!!!!

I've placed the dll in the bin directory and the webctrl_client
in the same path with the custom control.Well I must add that it works correctly in Mozilla Firefox!!!!
In IE nothing!
I just thought the control was developed from Microsoft OR NOT ? :)

"Stelios Skiathitis" <sski@.keta-notioaigaio.gr> wrote in message
news:d4l852$s47$1@.usenet.otenet.gr...
> I've downloaded IE Web Controls for ASP.NET
> I'm using Visual Studio.NET and I included the tabstrip
> inside a custom user control.
> In the visual studio editor the tab strip appears correctly
> but when running on IE it shows only the text labels.!!!!!!!!
> I've placed the dll in the bin directory and the webctrl_client
> in the same path with the custom control.
Stelios:

Any chance you have javascript disabled in IE? Perhaps you are using
IE on server 2003 in a hardened security configuration?

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Tue, 26 Apr 2005 14:22:44 +0300, "Stelios Skiathitis"
<sski@.keta-notioaigaio.gr> wrote:

>I've downloaded IE Web Controls for ASP.NET
>I'm using Visual Studio.NET and I included the tabstrip
>inside a custom user control.
>In the visual studio editor the tab strip appears correctly
>but when running on IE it shows only the text labels.!!!!!!!!
>I've placed the dll in the bin directory and the webctrl_client
>in the same path with the custom control.

tabstrip/multipage

Hello
I've been using the tabstrip and multipage controls and really like the way
this combination allows users to switch between tabs without a postback.
I'd like to get more detailed information about these controls but can only
find basic information on the internet. In particular, I'd like to hide or
disable tabs dynamically and I'm not sure how to do this. I'd appreciate any
examples or insight.
Thanks
Mardyhave you tried using the selectedindexchanged .
But you have to set Autopostback ="true" and remember the tabstrip index
starts from "0"
Hope that helps
Patrick
"Mardy" <Mardy@.discussions.microsoft.com> wrote in message
news:1DABCC32-74F8-49A9-B8DA-B8DFA4CC9539@.microsoft.com...
> Hello
> I've been using the tabstrip and multipage controls and really like the
way
> this combination allows users to switch between tabs without a postback.
> I'd like to get more detailed information about these controls but can
only
> find basic information on the internet. In particular, I'd like to hide or
> disable tabs dynamically and I'm not sure how to do this. I'd appreciate
any
> examples or insight.
> Thanks
> Mardy
For example
If YourTab.SelectedIndex = 0 Then
tsHoriz.Items(0).Enabled = True
tsHoriz.Items(1).Enabled = False
End If
Hope this helps
Patrick
"Mardy" <Mardy@.discussions.microsoft.com> wrote in message
news:1DABCC32-74F8-49A9-B8DA-B8DFA4CC9539@.microsoft.com...
> Hello
> I've been using the tabstrip and multipage controls and really like the
way
> this combination allows users to switch between tabs without a postback.
> I'd like to get more detailed information about these controls but can
only
> find basic information on the internet. In particular, I'd like to hide or
> disable tabs dynamically and I'm not sure how to do this. I'd appreciate
any
> examples or insight.
> Thanks
> Mardy
Patrick Thanks
I'm using the tabstip as a series of input screens to capture information,
Once the process is complete, I need to hide one of the tabs. So I'd like to
hide an entire tab dynamically from the code behind if the status of the
record is "approved".
I tried using the example you gave but had no success.
"Patrick.O.Ige" wrote:

> For example
> If YourTab.SelectedIndex = 0 Then
> tsHoriz.Items(0).Enabled = True
> tsHoriz.Items(1).Enabled = False
> End If
> Hope this helps
> Patrick
> "Mardy" <Mardy@.discussions.microsoft.com> wrote in message
> news:1DABCC32-74F8-49A9-B8DA-B8DFA4CC9539@.microsoft.com...
> way
> only
> any
>
>
I think I got it
Aspx page:
<iewc:tabstrip id="tsHoriz" runat="server" >
<iewc:Tab Text="Assessment Details" id="tab0"></iewc:Tab>
<iewc:TabSeparator id="ts0"></iewc:TabSeparator>
<iewc:Tab Text="Allocate Requirements" id="tab1"></iewc:Tab>
<iewc:TabSeparator id="ts1"></iewc:TabSeparator>
<iewc:Tab Text="Results" id="tab2"></iewc:Tab>
<iewc:TabSeparator id="ts2"></iewc:TabSeparator>
<iewc:Tab Text=" Design Comments" id="tab3"></iewc:Tab>
<iewc:TabSeparator id="ts3"></iewc:TabSeparator>
<iewc:Tab Text="Attachments" id="tab4"></iewc:Tab>
<iewc:TabSeparator DefaultStyle="width:100%;"></iewc:TabSeparator>
<iewc:multipage id="mpHoriz" ...>
<iewc:PageView id="p0">...
</iewc:PageView>
<iewc:PageView id="p1">...
</iewc:PageView>
...
</iewc:multipage>
code behind:
Protected tab0 As Microsoft.Web.UI.WebControls.Tab
Protected ts0 As Microsoft.Web.UI.WebControls.TabSeparator
Protected tab1 As Microsoft.Web.UI.WebControls.Tab
Protected ts1 As Microsoft.Web.UI.WebControls.TabSeparator
Protected tab2 As Microsoft.Web.UI.WebControls.Tab
Protected ts2 As Microsoft.Web.UI.WebControls.TabSeparator
Protected tab3 As Microsoft.Web.UI.WebControls.Tab
Protected ts3 As Microsoft.Web.UI.WebControls.TabSeparator
Protected tab4 As Microsoft.Web.UI.WebControls.Tab
Protected p0 As Microsoft.Web.UI.WebControls.PageView
Protected p1 As Microsoft.Web.UI.WebControls.PageView
Protected p2 As Microsoft.Web.UI.WebControls.PageView
Protected p3 As Microsoft.Web.UI.WebControls.PageView
Protected p4 As Microsoft.Web.UI.WebControls.PageView
'in my sub that checks status of the current record.
tsHoriz.Items.Remove(tab1)
tsHoriz.Items.Remove(ts1)
mpHoriz.Controls.Remove(p1)
Mardy
"Mardy" wrote:

> Hello
> I've been using the tabstrip and multipage controls and really like the wa
y
> this combination allows users to switch between tabs without a postback.
> I'd like to get more detailed information about these controls but can onl
y
> find basic information on the internet. In particular, I'd like to hide or
> disable tabs dynamically and I'm not sure how to do this. I'd appreciate a
ny
> examples or insight.
> Thanks
> Mardy
Try using :- tsHoriz.Items(1).Enabled = False
There were some issues when i worked with the TABSTRIP but can't really
recall now.
Let me know if that doesn;t work and i''ll get back to you.
Patrick
"Mardy" <Mardy@.discussions.microsoft.com> wrote in message
news:6D81C4DC-03EF-4C9C-8A13-4965D67E901B@.microsoft.com...
> One final note
> This gets me close BUT if I have a postback anywhere in the tabstrip
page,
> I get a nasty viewstate error. This is apparently due to the removal of
the
> mutipage item.
>
>
> "Mardy" wrote:
>
the way
postback.
only
hide or
appreciate any
Tried that without success
"Patrick.O.Ige" wrote:

> Try using :- tsHoriz.Items(1).Enabled = False
> There were some issues when i worked with the TABSTRIP but can't really
> recall now.
> Let me know if that doesn;t work and i''ll get back to you.
> Patrick
>
> "Mardy" <Mardy@.discussions.microsoft.com> wrote in message
> news:6D81C4DC-03EF-4C9C-8A13-4965D67E901B@.microsoft.com...
> page,
> the
> the way
> postback.
> only
> hide or
> appreciate any
>
>
Will get back to you
Patrick
"Mardy" <Mardy@.discussions.microsoft.com> wrote in message
news:F8258DBF-204D-44D5-88AD-B6C78EEBAA2B@.microsoft.com...
> Tried that without success
> "Patrick.O.Ige" wrote:
>
of
like
can
Mardy..
This should guide you with the Tabstrip:-
http://aspnet101.com/aspnet101/tutorials.aspx?id=28
Hope that helps
Patrick
"Mardy" <Mardy@.discussions.microsoft.com> wrote in message
news:F8258DBF-204D-44D5-88AD-B6C78EEBAA2B@.microsoft.com...
> Tried that without success
> "Patrick.O.Ige" wrote:
>
of
like
can

tabstrip/multipage

Hello

I've been using the tabstrip and multipage controls and really like the way
this combination allows users to switch between tabs without a postback.

I'd like to get more detailed information about these controls but can only
find basic information on the internet. In particular, I'd like to hide or
disable tabs dynamically and I'm not sure how to do this. I'd appreciate any
examples or insight.

Thanks

Mardyhave you tried using the selectedindexchanged .
But you have to set Autopostback ="true" and remember the tabstrip index
starts from "0"
Hope that helps
Patrick

"Mardy" <Mardy@.discussions.microsoft.com> wrote in message
news:1DABCC32-74F8-49A9-B8DA-B8DFA4CC9539@.microsoft.com...
> Hello
> I've been using the tabstrip and multipage controls and really like the
way
> this combination allows users to switch between tabs without a postback.
> I'd like to get more detailed information about these controls but can
only
> find basic information on the internet. In particular, I'd like to hide or
> disable tabs dynamically and I'm not sure how to do this. I'd appreciate
any
> examples or insight.
> Thanks
> Mardy
For example
If YourTab.SelectedIndex = 0 Then
tsHoriz.Items(0).Enabled = True
tsHoriz.Items(1).Enabled = False
End If
Hope this helps
Patrick

"Mardy" <Mardy@.discussions.microsoft.com> wrote in message
news:1DABCC32-74F8-49A9-B8DA-B8DFA4CC9539@.microsoft.com...
> Hello
> I've been using the tabstrip and multipage controls and really like the
way
> this combination allows users to switch between tabs without a postback.
> I'd like to get more detailed information about these controls but can
only
> find basic information on the internet. In particular, I'd like to hide or
> disable tabs dynamically and I'm not sure how to do this. I'd appreciate
any
> examples or insight.
> Thanks
> Mardy
Patrick Thanks

I'm using the tabstip as a series of input screens to capture information,
Once the process is complete, I need to hide one of the tabs. So I'd like to
hide an entire tab dynamically from the code behind if the status of the
record is "approved".

I tried using the example you gave but had no success.

"Patrick.O.Ige" wrote:

> For example
> If YourTab.SelectedIndex = 0 Then
> tsHoriz.Items(0).Enabled = True
> tsHoriz.Items(1).Enabled = False
> End If
> Hope this helps
> Patrick
> "Mardy" <Mardy@.discussions.microsoft.com> wrote in message
> news:1DABCC32-74F8-49A9-B8DA-B8DFA4CC9539@.microsoft.com...
> > Hello
> > I've been using the tabstrip and multipage controls and really like the
> way
> > this combination allows users to switch between tabs without a postback.
> > I'd like to get more detailed information about these controls but can
> only
> > find basic information on the internet. In particular, I'd like to hide or
> > disable tabs dynamically and I'm not sure how to do this. I'd appreciate
> any
> > examples or insight.
> > Thanks
> > Mardy
>
I think I got it

Aspx page:
<iewc:tabstrip id="tsHoriz" runat="server" >
<iewc:Tab Text="Assessment Details" id="tab0"></iewc:Tab>
<iewc:TabSeparator id="ts0"></iewc:TabSeparator>
<iewc:Tab Text="Allocate Requirements" id="tab1"></iewc:Tab>
<iewc:TabSeparator id="ts1"></iewc:TabSeparator>
<iewc:Tab Text="Results" id="tab2"></iewc:Tab>
<iewc:TabSeparator id="ts2"></iewc:TabSeparator>
<iewc:Tab Text=" Design Comments" id="tab3"></iewc:Tab>
<iewc:TabSeparator id="ts3"></iewc:TabSeparator>
<iewc:Tab Text="Attachments" id="tab4"></iewc:Tab>
<iewc:TabSeparator DefaultStyle="width:100%;"></iewc:TabSeparator>
<iewc:multipage id="mpHoriz" ...>
<iewc:PageView id="p0">...
</iewc:PageView>
<iewc:PageView id="p1">...
</iewc:PageView>
...
</iewc:multipage
code behind:
Protected tab0 As Microsoft.Web.UI.WebControls.Tab
Protected ts0 As Microsoft.Web.UI.WebControls.TabSeparator
Protected tab1 As Microsoft.Web.UI.WebControls.Tab
Protected ts1 As Microsoft.Web.UI.WebControls.TabSeparator
Protected tab2 As Microsoft.Web.UI.WebControls.Tab
Protected ts2 As Microsoft.Web.UI.WebControls.TabSeparator
Protected tab3 As Microsoft.Web.UI.WebControls.Tab
Protected ts3 As Microsoft.Web.UI.WebControls.TabSeparator
Protected tab4 As Microsoft.Web.UI.WebControls.Tab
Protected p0 As Microsoft.Web.UI.WebControls.PageView
Protected p1 As Microsoft.Web.UI.WebControls.PageView
Protected p2 As Microsoft.Web.UI.WebControls.PageView
Protected p3 As Microsoft.Web.UI.WebControls.PageView
Protected p4 As Microsoft.Web.UI.WebControls.PageView

'in my sub that checks status of the current record.
tsHoriz.Items.Remove(tab1)
tsHoriz.Items.Remove(ts1)
mpHoriz.Controls.Remove(p1)

Mardy

"Mardy" wrote:

> Hello
> I've been using the tabstrip and multipage controls and really like the way
> this combination allows users to switch between tabs without a postback.
> I'd like to get more detailed information about these controls but can only
> find basic information on the internet. In particular, I'd like to hide or
> disable tabs dynamically and I'm not sure how to do this. I'd appreciate any
> examples or insight.
> Thanks
> Mardy
One final note

This gets me close BUT if I have a postback anywhere in the tabstrip page,
I get a nasty viewstate error. This is apparently due to the removal of the
mutipage item.

"Mardy" wrote:

> I think I got it
> Aspx page:
> <iewc:tabstrip id="tsHoriz" runat="server" >
> <iewc:Tab Text="Assessment Details" id="tab0"></iewc:Tab>
> <iewc:TabSeparator id="ts0"></iewc:TabSeparator>
> <iewc:Tab Text="Allocate Requirements" id="tab1"></iewc:Tab>
> <iewc:TabSeparator id="ts1"></iewc:TabSeparator>
> <iewc:Tab Text="Results" id="tab2"></iewc:Tab>
> <iewc:TabSeparator id="ts2"></iewc:TabSeparator>
> <iewc:Tab Text=" Design Comments" id="tab3"></iewc:Tab>
> <iewc:TabSeparator id="ts3"></iewc:TabSeparator>
> <iewc:Tab Text="Attachments" id="tab4"></iewc:Tab>
> <iewc:TabSeparator DefaultStyle="width:100%;"></iewc:TabSeparator>
> <iewc:multipage id="mpHoriz" ...>
> <iewc:PageView id="p0">...
> </iewc:PageView>
> <iewc:PageView id="p1">...
> </iewc:PageView>
> ...
> </iewc:multipage>
> code behind:
> Protected tab0 As Microsoft.Web.UI.WebControls.Tab
> Protected ts0 As Microsoft.Web.UI.WebControls.TabSeparator
> Protected tab1 As Microsoft.Web.UI.WebControls.Tab
> Protected ts1 As Microsoft.Web.UI.WebControls.TabSeparator
> Protected tab2 As Microsoft.Web.UI.WebControls.Tab
> Protected ts2 As Microsoft.Web.UI.WebControls.TabSeparator
> Protected tab3 As Microsoft.Web.UI.WebControls.Tab
> Protected ts3 As Microsoft.Web.UI.WebControls.TabSeparator
> Protected tab4 As Microsoft.Web.UI.WebControls.Tab
> Protected p0 As Microsoft.Web.UI.WebControls.PageView
> Protected p1 As Microsoft.Web.UI.WebControls.PageView
> Protected p2 As Microsoft.Web.UI.WebControls.PageView
> Protected p3 As Microsoft.Web.UI.WebControls.PageView
> Protected p4 As Microsoft.Web.UI.WebControls.PageView
>
> 'in my sub that checks status of the current record.
> tsHoriz.Items.Remove(tab1)
> tsHoriz.Items.Remove(ts1)
> mpHoriz.Controls.Remove(p1)
> Mardy
>
> "Mardy" wrote:
> > Hello
> > I've been using the tabstrip and multipage controls and really like the way
> > this combination allows users to switch between tabs without a postback.
> > I'd like to get more detailed information about these controls but can only
> > find basic information on the internet. In particular, I'd like to hide or
> > disable tabs dynamically and I'm not sure how to do this. I'd appreciate any
> > examples or insight.
> > Thanks
> > Mardy
Try using :- tsHoriz.Items(1).Enabled = False
There were some issues when i worked with the TABSTRIP but can't really
recall now.
Let me know if that doesn;t work and i''ll get back to you.
Patrick

"Mardy" <Mardy@.discussions.microsoft.com> wrote in message
news:6D81C4DC-03EF-4C9C-8A13-4965D67E901B@.microsoft.com...
> One final note
> This gets me close BUT if I have a postback anywhere in the tabstrip
page,
> I get a nasty viewstate error. This is apparently due to the removal of
the
> mutipage item.
>
>
> "Mardy" wrote:
> > I think I got it
> > Aspx page:
> > <iewc:tabstrip id="tsHoriz" runat="server" >
> > <iewc:Tab Text="Assessment Details" id="tab0"></iewc:Tab>
> > <iewc:TabSeparator id="ts0"></iewc:TabSeparator>
> > <iewc:Tab Text="Allocate Requirements" id="tab1"></iewc:Tab>
> > <iewc:TabSeparator id="ts1"></iewc:TabSeparator>
> > <iewc:Tab Text="Results" id="tab2"></iewc:Tab>
> > <iewc:TabSeparator id="ts2"></iewc:TabSeparator>
> > <iewc:Tab Text=" Design Comments" id="tab3"></iewc:Tab>
> > <iewc:TabSeparator id="ts3"></iewc:TabSeparator>
> > <iewc:Tab Text="Attachments" id="tab4"></iewc:Tab>
> > <iewc:TabSeparator DefaultStyle="width:100%;"></iewc:TabSeparator>
> > <iewc:multipage id="mpHoriz" ...>
> > <iewc:PageView id="p0">...
> > </iewc:PageView>
> > <iewc:PageView id="p1">...
> > </iewc:PageView>
> > ...
> > </iewc:multipage>
> > code behind:
> > Protected tab0 As Microsoft.Web.UI.WebControls.Tab
> > Protected ts0 As Microsoft.Web.UI.WebControls.TabSeparator
> > Protected tab1 As Microsoft.Web.UI.WebControls.Tab
> > Protected ts1 As Microsoft.Web.UI.WebControls.TabSeparator
> > Protected tab2 As Microsoft.Web.UI.WebControls.Tab
> > Protected ts2 As Microsoft.Web.UI.WebControls.TabSeparator
> > Protected tab3 As Microsoft.Web.UI.WebControls.Tab
> > Protected ts3 As Microsoft.Web.UI.WebControls.TabSeparator
> > Protected tab4 As Microsoft.Web.UI.WebControls.Tab
> > Protected p0 As Microsoft.Web.UI.WebControls.PageView
> > Protected p1 As Microsoft.Web.UI.WebControls.PageView
> > Protected p2 As Microsoft.Web.UI.WebControls.PageView
> > Protected p3 As Microsoft.Web.UI.WebControls.PageView
> > Protected p4 As Microsoft.Web.UI.WebControls.PageView
> > 'in my sub that checks status of the current record.
> > tsHoriz.Items.Remove(tab1)
> > tsHoriz.Items.Remove(ts1)
> > mpHoriz.Controls.Remove(p1)
> > Mardy
> > "Mardy" wrote:
> > > Hello
> > > > I've been using the tabstrip and multipage controls and really like
the way
> > > this combination allows users to switch between tabs without a
postback.
> > > > I'd like to get more detailed information about these controls but can
only
> > > find basic information on the internet. In particular, I'd like to
hide or
> > > disable tabs dynamically and I'm not sure how to do this. I'd
appreciate any
> > > examples or insight.
> > > > Thanks
> > > > Mardy
Tried that without success

"Patrick.O.Ige" wrote:

> Try using :- tsHoriz.Items(1).Enabled = False
> There were some issues when i worked with the TABSTRIP but can't really
> recall now.
> Let me know if that doesn;t work and i''ll get back to you.
> Patrick
>
> "Mardy" <Mardy@.discussions.microsoft.com> wrote in message
> news:6D81C4DC-03EF-4C9C-8A13-4965D67E901B@.microsoft.com...
> > One final note
> > This gets me close BUT if I have a postback anywhere in the tabstrip
> page,
> > I get a nasty viewstate error. This is apparently due to the removal of
> the
> > mutipage item.
> > "Mardy" wrote:
> > > I think I got it
> > > > Aspx page:
> > > <iewc:tabstrip id="tsHoriz" runat="server" >
> > > <iewc:Tab Text="Assessment Details" id="tab0"></iewc:Tab>
> > > <iewc:TabSeparator id="ts0"></iewc:TabSeparator>
> > > <iewc:Tab Text="Allocate Requirements" id="tab1"></iewc:Tab>
> > > <iewc:TabSeparator id="ts1"></iewc:TabSeparator>
> > > <iewc:Tab Text="Results" id="tab2"></iewc:Tab>
> > > <iewc:TabSeparator id="ts2"></iewc:TabSeparator>
> > > <iewc:Tab Text=" Design Comments" id="tab3"></iewc:Tab>
> > > <iewc:TabSeparator id="ts3"></iewc:TabSeparator>
> > > <iewc:Tab Text="Attachments" id="tab4"></iewc:Tab>
> > > <iewc:TabSeparator DefaultStyle="width:100%;"></iewc:TabSeparator>
> > > <iewc:multipage id="mpHoriz" ...>
> > > <iewc:PageView id="p0">...
> > > </iewc:PageView>
> > > <iewc:PageView id="p1">...
> > > </iewc:PageView>
> > > ...
> > > </iewc:multipage>
> > > > code behind:
> > > Protected tab0 As Microsoft.Web.UI.WebControls.Tab
> > > Protected ts0 As Microsoft.Web.UI.WebControls.TabSeparator
> > > Protected tab1 As Microsoft.Web.UI.WebControls.Tab
> > > Protected ts1 As Microsoft.Web.UI.WebControls.TabSeparator
> > > Protected tab2 As Microsoft.Web.UI.WebControls.Tab
> > > Protected ts2 As Microsoft.Web.UI.WebControls.TabSeparator
> > > Protected tab3 As Microsoft.Web.UI.WebControls.Tab
> > > Protected ts3 As Microsoft.Web.UI.WebControls.TabSeparator
> > > Protected tab4 As Microsoft.Web.UI.WebControls.Tab
> > > Protected p0 As Microsoft.Web.UI.WebControls.PageView
> > > Protected p1 As Microsoft.Web.UI.WebControls.PageView
> > > Protected p2 As Microsoft.Web.UI.WebControls.PageView
> > > Protected p3 As Microsoft.Web.UI.WebControls.PageView
> > > Protected p4 As Microsoft.Web.UI.WebControls.PageView
> > > > > 'in my sub that checks status of the current record.
> > > tsHoriz.Items.Remove(tab1)
> > > tsHoriz.Items.Remove(ts1)
> > > mpHoriz.Controls.Remove(p1)
> > > > Mardy
> > > > > "Mardy" wrote:
> > > > > Hello
> > > > > > I've been using the tabstrip and multipage controls and really like
> the way
> > > > this combination allows users to switch between tabs without a
> postback.
> > > > > > I'd like to get more detailed information about these controls but can
> only
> > > > find basic information on the internet. In particular, I'd like to
> hide or
> > > > disable tabs dynamically and I'm not sure how to do this. I'd
> appreciate any
> > > > examples or insight.
> > > > > > Thanks
> > > > > > Mardy
>
Will get back to you
Patrick

"Mardy" <Mardy@.discussions.microsoft.com> wrote in message
news:F8258DBF-204D-44D5-88AD-B6C78EEBAA2B@.microsoft.com...
> Tried that without success
> "Patrick.O.Ige" wrote:
> > Try using :- tsHoriz.Items(1).Enabled = False
> > There were some issues when i worked with the TABSTRIP but can't really
> > recall now.
> > Let me know if that doesn;t work and i''ll get back to you.
> > Patrick
> > "Mardy" <Mardy@.discussions.microsoft.com> wrote in message
> > news:6D81C4DC-03EF-4C9C-8A13-4965D67E901B@.microsoft.com...
> > > One final note
> > > > This gets me close BUT if I have a postback anywhere in the tabstrip
> > page,
> > > I get a nasty viewstate error. This is apparently due to the removal
of
> > the
> > > mutipage item.
> > > > > > > "Mardy" wrote:
> > > > > I think I got it
> > > > > > Aspx page:
> > > > <iewc:tabstrip id="tsHoriz" runat="server" >
> > > > <iewc:Tab Text="Assessment Details" id="tab0"></iewc:Tab>
> > > > <iewc:TabSeparator id="ts0"></iewc:TabSeparator>
> > > > <iewc:Tab Text="Allocate Requirements" id="tab1"></iewc:Tab>
> > > > <iewc:TabSeparator id="ts1"></iewc:TabSeparator>
> > > > <iewc:Tab Text="Results" id="tab2"></iewc:Tab>
> > > > <iewc:TabSeparator id="ts2"></iewc:TabSeparator>
> > > > <iewc:Tab Text=" Design Comments" id="tab3"></iewc:Tab>
> > > > <iewc:TabSeparator id="ts3"></iewc:TabSeparator>
> > > > <iewc:Tab Text="Attachments" id="tab4"></iewc:Tab>
> > > > <iewc:TabSeparator DefaultStyle="width:100%;"></iewc:TabSeparator>
> > > > <iewc:multipage id="mpHoriz" ...>
> > > > <iewc:PageView id="p0">...
> > > > </iewc:PageView>
> > > > <iewc:PageView id="p1">...
> > > > </iewc:PageView>
> > > > ...
> > > > </iewc:multipage>
> > > > > > code behind:
> > > > Protected tab0 As Microsoft.Web.UI.WebControls.Tab
> > > > Protected ts0 As Microsoft.Web.UI.WebControls.TabSeparator
> > > > Protected tab1 As Microsoft.Web.UI.WebControls.Tab
> > > > Protected ts1 As Microsoft.Web.UI.WebControls.TabSeparator
> > > > Protected tab2 As Microsoft.Web.UI.WebControls.Tab
> > > > Protected ts2 As Microsoft.Web.UI.WebControls.TabSeparator
> > > > Protected tab3 As Microsoft.Web.UI.WebControls.Tab
> > > > Protected ts3 As Microsoft.Web.UI.WebControls.TabSeparator
> > > > Protected tab4 As Microsoft.Web.UI.WebControls.Tab
> > > > Protected p0 As Microsoft.Web.UI.WebControls.PageView
> > > > Protected p1 As Microsoft.Web.UI.WebControls.PageView
> > > > Protected p2 As Microsoft.Web.UI.WebControls.PageView
> > > > Protected p3 As Microsoft.Web.UI.WebControls.PageView
> > > > Protected p4 As Microsoft.Web.UI.WebControls.PageView
> > > > > > > > 'in my sub that checks status of the current record.
> > > > tsHoriz.Items.Remove(tab1)
> > > > tsHoriz.Items.Remove(ts1)
> > > > mpHoriz.Controls.Remove(p1)
> > > > > > Mardy
> > > > > > > > "Mardy" wrote:
> > > > > > > Hello
> > > > > > > > I've been using the tabstrip and multipage controls and really
like
> > the way
> > > > > this combination allows users to switch between tabs without a
> > postback.
> > > > > > > > I'd like to get more detailed information about these controls but
can
> > only
> > > > > find basic information on the internet. In particular, I'd like to
> > hide or
> > > > > disable tabs dynamically and I'm not sure how to do this. I'd
> > appreciate any
> > > > > examples or insight.
> > > > > > > > Thanks
> > > > > > > > Mardy
Mardy..
This should guide you with the Tabstrip:-
http://aspnet101.com/aspnet101/tutorials.aspx?id=28
Hope that helps
Patrick

"Mardy" <Mardy@.discussions.microsoft.com> wrote in message
news:F8258DBF-204D-44D5-88AD-B6C78EEBAA2B@.microsoft.com...
> Tried that without success
> "Patrick.O.Ige" wrote:
> > Try using :- tsHoriz.Items(1).Enabled = False
> > There were some issues when i worked with the TABSTRIP but can't really
> > recall now.
> > Let me know if that doesn;t work and i''ll get back to you.
> > Patrick
> > "Mardy" <Mardy@.discussions.microsoft.com> wrote in message
> > news:6D81C4DC-03EF-4C9C-8A13-4965D67E901B@.microsoft.com...
> > > One final note
> > > > This gets me close BUT if I have a postback anywhere in the tabstrip
> > page,
> > > I get a nasty viewstate error. This is apparently due to the removal
of
> > the
> > > mutipage item.
> > > > > > > "Mardy" wrote:
> > > > > I think I got it
> > > > > > Aspx page:
> > > > <iewc:tabstrip id="tsHoriz" runat="server" >
> > > > <iewc:Tab Text="Assessment Details" id="tab0"></iewc:Tab>
> > > > <iewc:TabSeparator id="ts0"></iewc:TabSeparator>
> > > > <iewc:Tab Text="Allocate Requirements" id="tab1"></iewc:Tab>
> > > > <iewc:TabSeparator id="ts1"></iewc:TabSeparator>
> > > > <iewc:Tab Text="Results" id="tab2"></iewc:Tab>
> > > > <iewc:TabSeparator id="ts2"></iewc:TabSeparator>
> > > > <iewc:Tab Text=" Design Comments" id="tab3"></iewc:Tab>
> > > > <iewc:TabSeparator id="ts3"></iewc:TabSeparator>
> > > > <iewc:Tab Text="Attachments" id="tab4"></iewc:Tab>
> > > > <iewc:TabSeparator DefaultStyle="width:100%;"></iewc:TabSeparator>
> > > > <iewc:multipage id="mpHoriz" ...>
> > > > <iewc:PageView id="p0">...
> > > > </iewc:PageView>
> > > > <iewc:PageView id="p1">...
> > > > </iewc:PageView>
> > > > ...
> > > > </iewc:multipage>
> > > > > > code behind:
> > > > Protected tab0 As Microsoft.Web.UI.WebControls.Tab
> > > > Protected ts0 As Microsoft.Web.UI.WebControls.TabSeparator
> > > > Protected tab1 As Microsoft.Web.UI.WebControls.Tab
> > > > Protected ts1 As Microsoft.Web.UI.WebControls.TabSeparator
> > > > Protected tab2 As Microsoft.Web.UI.WebControls.Tab
> > > > Protected ts2 As Microsoft.Web.UI.WebControls.TabSeparator
> > > > Protected tab3 As Microsoft.Web.UI.WebControls.Tab
> > > > Protected ts3 As Microsoft.Web.UI.WebControls.TabSeparator
> > > > Protected tab4 As Microsoft.Web.UI.WebControls.Tab
> > > > Protected p0 As Microsoft.Web.UI.WebControls.PageView
> > > > Protected p1 As Microsoft.Web.UI.WebControls.PageView
> > > > Protected p2 As Microsoft.Web.UI.WebControls.PageView
> > > > Protected p3 As Microsoft.Web.UI.WebControls.PageView
> > > > Protected p4 As Microsoft.Web.UI.WebControls.PageView
> > > > > > > > 'in my sub that checks status of the current record.
> > > > tsHoriz.Items.Remove(tab1)
> > > > tsHoriz.Items.Remove(ts1)
> > > > mpHoriz.Controls.Remove(p1)
> > > > > > Mardy
> > > > > > > > "Mardy" wrote:
> > > > > > > Hello
> > > > > > > > I've been using the tabstrip and multipage controls and really
like
> > the way
> > > > > this combination allows users to switch between tabs without a
> > postback.
> > > > > > > > I'd like to get more detailed information about these controls but
can
> > only
> > > > > find basic information on the internet. In particular, I'd like to
> > hide or
> > > > > disable tabs dynamically and I'm not sure how to do this. I'd
> > appreciate any
> > > > > examples or insight.
> > > > > > > > Thanks
> > > > > > > > Mardy

tag <tbody> using TAble control

Hi misters,
How I generate <tbody> tag using Table, TableRow, etc ... controls ?
I have this method:
private Table GenerarTablaOrdenacion(LinkButton lnkAscendente, LinkButton
lnkDescendente, Image imgAZ, Image imgZA)
{
Table table = new Table();
TableRow row1 = new TableRow();
TableCell col1 = new TableCell();
TableCell col2 = new TableCell();
col1.Style.Add(HtmlTextWriterStyle.Width, "6px");
col1.Controls.Add(imgAZ);
col2.Controls.Add(lnkAscendente);
row1.Cells.Add(col1);
row1.Cells.Add(col2);
TableRow row2 = new TableRow();
TableCell col21 = new TableCell();
TableCell col22 = new TableCell();col21.Style.Add(HtmlTextWriterStyle.Width,
"6px");
col21.Controls.Add(imgZA);
col22.Controls.Add(lnkDescendente);
row2.Cells.Add(col21);
row2.Cells.Add(col22);
table.Rows.Add(row1);
table.Rows.Add(row2);
return table;
Thanks in advance.
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.net
http://www.setbb.com/putainformatic...topic.php?p=843
www.trabajobasura.com/solusoftOn Nov 28, 9:29 am, Alhambra Eidos Kiquenet
<AlhambraEidosKique...@.discussions.microsoft.com> wrote:
> Hi misters,
> How I generate <tbody> tag using Table, TableRow, etc ... controls ?
> I have this method:
> private Table GenerarTablaOrdenacion(LinkButton lnkAscendente, LinkButton
> lnkDescendente, Image imgAZ, Image imgZA)
> {
> Table table = new Table();
> TableRow row1 = new TableRow();
> TableCell col1 = new TableCell();
> TableCell col2 = new TableCell();
> col1.Style.Add(HtmlTextWriterStyle.Width, "6px");
> col1.Controls.Add(imgAZ);
> col2.Controls.Add(lnkAscendente);
> row1.Cells.Add(col1);
> row1.Cells.Add(col2);
> TableRow row2 = new TableRow();
> TableCell col21 = new TableCell();
> TableCell col22 = new TableCell();col21.Style.Add(HtmlTextWriterStyle.Widt
h,
> "6px");
> col21.Controls.Add(imgZA);
> col22.Controls.Add(lnkDescendente);
> row2.Cells.Add(col21);
> row2.Cells.Add(col22);
> table.Rows.Add(row1);
> table.Rows.Add(row2);
> return table;
> Thanks in advance.
> --http://www.alhambra-eidos.es/web2005/index.htmlwww.kiquenet.nethttp://www.setbb.
com/putainformatica/viewtopic.php?p=843www.trabajobasura.com/solusoft
I think you can use HtmlGenericControl instead
Example:
HtmlGenericControl tbl = new HtmlGenericControl("Table");
HtmlGenericControl tbody = new HtmlGenericControl("TBODY");
HtmlGenericControl row1 = new HtmlGenericControl("tr");
tbody.Controls.Add(row1);
...
this will not work (table only allows TableRows as children). you can't
do this with the builtin table class. you will need to write your own,
should be a pretty simple subclass.
-- bruce (sqlwork.com)
Alexey Smirnov wrote:
> On Nov 28, 9:29 am, Alhambra Eidos Kiquenet
> <AlhambraEidosKique...@.discussions.microsoft.com> wrote:
> I think you can use HtmlGenericControl instead
> Example:
> HtmlGenericControl tbl = new HtmlGenericControl("Table");
> HtmlGenericControl tbody = new HtmlGenericControl("TBODY");
> HtmlGenericControl row1 = new HtmlGenericControl("tr");
> tbody.Controls.Add(row1);
> ...
On Nov 28, 6:03 pm, bruce barker <nos...@.nospam.com> wrote:
> this will not work (table only allows TableRows as children). you can't
> do this with the builtin table class. you will need to write your own,
> should be a pretty simple subclass.
> -- bruce (sqlwork.com)
Bruce,
HtmlGenericControl tbl = new HtmlGenericControl("table");
HtmlGenericControl tbody = new HtmlGenericControl("TBODY");
HtmlGenericControl row1 = new HtmlGenericControl("tr");
HtmlGenericControl cell1 = new HtmlGenericControl("td");
LiteralControl lt = new LiteralControl("Hallo, Welt");
cell1.Controls.Add(lt);
row1.Controls.Add(cell1);
tbody.Controls.Add(row1);
tbl.Controls.Add(tbody);
panel1.Controls.Add(tbl);
returns
<table><TBODY><tr><td>Hallo, Welt</td></tr></TBODY></table>

tag <tbody> using TAble control

Hi misters,

How I generate <tbodytag using Table, TableRow, etc ... controls ?

I have this method:

private Table GenerarTablaOrdenacion(LinkButton lnkAscendente, LinkButton
lnkDescendente, Image imgAZ, Image imgZA)
{

Table table = new Table();
TableRow row1 = new TableRow();
TableCell col1 = new TableCell();
TableCell col2 = new TableCell();

col1.Style.Add(HtmlTextWriterStyle.Width, "6px");
col1.Controls.Add(imgAZ);
col2.Controls.Add(lnkAscendente);

row1.Cells.Add(col1);
row1.Cells.Add(col2);

TableRow row2 = new TableRow();
TableCell col21 = new TableCell();
TableCell col22 = new TableCell();col21.Style.Add(HtmlTextWriterStyle.Wi dth,
"6px");
col21.Controls.Add(imgZA);
col22.Controls.Add(lnkDescendente);

row2.Cells.Add(col21);
row2.Cells.Add(col22);

table.Rows.Add(row1);
table.Rows.Add(row2);
return table;

Thanks in advance.

--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.net
http://www.setbb.com/putainformatic...topic.php?p=843
www.trabajobasura.com/solusoftOn Nov 28, 9:29 am, Alhambra Eidos Kiquenet
<AlhambraEidosKique...@.discussions.microsoft.comwro te:

Quote:

Originally Posted by

Hi misters,
>
How I generate <tbodytag using Table, TableRow, etc ... controls ?
>
I have this method:
>
private Table GenerarTablaOrdenacion(LinkButton lnkAscendente, LinkButton
lnkDescendente, Image imgAZ, Image imgZA)
{
>
Table table = new Table();
TableRow row1 = new TableRow();
TableCell col1 = new TableCell();
TableCell col2 = new TableCell();
>
col1.Style.Add(HtmlTextWriterStyle.Width, "6px");
col1.Controls.Add(imgAZ);
col2.Controls.Add(lnkAscendente);
>
row1.Cells.Add(col1);
row1.Cells.Add(col2);
>
TableRow row2 = new TableRow();
TableCell col21 = new TableCell();
TableCell col22 = new TableCell();col21.Style.Add(HtmlTextWriterStyle.Wi dth,
"6px");
col21.Controls.Add(imgZA);
col22.Controls.Add(lnkDescendente);
>
row2.Cells.Add(col21);
row2.Cells.Add(col22);
>
table.Rows.Add(row1);
table.Rows.Add(row2);
return table;
>
Thanks in advance.
>
--http://www.alhambra-eidos.es/web2005/index.htmlwww.kiquenet.nethttp://www.setbb.com/putainformatica/viewtopic.php?p=843www.trabajobasura.com/solusoft


I think you can use HtmlGenericControl instead

Example:

HtmlGenericControl tbl = new HtmlGenericControl("Table");
HtmlGenericControl tbody = new HtmlGenericControl("TBODY");
HtmlGenericControl row1 = new HtmlGenericControl("tr");
tbody.Controls.Add(row1);
...
this will not work (table only allows TableRows as children). you can't
do this with the builtin table class. you will need to write your own,
should be a pretty simple subclass.

-- bruce (sqlwork.com)

Alexey Smirnov wrote:

Quote:

Originally Posted by

On Nov 28, 9:29 am, Alhambra Eidos Kiquenet
<AlhambraEidosKique...@.discussions.microsoft.comwro te:

Quote:

Originally Posted by

>Hi misters,
>>
>How I generate <tbodytag using Table, TableRow, etc ... controls ?
>>
>I have this method:
>>
>private Table GenerarTablaOrdenacion(LinkButton lnkAscendente, LinkButton
>lnkDescendente, Image imgAZ, Image imgZA)
>{
>>
>Table table = new Table();
>TableRow row1 = new TableRow();
>TableCell col1 = new TableCell();
>TableCell col2 = new TableCell();
>>
>col1.Style.Add(HtmlTextWriterStyle.Width, "6px");
>col1.Controls.Add(imgAZ);
>col2.Controls.Add(lnkAscendente);
>>
>row1.Cells.Add(col1);
>row1.Cells.Add(col2);
>>
>TableRow row2 = new TableRow();
>TableCell col21 = new TableCell();
>TableCell col22 = new TableCell();col21.Style.Add(HtmlTextWriterStyle.Wi dth,
>"6px");
>col21.Controls.Add(imgZA);
>col22.Controls.Add(lnkDescendente);
>>
>row2.Cells.Add(col21);
>row2.Cells.Add(col22);
>>
>table.Rows.Add(row1);
>table.Rows.Add(row2);
>return table;
>>
>Thanks in advance.
>>
>--http://www.alhambra-eidos.es/web2005/index.htmlwww.kiquenet.nethttp://www.setbb.com/putainformatica/viewtopic.php?p=843www.trabajobasura.com/solusoft


>
I think you can use HtmlGenericControl instead
>
Example:
>
HtmlGenericControl tbl = new HtmlGenericControl("Table");
HtmlGenericControl tbody = new HtmlGenericControl("TBODY");
HtmlGenericControl row1 = new HtmlGenericControl("tr");
tbody.Controls.Add(row1);
...


On Nov 28, 6:03 pm, bruce barker <nos...@.nospam.comwrote:

Quote:

Originally Posted by

this will not work (table only allows TableRows as children). you can't
do this with the builtin table class. you will need to write your own,
should be a pretty simple subclass.
>
-- bruce (sqlwork.com)


Bruce,

HtmlGenericControl tbl = new HtmlGenericControl("table");
HtmlGenericControl tbody = new HtmlGenericControl("TBODY");
HtmlGenericControl row1 = new HtmlGenericControl("tr");
HtmlGenericControl cell1 = new HtmlGenericControl("td");
LiteralControl lt = new LiteralControl("Hallo, Welt");
cell1.Controls.Add(lt);
row1.Controls.Add(cell1);
tbody.Controls.Add(row1);
tbl.Controls.Add(tbody);
panel1.Controls.Add(tbl);

returns

<table><TBODY><tr><td>Hallo, Welt</td></tr></TBODY></table>

Tagprefix to my server controls

I'd like to set the tagprefix of my server controls automatically when
they are dragged to the webform.
My code reads
<Assembly: TagPrefix("CtrlLib", "abc")>
Namespace CtrlLib
<DefaultProperty("Text"), ToolboxData("<{0}:TextBoxPlus
runat=server></{0}:TextBoxPlus>")> _
Public Class TextBoxPlus : Inherits
System.Web.UI.WebControls.TextBox
However, after adding the control to the toolbox and dragging the
control to the webform the tagprefix still reads <cc1:TextBoxPlus ...
What am I missing?
/MOn Thu, 30 Mar 2006 18:28:34 -0600, wapsiii <wapsiii@.otmail.com> wrote:

> I'd like to set the tagprefix of my server controls automatically when
> they are dragged to the webform.
> However, after adding the control to the toolbox and dragging the
> control to the webform the tagprefix still reads <cc1:TextBoxPlus ...
> What am I missing?
> /M
for 1.x?
http://weblogs.asp.net/kwarren/arch...1/07/48457.aspx
note the issue mentioned in the comments, that all controls with the same
prefix have to be in same assembly...not a huge deal, most times you are
using 1 assembly. dunno if 2.x does it differently...
Craig
Microsoft MVP - ASP/ASP.NET

Tagprefix to my server controls

I'd like to set the tagprefix of my server controls automatically when
they are dragged to the webform.

My code reads

<Assembly: TagPrefix("CtrlLib", "abc")>
Namespace CtrlLib

<DefaultProperty("Text"), ToolboxData("<{0}:TextBoxPlus
runat=server></{0}:TextBoxPlus>")> _
Public Class TextBoxPlus : Inherits
System.Web.UI.WebControls.TextBox

However, after adding the control to the toolbox and dragging the
control to the webform the tagprefix still reads <cc1:TextBoxPlus ...

What am I missing?

/MOn Thu, 30 Mar 2006 18:28:34 -0600, wapsiii <wapsiii@.otmail.com> wrote:

> I'd like to set the tagprefix of my server controls automatically when
> they are dragged to the webform.
> However, after adding the control to the toolbox and dragging the
> control to the webform the tagprefix still reads <cc1:TextBoxPlus ...
> What am I missing?
> /M

for 1.x?
http://weblogs.asp.net/kwarren/arch...1/07/48457.aspx

note the issue mentioned in the comments, that all controls with the same
prefix have to be in same assembly...not a huge deal, most times you are
using 1 assembly. dunno if 2.x does it differently...

--
Craig
Microsoft MVP - ASP/ASP.NET

Thursday, March 22, 2012

TagPrefix Defined Globally...?

Hi all,

I have the following register tag for my custom controls on each of my ASPX pages:


<%@dotnet.itags.org. Register TagPrefix="MY" Namespace="MY.Presentation" Assembly="MY.Presentation"%>
Is it possible to make this decleartion globally, say in global.asa or web.config?

Or is it required that each page defines it individually?

Has anyone come across an elgeant solution for doing this? I'm using <!-- Include --> at the moment but surely theres a way of avoiding this?

Any help would be very much appreciated.

Thanks in advance.

SarahThere is no other solution at the moment -- this will be addressed in v2.0 (Whidbey).

Tuesday, March 13, 2012

td tag generating faulty code

I have created a user control using asp:table control. The control generates
a single column menu controls with 5 rows. each row is supposed to have a
image in link tag. The problem is that ASP.Net framework generates closing
"td" tags on new line. This causes to show extra white pixels at the bottom
of each image. This is because of a known bug in "IE" where it has issues
with closing "td" tag on new line.
Question .... is there a way to control the HTML tags generated by ASP.Net
controls so that I can get the UI the way I want it?
Thanks
Naveen K Kohli
http://www.netomatix.comYou would have to override the Render method of the server control, or
possible create a custom control where you specify the HTML to rendered.
David Lloyd
MCSD .NET
http://LemingtonConsulting.com
This response is supplied "as is" without any representations or warranties.
"Naveen K Kohli" <naveenkohli@.hotmail.com> wrote in message
news:#xNFQq#VFHA.1384@.TK2MSFTNGP09.phx.gbl...
I have created a user control using asp:table control. The control generates
a single column menu controls with 5 rows. each row is supposed to have a
image in link tag. The problem is that ASP.Net framework generates closing
"td" tags on new line. This causes to show extra white pixels at the bottom
of each image. This is because of a known bug in "IE" where it has issues
with closing "td" tag on new line.
Question .... is there a way to control the HTML tags generated by ASP.Net
controls so that I can get the UI the way I want it?
Thanks
Naveen K Kohli
http://www.netomatix.com