Showing posts with label placed. Show all posts
Showing posts with label placed. Show all posts

Monday, March 26, 2012

newbie: Problem with CreateUserWizard

Hey

Below is the source code of the CreateUserWizard placed on one my web pages
(asp.net 2.0).

The problem is that the AssignUserToRole method isn't triggered when
clicking on the finish button (that Images/Go.gif image).

So I'm wondering what I'm doing wrong here

******************* markup ********************
<asp:CreateUserWizard FinishDestinationPageUrl="~/Default.aspx"
ID="CreateUserWizard1"
Width="300px" runat="server"
LoginCreatedUser="false"
CreateUserButtonType="Image"
CreateUserButtonImageUrl="Images/Go.gif"
OnFinishButtonClick="AssignUserToRole">

<WizardSteps>
<asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server">
<ContentTemplate>
<label for="Username">User name:</label>
<asp:TextBox id="Username" runat="server" />

<label for="Password">Password:</label>
<asp:TextBox id="Password" runat="server"
TextMode="Password" />

<label for="ConfirmPassword">Confirm
Password:</label>
<asp:TextBox id="ConfirmPassword" runat="server"
TextMode="Password" />

<label for="Email">Email</label>
<asp:TextBox id="Email" runat="server" />

<label for="Question">Security question:</label>
<asp:TextBox id="Question" runat="server" />

<label for="Answer">Security answer:</label>
<asp:TextBox id="Answer" runat="server" />

</ContentTemplate>
</asp:CreateUserWizardStep>

<asp:CompleteWizardStep ID="CompleteWizardStep1" runat="server">
<ContentTemplate>rrrr</ContentTemplate>
</asp:CompleteWizardStep>
</WizardSteps>
</asp:CreateUserWizard>

***************** AssignUserToRole code **********************
protected void AssignUserToRole(object sender, EventArgs e)
{
MembershipUser user = Membership.GetUser();
user.IsApproved = false;
MailMessage mail = new MailMessage("name@dotnet.itags.org.somewhere.domain", user.Email,
"Thank you", "Hello World");
SmtpClient smtpClient = new SmtpClient();
smtpClient.Send(mail);
mail.Dispose();
}

Any suggestions?I put the functionality into the CreatedUser event

Jeff

"Jeff" <it_consultant1@.hotmail.com.NOSPAMwrote in message
news:e7LUO45SHHA.920@.TK2MSFTNGP05.phx.gbl...

Quote:

Originally Posted by

Hey
>
Below is the source code of the CreateUserWizard placed on one my web
pages (asp.net 2.0).
>
The problem is that the AssignUserToRole method isn't triggered when
clicking on the finish button (that Images/Go.gif image).
>
So I'm wondering what I'm doing wrong here
>
******************* markup ********************
<asp:CreateUserWizard FinishDestinationPageUrl="~/Default.aspx"
ID="CreateUserWizard1"
Width="300px" runat="server"
LoginCreatedUser="false"
CreateUserButtonType="Image"
CreateUserButtonImageUrl="Images/Go.gif"
OnFinishButtonClick="AssignUserToRole">
>
<WizardSteps>
<asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server">
<ContentTemplate>
<label for="Username">User name:</label>
<asp:TextBox id="Username" runat="server" />
>
<label for="Password">Password:</label>
<asp:TextBox id="Password" runat="server"
TextMode="Password" />
>
<label for="ConfirmPassword">Confirm
Password:</label>
<asp:TextBox id="ConfirmPassword"
runat="server" TextMode="Password" />
>
<label for="Email">Email</label>
<asp:TextBox id="Email" runat="server" />
>
<label for="Question">Security
question:</label>
<asp:TextBox id="Question" runat="server" />
>
<label for="Answer">Security answer:</label>
<asp:TextBox id="Answer" runat="server" />
>
>
</ContentTemplate>
</asp:CreateUserWizardStep>
>
<asp:CompleteWizardStep ID="CompleteWizardStep1"
runat="server">
<ContentTemplate>rrrr</ContentTemplate>
</asp:CompleteWizardStep>
</WizardSteps>
</asp:CreateUserWizard>
>
***************** AssignUserToRole code **********************
protected void AssignUserToRole(object sender, EventArgs e)
{
MembershipUser user = Membership.GetUser();
user.IsApproved = false;
MailMessage mail = new MailMessage("name@.somewhere.domain", user.Email,
"Thank you", "Hello World");
SmtpClient smtpClient = new SmtpClient();
smtpClient.Send(mail);
mail.Dispose();
}
>
Any suggestions?
>
>

newbie: Problems in the code... again

hey

asp.net 2.0

On my webpage have I placed a LoginView (named lvSidebar). On this
loginview's loggedInTemplate I placed a menu (mnuSidebar) and the datasource
to the menu is SiteMapDataSource1.

My Problem is that I cannot access the SiteMapDataSource1 object from the
code:
lvSidebar.LoggedInTemplate.SiteMapDataSource.Start ingNodeUrl =
"Default.aspx";
don't compile:
System.Web.UI.ITemplate' does not contain a definition for
'SiteMapDataSource1'

Any ideas what I should do to solve this?

JeffThe LoggedInTemplate property of the LoginView control does not have a
property called SiteMapDataSource which is what is causing the error. If you
want to prograamatically set the StratingNodeURL property of
SiteMapDataSource1 simply use the following code

SiteMapDataSource1.StartingNodeUrl = "Default.aspx";

The LoginView has nothing to do with it.

"Jeff" wrote:

Quote:

Originally Posted by

hey
>
asp.net 2.0
>
On my webpage have I placed a LoginView (named lvSidebar). On this
loginview's loggedInTemplate I placed a menu (mnuSidebar) and the datasource
to the menu is SiteMapDataSource1.
>
My Problem is that I cannot access the SiteMapDataSource1 object from the
code:
lvSidebar.LoggedInTemplate.SiteMapDataSource.Start ingNodeUrl =
"Default.aspx";
don't compile:
System.Web.UI.ITemplate' does not contain a definition for
'SiteMapDataSource1'
>
Any ideas what I should do to solve this?
>
Jeff
>
>
>


hmm when I in the code start to type "SiteM" the SiteMapDataSource1 isn't
shown in the type-ahead list... this happens if I try to access the
SiteMapDataSource like this SiteMapDataSource1.StartingNodeUrl =
"Default.aspx"; or
lvSidebar.LoggedInTemplate.SiteMapDataSource.Start ingNodeUrl

Another thing is that my webpage has 2 SiteMapDataSource1 controls (yes they
have the same name, but they exist in their own LoginView, lvSidebar and
lvMenu).

Any more suggestions?

Jeff

"clickon" <clickon@.discussions.microsoft.comwrote in message
news:258E83E3-C3EC-4948-93FC-E30DC3F811FD@.microsoft.com...

Quote:

Originally Posted by

The LoggedInTemplate property of the LoginView control does not have a
property called SiteMapDataSource which is what is causing the error. If
you
want to prograamatically set the StratingNodeURL property of
SiteMapDataSource1 simply use the following code
>
SiteMapDataSource1.StartingNodeUrl = "Default.aspx";
>
The LoginView has nothing to do with it.
>
"Jeff" wrote:
>

Quote:

Originally Posted by

>hey
>>
>asp.net 2.0
>>
>On my webpage have I placed a LoginView (named lvSidebar). On this
>loginview's loggedInTemplate I placed a menu (mnuSidebar) and the
>datasource
>to the menu is SiteMapDataSource1.
>>
>My Problem is that I cannot access the SiteMapDataSource1 object from the
>code:
>lvSidebar.LoggedInTemplate.SiteMapDataSource.Start ingNodeUrl =
>"Default.aspx";
>don't compile:
>System.Web.UI.ITemplate' does not contain a definition for
>'SiteMapDataSource1'
>>
>Any ideas what I should do to solve this?
>>
>Jeff
>>
>>
>>


If you want to access a control that is within another control you need to
use the following syntax:

ParentControl.FindControl("ChildControlID")

This will return a reference to the child control. You will also need to
cast it to the correct type.

In your case you would use something like the below C# code

SiteMapDataSource MySiteMapDataSource = (SiteMapDataSource)
lvSidebar.FindControl("SiteMapDataSource1");
MySiteMapDataSource.StartingNodeUrl = "Default.aspx";

"Jeff" wrote:

Quote:

Originally Posted by

hmm when I in the code start to type "SiteM" the SiteMapDataSource1 isn't
shown in the type-ahead list... this happens if I try to access the
SiteMapDataSource like this SiteMapDataSource1.StartingNodeUrl =
"Default.aspx"; or
lvSidebar.LoggedInTemplate.SiteMapDataSource.Start ingNodeUrl
>
Another thing is that my webpage has 2 SiteMapDataSource1 controls (yes they
have the same name, but they exist in their own LoginView, lvSidebar and
lvMenu).
>
Any more suggestions?
>
Jeff
>
>
>
"clickon" <clickon@.discussions.microsoft.comwrote in message
news:258E83E3-C3EC-4948-93FC-E30DC3F811FD@.microsoft.com...

Quote:

Originally Posted by

The LoggedInTemplate property of the LoginView control does not have a
property called SiteMapDataSource which is what is causing the error. If
you
want to prograamatically set the StratingNodeURL property of
SiteMapDataSource1 simply use the following code

SiteMapDataSource1.StartingNodeUrl = "Default.aspx";

The LoginView has nothing to do with it.

"Jeff" wrote:

Quote:

Originally Posted by

hey
>
asp.net 2.0
>
On my webpage have I placed a LoginView (named lvSidebar). On this
loginview's loggedInTemplate I placed a menu (mnuSidebar) and the
datasource
to the menu is SiteMapDataSource1.
>
My Problem is that I cannot access the SiteMapDataSource1 object from the
code:
lvSidebar.LoggedInTemplate.SiteMapDataSource.Start ingNodeUrl =
"Default.aspx";
don't compile:
System.Web.UI.ITemplate' does not contain a definition for
'SiteMapDataSource1'
>
Any ideas what I should do to solve this?
>
Jeff
>
>
>


>
>
>


thanks, it solved my problem

"clickon" <clickon@.discussions.microsoft.comwrote in message
news:97D21DB6-ED33-4E35-9702-0F9FB54C24ED@.microsoft.com...

Quote:

Originally Posted by

If you want to access a control that is within another control you need to
use the following syntax:
>
ParentControl.FindControl("ChildControlID")
>
This will return a reference to the child control. You will also need to
cast it to the correct type.
>
In your case you would use something like the below C# code
>
SiteMapDataSource MySiteMapDataSource = (SiteMapDataSource)
lvSidebar.FindControl("SiteMapDataSource1");
MySiteMapDataSource.StartingNodeUrl = "Default.aspx";
>
>
"Jeff" wrote:
>

Quote:

Originally Posted by

>hmm when I in the code start to type "SiteM" the SiteMapDataSource1 isn't
>shown in the type-ahead list... this happens if I try to access the
>SiteMapDataSource like this SiteMapDataSource1.StartingNodeUrl =
>"Default.aspx"; or
>lvSidebar.LoggedInTemplate.SiteMapDataSource.Start ingNodeUrl
>>
>Another thing is that my webpage has 2 SiteMapDataSource1 controls (yes
>they
>have the same name, but they exist in their own LoginView, lvSidebar and
>lvMenu).
>>
>Any more suggestions?
>>
>Jeff
>>
>>
>>
>"clickon" <clickon@.discussions.microsoft.comwrote in message
>news:258E83E3-C3EC-4948-93FC-E30DC3F811FD@.microsoft.com...

Quote:

Originally Posted by

The LoggedInTemplate property of the LoginView control does not have a
property called SiteMapDataSource which is what is causing the error.
If
you
want to prograamatically set the StratingNodeURL property of
SiteMapDataSource1 simply use the following code
>
SiteMapDataSource1.StartingNodeUrl = "Default.aspx";
>
The LoginView has nothing to do with it.
>
"Jeff" wrote:
>
>hey
>>
>asp.net 2.0
>>
>On my webpage have I placed a LoginView (named lvSidebar). On this
>loginview's loggedInTemplate I placed a menu (mnuSidebar) and the
>datasource
>to the menu is SiteMapDataSource1.
>>
>My Problem is that I cannot access the SiteMapDataSource1 object from
>the
>code:
>lvSidebar.LoggedInTemplate.SiteMapDataSource.Start ingNodeUrl =
>"Default.aspx";
>don't compile:
>System.Web.UI.ITemplate' does not contain a definition for
>'SiteMapDataSource1'
>>
>Any ideas what I should do to solve this?
>>
>Jeff
>>
>>
>>


>>
>>
>>

Saturday, March 24, 2012

newbie: repeater problem

hey

asp.net 2.0

I have a web page with a repeater control... In the ItemTemplate of the
repeater control have I placed a ImageMap. So every row in the repeater
control has a ImageMap. (it's the same ImageMap, but it's repeated to every
line in the repeater control)

A ImageMap has a "click" event. How can the click event know which ImageMap
in the repeater control has been clicked? I need to know this, because I
want to retrieve some data from that row and embedd it into a querystring

Any suggestions?

JeffJeff,

First parameter passed to the event handler is the source of the event. You
can set a breakpoint inside the handler and watch what is being passed
there.
--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]

"Jeff" <it_consultant1@.hotmail.com.NOSPAMwrote in message
news:eqWqOkSsGHA.4472@.TK2MSFTNGP02.phx.gbl...

Quote:

Originally Posted by

hey
>
asp.net 2.0
>
I have a web page with a repeater control... In the ItemTemplate of the
repeater control have I placed a ImageMap. So every row in the repeater
control has a ImageMap. (it's the same ImageMap, but it's repeated to
every line in the repeater control)
>
A ImageMap has a "click" event. How can the click event know which
ImageMap in the repeater control has been clicked? I need to know this,
because I want to retrieve some data from that row and embedd it into a
querystring
>
Any suggestions?
>
Jeff
>

newbie: webpart & Untitled

OS: XP pro
IDE VS 2005 .NET
ASP.NET 2.0

I've created a very simple asp.net page that contains only 1 WebPartZone. In
this WebPartZone have I placed a Calendar control (webpart)...

The top of this calendar have the text "Untitled"...

my PROBLEM is that I don't want the text "Untitled" to be displayed, but I'm
not sure how to remove it... Isn't there a setting for this on the webpart
(calendar)?..

Please help me with this!

Best Regards!

JeffJeff

Just Add the Title property to the asp:Calendar Control manually in XHTML

<asp:Calendar ID="Calendar1" runat="server" BackColor="White"
BorderColor="#999999"

CellPadding="4" DayNameFormat="Shortest" Font-Names="Verdana"
Font-Size="8pt"

ForeColor="Black" Height="53px" Width="1px" Title=" "
Notice that Title = "space" not empty

SA

"Jeff" <it_consultant1@.hotmail.com.NOSPAM> wrote in message
news:eTkWZaFdGHA.3388@.TK2MSFTNGP05.phx.gbl...
> OS: XP pro
> IDE VS 2005 .NET
> ASP.NET 2.0
> I've created a very simple asp.net page that contains only 1 WebPartZone.
> In this WebPartZone have I placed a Calendar control (webpart)...
> The top of this calendar have the text "Untitled"...
> my PROBLEM is that I don't want the text "Untitled" to be displayed, but
> I'm not sure how to remove it... Isn't there a setting for this on the
> webpart (calendar)?..
> Please help me with this!
> Best Regards!
> Jeff
Jeff,

You are in luck if the asp:Calendar Control is the second item in the
WebPartZone.
However the First control will still have the same problem
You might have to create your own derived control and implement some
Interface like Implement IWebPart ?

example: that works
<web part zone >
<textbox...> ... Does not work
<calendar... Title=" " >... Works
</web part zone
example: that works only for TextBox
<web part zone >
<calendar... Title=" " >... Works
<textbox...Title=" " > ... Does not work
</web part zone
??

SA

"MSDN" <sql_agentman@.hotmail.com> wrote in message
news:%23pqir6FdGHA.3712@.TK2MSFTNGP03.phx.gbl...
> Jeff
> Just Add the Title property to the asp:Calendar Control manually in XHTML
> <asp:Calendar ID="Calendar1" runat="server" BackColor="White"
> BorderColor="#999999"
> CellPadding="4" DayNameFormat="Shortest" Font-Names="Verdana"
> Font-Size="8pt"
> ForeColor="Black" Height="53px" Width="1px" Title=" ">
> Notice that Title = "space" not empty
> SA
> "Jeff" <it_consultant1@.hotmail.com.NOSPAM> wrote in message
> news:eTkWZaFdGHA.3388@.TK2MSFTNGP05.phx.gbl...
>> OS: XP pro
>> IDE VS 2005 .NET
>> ASP.NET 2.0
>>
>> I've created a very simple asp.net page that contains only 1 WebPartZone.
>> In this WebPartZone have I placed a Calendar control (webpart)...
>>
>> The top of this calendar have the text "Untitled"...
>>
>> my PROBLEM is that I don't want the text "Untitled" to be displayed, but
>> I'm not sure how to remove it... Isn't there a setting for this on the
>> webpart (calendar)?..
>>
>> Please help me with this!
>>
>> Best Regards!
>>
>> Jeff
>>
Sorry,

example: that works only for TextBox
<web part zone >
<calendar... Title=" " >... Does not work
<textbox...Title=" " > ... Works
</web part zone
SA

"MSDN" <sql_agentman@.hotmail.com> wrote in message
news:ONYbyFGdGHA.4148@.TK2MSFTNGP05.phx.gbl...
> Jeff,
> You are in luck if the asp:Calendar Control is the second item in the
> WebPartZone.
> However the First control will still have the same problem
> You might have to create your own derived control and implement some
> Interface like Implement IWebPart ?
> example: that works
> <web part zone >
> <textbox...> ... Does not work
> <calendar... Title=" " >... Works
> </web part zone>
> example: that works only for TextBox
> <web part zone >
> <calendar... Title=" " >... Works
> <textbox...Title=" " > ... Does not work
> </web part zone>
> ??
> SA
>
> "MSDN" <sql_agentman@.hotmail.com> wrote in message
> news:%23pqir6FdGHA.3712@.TK2MSFTNGP03.phx.gbl...
>> Jeff
>>
>> Just Add the Title property to the asp:Calendar Control manually in XHTML
>>
>> <asp:Calendar ID="Calendar1" runat="server" BackColor="White"
>> BorderColor="#999999"
>>
>> CellPadding="4" DayNameFormat="Shortest" Font-Names="Verdana"
>> Font-Size="8pt"
>>
>> ForeColor="Black" Height="53px" Width="1px" Title=" ">
>>
>> Notice that Title = "space" not empty
>>
>> SA
>>
>> "Jeff" <it_consultant1@.hotmail.com.NOSPAM> wrote in message
>> news:eTkWZaFdGHA.3388@.TK2MSFTNGP05.phx.gbl...
>>> OS: XP pro
>>> IDE VS 2005 .NET
>>> ASP.NET 2.0
>>>
>>> I've created a very simple asp.net page that contains only 1
>>> WebPartZone. In this WebPartZone have I placed a Calendar control
>>> (webpart)...
>>>
>>> The top of this calendar have the text "Untitled"...
>>>
>>> my PROBLEM is that I don't want the text "Untitled" to be displayed, but
>>> I'm not sure how to remove it... Isn't there a setting for this on the
>>> webpart (calendar)?..
>>>
>>> Please help me with this!
>>>
>>> Best Regards!
>>>
>>> Jeff
>>>
>>
>>
Yeah, <calendar... Title=" " >... Does not work... when I in Visual Studio
2005 start typing Title the typeahead doesn't show the property Title, it
shows many other properties about Title (like TitleFormat etc, but no
Title)... And the Title property I set in by myself gets a green line under
itself... This tell me that this isn't the correct way to do this.. OR it is
but I don't see it yet... I'm a newbie

But the way I've seen the multimedia presentation about creating Web Parts
at
http://msdn.microsoft.com/asp.net/l...aspx#Multimedia
and in that presentation they don't add the Title property... still they
get no "Untitled" in the header of the calendar...

The header in my calendar contains the word "Untitled" and a sign I can
click on and open the web part menu (Minimize, Close)

Is the Title property the only solution here or are there some other
solutions also?

Jeff

"MSDN" <sql_agentman@.hotmail.com> wrote in message
news:%23n0xxHGdGHA.4108@.TK2MSFTNGP03.phx.gbl...
> Sorry,
> example: that works only for TextBox
> <web part zone >
> <calendar... Title=" " >... Does not work
> <textbox...Title=" " > ... Works
> </web part zone>
> SA
> "MSDN" <sql_agentman@.hotmail.com> wrote in message
> news:ONYbyFGdGHA.4148@.TK2MSFTNGP05.phx.gbl...
>> Jeff,
>>
>> You are in luck if the asp:Calendar Control is the second item in the
>> WebPartZone.
>> However the First control will still have the same problem
>> You might have to create your own derived control and implement some
>> Interface like Implement IWebPart ?
>>
>> example: that works
>> <web part zone >
>> <textbox...> ... Does not work
>> <calendar... Title=" " >... Works
>> </web part zone>
>>
>> example: that works only for TextBox
>> <web part zone >
>> <calendar... Title=" " >... Works
>> <textbox...Title=" " > ... Does not work
>> </web part zone>
>>
>> ??
>>
>> SA
>>
>>
>> "MSDN" <sql_agentman@.hotmail.com> wrote in message
>> news:%23pqir6FdGHA.3712@.TK2MSFTNGP03.phx.gbl...
>>> Jeff
>>>
>>> Just Add the Title property to the asp:Calendar Control manually in
>>> XHTML
>>>
>>> <asp:Calendar ID="Calendar1" runat="server" BackColor="White"
>>> BorderColor="#999999"
>>>
>>> CellPadding="4" DayNameFormat="Shortest" Font-Names="Verdana"
>>> Font-Size="8pt"
>>>
>>> ForeColor="Black" Height="53px" Width="1px" Title=" ">
>>>
>>> Notice that Title = "space" not empty
>>>
>>> SA
>>>
>>> "Jeff" <it_consultant1@.hotmail.com.NOSPAM> wrote in message
>>> news:eTkWZaFdGHA.3388@.TK2MSFTNGP05.phx.gbl...
>>>> OS: XP pro
>>>> IDE VS 2005 .NET
>>>> ASP.NET 2.0
>>>>
>>>> I've created a very simple asp.net page that contains only 1
>>>> WebPartZone. In this WebPartZone have I placed a Calendar control
>>>> (webpart)...
>>>>
>>>> The top of this calendar have the text "Untitled"...
>>>>
>>>> my PROBLEM is that I don't want the text "Untitled" to be displayed,
>>>> but I'm not sure how to remove it... Isn't there a setting for this on
>>>> the webpart (calendar)?..
>>>>
>>>> Please help me with this!
>>>>
>>>> Best Regards!
>>>>
>>>> Jeff
>>>>
>>>
>>>
>>
>>
I was able to get rid of the Title "Untitled" when I added a TextBox before
the Calendar Control and Added the Title= " "
Even though the typeahead complained about it.

So it is a very strange behavior that it works if it is the second control
in the list.

I know this is not the right way.

SA

"Jeff" <it_consultant1@.hotmail.com.NOSPAM> wrote in message
news:uk9Ep3GdGHA.1208@.TK2MSFTNGP04.phx.gbl...
> Yeah, <calendar... Title=" " >... Does not work... when I in Visual
> Studio 2005 start typing Title the typeahead doesn't show the property
> Title, it shows many other properties about Title (like TitleFormat etc,
> but no Title)... And the Title property I set in by myself gets a green
> line under itself... This tell me that this isn't the correct way to do
> this.. OR it is but I don't see it yet... I'm a newbie
> But the way I've seen the multimedia presentation about creating Web Parts
> at
> http://msdn.microsoft.com/asp.net/l...aspx#Multimedia
> and in that presentation they don't add the Title property... still they
> get no "Untitled" in the header of the calendar...
> The header in my calendar contains the word "Untitled" and a sign I can
> click on and open the web part menu (Minimize, Close)
> Is the Title property the only solution here or are there some other
> solutions also?
> Jeff
>
>
> "MSDN" <sql_agentman@.hotmail.com> wrote in message
> news:%23n0xxHGdGHA.4108@.TK2MSFTNGP03.phx.gbl...
>> Sorry,
>>
>> example: that works only for TextBox
>> <web part zone >
>> <calendar... Title=" " >... Does not work
>> <textbox...Title=" " > ... Works
>> </web part zone>
>>
>> SA
>>
>> "MSDN" <sql_agentman@.hotmail.com> wrote in message
>> news:ONYbyFGdGHA.4148@.TK2MSFTNGP05.phx.gbl...
>>> Jeff,
>>>
>>> You are in luck if the asp:Calendar Control is the second item in the
>>> WebPartZone.
>>> However the First control will still have the same problem
>>> You might have to create your own derived control and implement some
>>> Interface like Implement IWebPart ?
>>>
>>> example: that works
>>> <web part zone >
>>> <textbox...> ... Does not work
>>> <calendar... Title=" " >... Works
>>> </web part zone>
>>>
>>> example: that works only for TextBox
>>> <web part zone >
>>> <calendar... Title=" " >... Works
>>> <textbox...Title=" " > ... Does not work
>>> </web part zone>
>>>
>>> ??
>>>
>>> SA
>>>
>>>
>>> "MSDN" <sql_agentman@.hotmail.com> wrote in message
>>> news:%23pqir6FdGHA.3712@.TK2MSFTNGP03.phx.gbl...
>>>> Jeff
>>>>
>>>> Just Add the Title property to the asp:Calendar Control manually in
>>>> XHTML
>>>>
>>>> <asp:Calendar ID="Calendar1" runat="server" BackColor="White"
>>>> BorderColor="#999999"
>>>>
>>>> CellPadding="4" DayNameFormat="Shortest" Font-Names="Verdana"
>>>> Font-Size="8pt"
>>>>
>>>> ForeColor="Black" Height="53px" Width="1px" Title=" ">
>>>>
>>>> Notice that Title = "space" not empty
>>>>
>>>> SA
>>>>
>>>> "Jeff" <it_consultant1@.hotmail.com.NOSPAM> wrote in message
>>>> news:eTkWZaFdGHA.3388@.TK2MSFTNGP05.phx.gbl...
>>>>> OS: XP pro
>>>>> IDE VS 2005 .NET
>>>>> ASP.NET 2.0
>>>>>
>>>>> I've created a very simple asp.net page that contains only 1
>>>>> WebPartZone. In this WebPartZone have I placed a Calendar control
>>>>> (webpart)...
>>>>>
>>>>> The top of this calendar have the text "Untitled"...
>>>>>
>>>>> my PROBLEM is that I don't want the text "Untitled" to be displayed,
>>>>> but I'm not sure how to remove it... Isn't there a setting for this on
>>>>> the webpart (calendar)?..
>>>>>
>>>>> Please help me with this!
>>>>>
>>>>> Best Regards!
>>>>>
>>>>> Jeff
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>

newbie: webpart & Untitled

OS: XP pro
IDE VS 2005 .NET
ASP.NET 2.0
I've created a very simple asp.net page that contains only 1 WebPartZone. In
this WebPartZone have I placed a Calendar control (webpart)...
The top of this calendar have the text "Untitled"...
my PROBLEM is that I don't want the text "Untitled" to be displayed, but I'm
not sure how to remove it... Isn't there a setting for this on the webpart
(calendar)?..
Please help me with this!
Best Regards!
JeffJeff
Just Add the Title property to the asp:Calendar Control manually in XHTML
<asp:Calendar ID="Calendar1" runat="server" BackColor="White"
BorderColor="#999999"
CellPadding="4" DayNameFormat="Shortest" Font-Names="Verdana"
Font-Size="8pt"
ForeColor="Black" Height="53px" Width="1px" Title=" ">
Notice that Title = "space" not empty
SA
"Jeff" <it_consultant1@.hotmail.com.NOSPAM> wrote in message
news:eTkWZaFdGHA.3388@.TK2MSFTNGP05.phx.gbl...
> OS: XP pro
> IDE VS 2005 .NET
> ASP.NET 2.0
> I've created a very simple asp.net page that contains only 1 WebPartZone.
> In this WebPartZone have I placed a Calendar control (webpart)...
> The top of this calendar have the text "Untitled"...
> my PROBLEM is that I don't want the text "Untitled" to be displayed, but
> I'm not sure how to remove it... Isn't there a setting for this on the
> webpart (calendar)?..
> Please help me with this!
> Best Regards!
> Jeff
>
Jeff,
You are in luck if the asp:Calendar Control is the second item in the
WebPartZone.
However the First control will still have the same problem
You might have to create your own derived control and implement some
Interface like Implement IWebPart ?
example: that works
<web part zone >
<textbox...> ... Does not work
<calendar... Title=" " >... Works
</web part zone>
example: that works only for TextBox
<web part zone >
<calendar... Title=" " >... Works
<textbox...Title=" " > ... Does not work
</web part zone>
'
SA
"MSDN" <sql_agentman@.hotmail.com> wrote in message
news:%23pqir6FdGHA.3712@.TK2MSFTNGP03.phx.gbl...
> Jeff
> Just Add the Title property to the asp:Calendar Control manually in XHTML
> <asp:Calendar ID="Calendar1" runat="server" BackColor="White"
> BorderColor="#999999"
> CellPadding="4" DayNameFormat="Shortest" Font-Names="Verdana"
> Font-Size="8pt"
> ForeColor="Black" Height="53px" Width="1px" Title=" ">
> Notice that Title = "space" not empty
> SA
> "Jeff" <it_consultant1@.hotmail.com.NOSPAM> wrote in message
> news:eTkWZaFdGHA.3388@.TK2MSFTNGP05.phx.gbl...
>
Sorry,
example: that works only for TextBox
<web part zone >
<calendar... Title=" " >... Does not work
<textbox...Title=" " > ... Works
</web part zone>
SA
"MSDN" <sql_agentman@.hotmail.com> wrote in message
news:ONYbyFGdGHA.4148@.TK2MSFTNGP05.phx.gbl...
> Jeff,
> You are in luck if the asp:Calendar Control is the second item in the
> WebPartZone.
> However the First control will still have the same problem
> You might have to create your own derived control and implement some
> Interface like Implement IWebPart ?
> example: that works
> <web part zone >
> <textbox...> ... Does not work
> <calendar... Title=" " >... Works
> </web part zone>
> example: that works only for TextBox
> <web part zone >
> <calendar... Title=" " >... Works
> <textbox...Title=" " > ... Does not work
> </web part zone>
> '
> SA
>
> "MSDN" <sql_agentman@.hotmail.com> wrote in message
> news:%23pqir6FdGHA.3712@.TK2MSFTNGP03.phx.gbl...
>
Yeah, <calendar... Title=" " >... Does not work... when I in Visual Studio
2005 start typing Title the typeahead doesn't show the property Title, it
shows many other properties about Title (like TitleFormat etc, but no
Title)... And the Title property I set in by myself gets a green line under
itself... This tell me that this isn't the correct way to do this.. OR it is
but I don't see it yet... I'm a newbie
But the way I've seen the multimedia presentation about creating Web Parts
at
timedia" target="_blank">http://msdn.microsoft.com/asp.net/l...
timedia
and in that presentation they don't add the Title property... still they
get no "Untitled" in the header of the calendar...
The header in my calendar contains the word "Untitled" and a sign I can
click on and open the web part menu (Minimize, Close)
Is the Title property the only solution here or are there some other
solutions also?
Jeff
"MSDN" <sql_agentman@.hotmail.com> wrote in message
news:%23n0xxHGdGHA.4108@.TK2MSFTNGP03.phx.gbl...
> Sorry,
> example: that works only for TextBox
> <web part zone >
> <calendar... Title=" " >... Does not work
> <textbox...Title=" " > ... Works
> </web part zone>
> SA
> "MSDN" <sql_agentman@.hotmail.com> wrote in message
> news:ONYbyFGdGHA.4148@.TK2MSFTNGP05.phx.gbl...
>
I was able to get rid of the Title "Untitled" when I added a TextBox before
the Calendar Control and Added the Title= " "
Even though the typeahead complained about it.
So it is a very strange behavior that it works if it is the second control
in the list.
I know this is not the right way.
SA
"Jeff" <it_consultant1@.hotmail.com.NOSPAM> wrote in message
news:uk9Ep3GdGHA.1208@.TK2MSFTNGP04.phx.gbl...
> Yeah, <calendar... Title=" " >... Does not work... when I in Visual
> Studio 2005 start typing Title the typeahead doesn't show the property
> Title, it shows many other properties about Title (like TitleFormat etc,
> but no Title)... And the Title property I set in by myself gets a green
> line under itself... This tell me that this isn't the correct way to do
> this.. OR it is but I don't see it yet... I'm a newbie
> But the way I've seen the multimedia presentation about creating Web Parts
> at
> ultimedia" target="_blank">http://msdn.microsoft.com/asp.net/l...r />
ultimedia
> and in that presentation they don't add the Title property... still they
> get no "Untitled" in the header of the calendar...
> The header in my calendar contains the word "Untitled" and a sign I can
> click on and open the web part menu (Minimize, Close)
> Is the Title property the only solution here or are there some other
> solutions also?
> Jeff
>
>
> "MSDN" <sql_agentman@.hotmail.com> wrote in message
> news:%23n0xxHGdGHA.4108@.TK2MSFTNGP03.phx.gbl...
>