Showing posts with label create. Show all posts
Showing posts with label create. Show all posts

Saturday, March 31, 2012

Theming custom created WebParts in ASP.NET 2.0

I have created my own WebPart using code, it is not derived from a UserControl.
Inside this WebPart I create a Calendar Control and add it to the WebParts
Control collection.

Now I want to apply a theme to this Calendar that is inside my WebPart. How
do I do that? I have created a theme and added a definition for a calendar.
The theme is applied to a calendar that is not inside the WebPart, but it is
not applied to the one inside.Hi c_kimbell,

Welcome to MSDN newsgroup.
As for the custom WebPart with a Calendar inside it, is it possible that we
define a public property on the Custom webPart which represent the Theme of
the inside Calendar control? Then, we any one assign a new value for this
property, the nested calendar's Theme value will be changed accordingly.

In addition, for .NET 2.0 and VS.NET whidbey beta issues, I suggest you
also try posting in the following web forum:

http://forums.microsoft.com/msdn/

since there are some other experienced members who may have some good ideas.

Thank you,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Thanks for suggesting the ASP.NET forums, I have posted there now as well.

Here are some more details on what I have tried;
1. On the webpart I have exposed the Calendar as a property with the name
FromCalendar.
2. I have added the following to the .skin file

<%@. Register Assembly="IMK.WebParts" Namespace="IMK.WebParts"
TagPrefix="IMK" %
<IMK:IMKDateWebPart runat="server">
<FromCalendar BackColor="#FFFFCC">
<SelectedDayStyle BackColor="#CCCCFF" Font-Bold="True" />
<TitleStyle BackColor="#990000" Font-Bold="True" Font-Size="9pt"
ForeColor="#FFFFCC" />
</FromCalendar>
</IMK:IMKDateWebPart
Am I on the right track?

"Steven Cheng[MSFT]" wrote:

> Hi c_kimbell,
> Welcome to MSDN newsgroup.
> As for the custom WebPart with a Calendar inside it, is it possible that we
> define a public property on the Custom webPart which represent the Theme of
> the inside Calendar control? Then, we any one assign a new value for this
> property, the nested calendar's Theme value will be changed accordingly.
> In addition, for .NET 2.0 and VS.NET whidbey beta issues, I suggest you
> also try posting in the following web forum:
> http://forums.microsoft.com/msdn/
> since there are some other experienced members who may have some good ideas.
> Thank you,
> Steven Cheng
> Microsoft Online Support
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>
Hi c_kimbell,

Thanks for your followup.
As you mentioned that
=================

1. On the webpart I have exposed the Calendar as a property with the name
FromCalendar.
2. I have added the following to the .skin file

<%@. Register Assembly="IMK.WebParts" Namespace="IMK.WebParts"
TagPrefix="IMK" %
<IMK:IMKDateWebPart runat="server">
<FromCalendar BackColor="#FFFFCC">
<SelectedDayStyle BackColor="#CCCCFF" Font-Bold="True" />
<TitleStyle BackColor="#990000" Font-Bold="True" Font-Size="9pt"
ForeColor="#FFFFCC" />
</FromCalendar>
</IMK:IMKDateWebPart>
=======================

I'm not sure whether this will cause error since I haven't tested it.
However, IMO, I'd prefer expose a single string property on my custom web
control which represent the nested child calendar's Theme(or
stylesheettheme). Since the ASP.NET 2.0 's Theme are mostly for those
simple type properteis (such as string, int), I think just exposing a
single string type property will be much better). You can do the actual
Theme adjusting in the Property's Setter method.
How do you think ?

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
I get your point about using simple strings. One thing though, say you expose
a color, this can be specified using a name like 'Red' or it may be specified
using hex notation, like '#FFCC66'. The controls require a Color object, how
does one map between the different representations and the Color object. Are
there any utility classes I can use?

I have now done a bit more experimenting. If I declaratively add the webpart
to a webpartzone, then the theme is correctly applied. If I add the same
webpart to the zone using a catalog, the style is not applied. The catalog
I'm adding from is a custom created one, not one of the predefined types.

Any suggestions?

"Steven Cheng[MSFT]" wrote:

> Hi c_kimbell,
> Thanks for your followup.
> As you mentioned that
> =================
>
> 1. On the webpart I have exposed the Calendar as a property with the name
> FromCalendar.
> 2. I have added the following to the .skin file
> <%@. Register Assembly="IMK.WebParts" Namespace="IMK.WebParts"
> TagPrefix="IMK" %>
> <IMK:IMKDateWebPart runat="server">
> <FromCalendar BackColor="#FFFFCC">
> <SelectedDayStyle BackColor="#CCCCFF" Font-Bold="True" />
> <TitleStyle BackColor="#990000" Font-Bold="True" Font-Size="9pt"
> ForeColor="#FFFFCC" />
> </FromCalendar>
> </IMK:IMKDateWebPart>
> =======================
> I'm not sure whether this will cause error since I haven't tested it.
> However, IMO, I'd prefer expose a single string property on my custom web
> control which represent the nested child calendar's Theme(or
> stylesheettheme). Since the ASP.NET 2.0 's Theme are mostly for those
> simple type properteis (such as string, int), I think just exposing a
> single string type property will be much better). You can do the actual
> Theme adjusting in the Property's Setter method.
> How do you think ?
> Steven Cheng
> Microsoft Online Support
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>
Hi c_kimbell,

For those Color field, the ASP.NET runtime's ControlParser will help parse
the property value into the correct object instance. And for Color, there
is the ColorTranslator class which can be used from convert string color
value to System.Drawing.Color instance. For example:

string htmlColor = "Blue";
//or string htmlColor = "#3344ee";
// Translate htmlColor to a GDI+ Color structure.
Color myColor = ColorTranslator.FromHtml(htmlColor);

For the applying theme for custom created catalog's webpart, I'm not sure
whether this is ok. As far as I know, since the ASP.NET2.0 runtime apply
theme for controls in the page's PreInit event, so any change on Theme
after that event (for example in Page_load ..., post back event) will not
work in the first loading...

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

There can be only one page directive

I opened an asp page in VS.net 2002 and then saved it as an aspx page,
"mypage.aspx".

I was prompted if I wanted to create the class file for the page and clicked
yes.

Now when I try and open the page I get the error message :

"There can be only one 'page' directive."

I am sick of these problems. I have had a look in the folder and there is
only one "mypage.aspx.vb" file.

Whats happening ?A Page and a PageDirective are two different things. In your aspx page, make sure at the top their is one Page tag (directive).
Looks something like:
<@.Page ...>
and is at the top of the page.

There can be only one page directive

I opened an asp page in VS.net 2002 and then saved it as an aspx page,
"mypage.aspx".

I was prompted if I wanted to create the class file for the page and clicked
yes.

Now when I try and open the page I get the error message :

"There can be only one 'page' directive."

I am sick of these problems. I have had a look in the folder and there is
only one "mypage.aspx.vb" file.

Whats happening ?I haven't seen this error personally, but, in each .aspx file there can only
be one line that starts:

<%@. Page ... %
where you set things like the page language, caching directives etc. Perhaps
open the file in Notepad and check to see if you have more than one such
line.

Cheers
Ken

"Poppy" <paul.diamond@.NOSPAMthemedialounge.com> wrote in message
news:%23zo42FhnDHA.688@.TK2MSFTNGP10.phx.gbl...
: I opened an asp page in VS.net 2002 and then saved it as an aspx page,
: "mypage.aspx".
:
: I was prompted if I wanted to create the class file for the page and
clicked
: yes.
:
: Now when I try and open the page I get the error message :
:
: "There can be only one 'page' directive."
:
: I am sick of these problems. I have had a look in the folder and there is
: only one "mypage.aspx.vb" file.
:
: Whats happening ?
:
:

Wednesday, March 28, 2012

Third-Part Cookies blocked by IE

Hi guys,

we are developing a webapplication which let user create their own
virtual website on their real domain.
in other word, users could create their virtual web-sites by this
application and app will recognize each website
by its domain.

we needed a passport system (like .Net Passport) to identify users in
all of these virtual web-sites (& various domains)
we build this system upon third-party cookies by making request from
each site to passportserver using import script tags.

now the problem is : IE 6.0, 7.0 won't let the web-applciation to
create thirdparty cookies by default and users have to add passport
server domain to TrustedZone,i heared that p3p could solve this
problem but id don't know how !? should we register our domains in
some database ? is it free ?

Thanks in advanceHi,

We only have this problem with IIS 6.0.

We configure the p3p.xml and the p3pconfig.xml correctly in the root
domain of our server.
We configured the P3P in the application begin request in
global.asax :
Context.Response.AddHeader("P3P", @."CP=""CAO PSA OUR""");

But the problem persist we have no solution, please tell me if you
find one.

Thanks,
Johnny

On 2 fv, 19:52, "Khafancoder" <khafanco...@.gmail.comwrote:

Quote:

Originally Posted by

Hi guys,
>
we are developing a webapplication which let user create their own
virtual website on their real domain.
in other word, users could create their virtual web-sites by this
application and app will recognize each website
by its domain.
>
we needed a passport system (like .Net Passport) to identify users in
all of these virtual web-sites (& various domains)
we build this system upon third-party cookies by making request from
each site to passportserver using import script tags.
>
now the problem is : IE 6.0, 7.0 won't let the web-applciation to
create thirdparty cookies by default and users have to add passport
server domain to TrustedZone,i heared that p3p could solve this
problem but id don't know how !? should we register our domains in
some database ? is it free ?
>
Thanks in advance


Hi Everybody,

The HTTP HEADERS were remove by IIS 6.0.

To solve the problem go to :
1) Properties on the web root
2) Click HTTP HEADERS tab
3) Custom Headers panel
4) Click Add...
Key : P3P
Value : CP="CAO PSA OUR"

Hope that will help some one.
Johnny

On 26 mar, 16:45, "JohnnyKnoblauch" <jknobla...@.ttinteractive.com>
wrote:

Quote:

Originally Posted by

Hi,
>
We only have this problem with IIS 6.0.
>
We configure the p3p.xml and the p3pconfig.xml correctly in the root
domain of our server.
We configured the P3P in the application begin request in
global.asax :
Context.Response.AddHeader("P3P", @."CP=""CAO PSA OUR""");
>
But the problem persist we have no solution, please tell me if you
find one.
>
Thanks,
Johnny
>
On 2 fv, 19:52, "Khafancoder" <khafanco...@.gmail.comwrote:
>
>
>

Quote:

Originally Posted by

Hi guys,


>

Quote:

Originally Posted by

we are developing a webapplication which let user create their own
virtual website on their real domain.
in other word, users could create their virtual web-sites by this
application and app will recognize each website
by its domain.


>

Quote:

Originally Posted by

we needed a passport system (like .Net Passport) to identify users in
all of these virtual web-sites (& various domains)
we build this system upon third-party cookies by making request from
each site to passportserver using import script tags.


>

Quote:

Originally Posted by

now the problem is : IE 6.0, 7.0 won't let the web-applciation to
create thirdparty cookies by default and users have to add passport
server domain to TrustedZone,i heared that p3p could solve this
problem but id don't know how !? should we register our domains in
some database ? is it free ?


>

Quote:

Originally Posted by

Thanks in advance- Masquer le texte des messages prcdents -


>
- Afficher le texte des messages prcdents -


Better, just look at this url : http://support.microsoft.com/kb/324013/en-us
On 27 mar, 15:38, "JohnnyKnoblauch" <jknobla...@.ttinteractive.com>
wrote:

Quote:

Originally Posted by

Hi Everybody,
>
The HTTP HEADERS were remove by IIS 6.0.
>
To solve the problem go to :
1) Properties on the web root
2) Click HTTP HEADERS tab
3) Custom Headers panel
4) Click Add...
Key : P3P
Value : CP="CAO PSA OUR"
>
Hope that will help some one.
Johnny
>
On 26 mar, 16:45, "JohnnyKnoblauch" <jknobla...@.ttinteractive.com>
wrote:
>
>
>

Quote:

Originally Posted by

Hi,


>

Quote:

Originally Posted by

We only have this problem with IIS 6.0.


>

Quote:

Originally Posted by

We configure the p3p.xml and the p3pconfig.xml correctly in the root
domain of our server.
We configured the P3P in the application begin request in
global.asax :
Context.Response.AddHeader("P3P", @."CP=""CAO PSA OUR""");


>

Quote:

Originally Posted by

But the problem persist we have no solution, please tell me if you
find one.


>

Quote:

Originally Posted by

Thanks,
Johnny


>

Quote:

Originally Posted by

On 2 fv, 19:52, "Khafancoder" <khafanco...@.gmail.comwrote:


>

Quote:

Originally Posted by

Quote:

Originally Posted by

Hi guys,


>

Quote:

Originally Posted by

Quote:

Originally Posted by

we are developing a webapplication which let user create their own
virtual website on their real domain.
in other word, users could create their virtual web-sites by this
application and app will recognize each website
by its domain.


>

Quote:

Originally Posted by

Quote:

Originally Posted by

we needed a passport system (like .Net Passport) to identify users in
all of these virtual web-sites (& various domains)
we build this system upon third-party cookies by making request from
each site to passportserver using import script tags.


>

Quote:

Originally Posted by

Quote:

Originally Posted by

now the problem is : IE 6.0, 7.0 won't let the web-applciation to
create thirdparty cookies by default and users have to add passport
server domain to TrustedZone,i heared that p3p could solve this
problem but id don't know how !? should we register our domains in
some database ? is it free ?


>

Quote:

Originally Posted by

Quote:

Originally Posted by

Thanks in advance- Masquer le texte des messages prcdents -


>

Quote:

Originally Posted by

- Afficher le texte des messages prcdents -- Masquer le texte desmessages prcdents -


>
- Afficher le texte des messages prcdents -


Well, I am doing it same way you did on my site
Response.AddHeader("P3P", @."CP=\"CAO PSA OUR\"");

And nothing gets removed by IIS. I have IIS 6.0 on Win2003

I was a bit confused when you said it's not working but had no idea why. You
can download tool called fiddler (www.fiddlertool.com/ )
This is Microsoft tool to spy on browser requests and watch what is actually
your server sends to browser (or vise versa)

George

"JohnnyKnoblauch" <jknoblauch@.ttinteractive.comwrote in message
news:1175002706.897361.89220@.b75g2000hsg.googlegro ups.com...
Hi Everybody,

The HTTP HEADERS were remove by IIS 6.0.

To solve the problem go to :
1) Properties on the web root
2) Click HTTP HEADERS tab
3) Custom Headers panel
4) Click Add...
Key : P3P
Value : CP="CAO PSA OUR"

Hope that will help some one.
Johnny

On 26 mar, 16:45, "JohnnyKnoblauch" <jknobla...@.ttinteractive.com>
wrote:

Quote:

Originally Posted by

Hi,
>
We only have this problem with IIS 6.0.
>
We configure the p3p.xml and the p3pconfig.xml correctly in the root
domain of our server.
We configured the P3P in the application begin request in
global.asax :
Context.Response.AddHeader("P3P", @."CP=""CAO PSA OUR""");
>
But the problem persist we have no solution, please tell me if you
find one.
>
Thanks,
Johnny
>
On 2 fv, 19:52, "Khafancoder" <khafanco...@.gmail.comwrote:
>
>
>

Quote:

Originally Posted by

Hi guys,


>

Quote:

Originally Posted by

we are developing a webapplication which let user create their own
virtual website on their real domain.
in other word, users could create their virtual web-sites by this
application and app will recognize each website
by its domain.


>

Quote:

Originally Posted by

we needed a passport system (like .Net Passport) to identify users in
all of these virtual web-sites (& various domains)
we build this system upon third-party cookies by making request from
each site to passportserver using import script tags.


>

Quote:

Originally Posted by

now the problem is : IE 6.0, 7.0 won't let the web-applciation to
create thirdparty cookies by default and users have to add passport
server domain to TrustedZone,i heared that p3p could solve this
problem but id don't know how !? should we register our domains in
some database ? is it free ?


>

Quote:

Originally Posted by

Thanks in advance- Masquer le texte des messages prcdents -


>
- Afficher le texte des messages prcdents -

Third-party charting: bubble & radar?

Hi all,
There are quite a few really nice-looking charting libraries out there
for ASP.NET, but I need to create some less common chart types,
specifically the "bubble" and "radar" charts that Excel offers.
Can anyone recommend a library for this?
Thanks in advance,
JDCHi
I highly recommend the dundas charts ,
why ? because MS use them as part of the reporting services
so you know that this chart can be used "also"
as part of a reporting services report
the two are
http://www.dundas.com/Gallery/Chart...oup=BubblePoint
http://www.dundas.com/Gallery/Chart...gGroup=Circular
http://www.dundas.com/Gallery/Chart...spx?ImgGroup=55
I have used reporting services for years
and the current intergartion into Sharepoint 2007 is just great
not to mention that the controls them selves are easy to configure
Adlai
---
?? ????? ?? ???? ??, ?_? ???? "??"
If my answer helped you please press "Yes" bellow
Adlai Maschiach
http://blogs.microsoft.co.il/blogs/adlaim/
"JDC" wrote:

> Hi all,
> There are quite a few really nice-looking charting libraries out there
> for ASP.NET, but I need to create some less common chart types,
> specifically the "bubble" and "radar" charts that Excel offers.
> Can anyone recommend a library for this?
> Thanks in advance,
> JDC
>
On Mar 5, 12:41 pm, "JDC" <jeremy.d.coll...@.gmail.com> wrote:
> Hi all,
> There are quite a few really nice-looking charting libraries out there
> for ASP.NET, but I need to create some less common chart types,
> specifically the "bubble" and "radar" charts that Excel offers.
> Can anyone recommend a library for this?
> Thanks in advance,
> JDC
For Bubble I'm using telerik's chart:
http://www.telerik.com/demos/aspnet...CS.asp
x
But I'm not sure if they offer "Radar" functionality. This chart
product is not as advanced and feature-full like Dundas, but is much
cheaper.
On Mar 5, 11:09 am, Adlai Maschiach
<AdlaiMaschi...@.discussions.microsoft.com> wrote:
> Hi
> I highly recommend the dundas charts ,
> why ? because MS use them as part of the reporting services
> so you know that this chart can be used "also"
> as part of a reporting services report
> the two arehttp://www.dundas.com/Gallery/Chart/NET/index.aspx?ImgGroup=3D=
BubblePointhttp://www.dundas.com/Gallery/Chart/NET/index.aspx?ImgGroup=3DCi=
rcularhttp://www.dundas.com/Gallery/Chart/NET/index.aspx?ImgGroup=3D55
> I have used reporting services for years
> and the current intergartion into Sharepoint 2007 is just great
> not to mention that the controls them selves are easy to configure
> Adlai
> ---
> =D7=90=D7=9D =D7=AA=D7=A9=D7=95=D7=91=D7=94 =D7=96=D7=95 =D7=A2=D7=96=D7=
=A8=D7=94 =D7=9C=D7=9A, =D7=90=D7=A0=D7=90 =D7=94=D7=A6=D7=91=D7=A2 "=D7=9B=
=D7=9F"
> If my answer helped you please press "Yes" bellow
> Adlai Maschiachhttp://blogs.microsoft.co.il/blogs/adlaim/
> "JDC" wrote:
>
>
>
>
Thanks Adlai and Kevin for the suggestions! The Dundas charts look
really nice, and fortunately both companies have trial versions.
Cheers, JDC

Third-party charting: bubble & radar?

Hi all,

There are quite a few really nice-looking charting libraries out there
for ASP.NET, but I need to create some less common chart types,
specifically the "bubble" and "radar" charts that Excel offers.

Can anyone recommend a library for this?

Thanks in advance,

JDCHi

I highly recommend the dundas charts ,
why ? because MS use them as part of the reporting services
so you know that this chart can be used "also"
as part of a reporting services report

the two are
http://www.dundas.com/Gallery/Chart...oup=BubblePoint
http://www.dundas.com/Gallery/Chart...gGroup=Circular
http://www.dundas.com/Gallery/Chart...spx?ImgGroup=55
I have used reporting services for years
and the current intergartion into Sharepoint 2007 is just great
not to mention that the controls them selves are easy to configure

Adlai

--------------
?? ????? ?? ???? ??, ?*? ???? "??"

If my answer helped you please press "Yes" bellow

Adlai Maschiach
http://blogs.microsoft.co.il/blogs/adlaim/
"JDC" wrote:

Quote:

Originally Posted by

Hi all,
>
There are quite a few really nice-looking charting libraries out there
for ASP.NET, but I need to create some less common chart types,
specifically the "bubble" and "radar" charts that Excel offers.
>
Can anyone recommend a library for this?
>
Thanks in advance,
>
JDC
>
>


On Mar 5, 12:41 pm, "JDC" <jeremy.d.coll...@.gmail.comwrote:

Quote:

Originally Posted by

Hi all,
>
There are quite a few really nice-looking charting libraries out there
for ASP.NET, but I need to create some less common chart types,
specifically the "bubble" and "radar" charts that Excel offers.
>
Can anyone recommend a library for this?
>
Thanks in advance,
>
JDC


For Bubble I'm using telerik's chart:
http://www.telerik.com/demos/aspnet.../DefaultCS.aspx
But I'm not sure if they offer "Radar" functionality. This chart
product is not as advanced and feature-full like Dundas, but is much
cheaper.
On Mar 5, 11:09 am, Adlai Maschiach
<AdlaiMaschi...@.discussions.microsoft.comwrote:

Quote:

Originally Posted by

Hi
>
I highly recommend the dundas charts ,
why ? because MS use them as part of the reporting services
so you know that this chart can be used "also"
as part of a reporting services report
>
the two arehttp://www.dundas.com/Gallery/Chart/NET/index.aspx?ImgGroup=BubblePointhttp://www.dundas.com/Gallery/Chart/NET/index.aspx?ImgGroup=Circularhttp://www.dundas.com/Gallery/Chart/NET/index.aspx?ImgGroup=55
>
I have used reporting services for years
and the current intergartion into Sharepoint 2007 is just great
not to mention that the controls them selves are easy to configure
>
Adlai
>
--------------
?? ????? ?? ???? ??, ?*? ???? "??"
>
If my answer helped you please press "Yes" bellow
>
Adlai Maschiachhttp://blogs.microsoft.co.il/blogs/adlaim/
>
"JDC" wrote:

Quote:

Originally Posted by

Hi all,


>

Quote:

Originally Posted by

There are quite a few really nice-looking charting libraries out there
for ASP.NET, but I need to create some less common chart types,
specifically the "bubble" and "radar" charts that Excel offers.


>

Quote:

Originally Posted by

Can anyone recommend a library for this?


>

Quote:

Originally Posted by

Thanks in advance,


>

Quote:

Originally Posted by

JDC


Thanks Adlai and Kevin for the suggestions! The Dundas charts look
really nice, and fortunately both companies have trial versions.

Cheers, JDC

Third-Part Cookies blocked by IE

Hi guys,
we are developing a webapplication which let user create their own
virtual website on their real domain.
in other word, users could create their virtual web-sites by this
application and app will recognize each website
by its domain.
we needed a passport system (like .Net Passport) to identify users in
all of these virtual web-sites (& various domains)
we build this system upon third-party cookies by making request from
each site to passportserver using import script tags.
now the problem is : IE 6.0, 7.0 won't let the web-applciation to
create thirdparty cookies by default and users have to add passport
server domain to TrustedZone,i heared that p3p could solve this
problem but id don't know how !? should we register our domains in
some database ? is it free ?
Thanks in advanceHi,
We only have this problem with IIS 6.0.
We configure the p3p.xml and the p3pconfig.xml correctly in the root
domain of our server.
We configured the P3P in the application begin request in
global.asax :
Context.Response.AddHeader("P3P", @."CP=3D""CAO PSA OUR""");
But the problem persist we have no solution, please tell me if you
find one.
Thanks,
Johnny
On 2 f=E9v, 19:52, "Khafancoder" <khafanco...@.gmail.com> wrote:
> Hi guys,
> we are developing a webapplication which let user create their own
> virtual website on their real domain.
> in other word, users could create their virtual web-sites by this
> application and app will recognize each website
> by its domain.
> we needed a passport system (like .Net Passport) to identify users in
> all of these virtual web-sites (& various domains)
> we build this system upon third-party cookies by making request from
> each site to passportserver using import script tags.
> now the problem is : IE 6.0, 7.0 won't let the web-applciation to
> create thirdparty cookies by default and users have to add passport
> server domain to TrustedZone,i heared that p3p could solve this
> problem but id don't know how !? should we register our domains in
> some database ? is it free ?
> Thanks in advance
Hi Everybody,
The HTTP HEADERS were remove by IIS 6.0.
To solve the problem go to :
1) Properties on the web root
2) Click HTTP HEADERS tab
3) Custom Headers panel
4) Click Add...
Key : P3P
Value : CP=3D"CAO PSA OUR"
Hope that will help some one.
Johnny
On 26 mar, 16:45, "JohnnyKnoblauch" <jknobla...@.ttinteractive.com>
wrote:
> Hi,
> We only have this problem with IIS 6.0.
> We configure the p3p.xml and the p3pconfig.xml correctly in the root
> domain of our server.
> We configured the P3P in the application begin request in
> global.asax :
> Context.Response.AddHeader("P3P", @."CP=3D""CAO PSA OUR""");
> But the problem persist we have no solution, please tell me if you
> find one.
> Thanks,
> Johnny
> On 2 f=E9v, 19:52, "Khafancoder" <khafanco...@.gmail.com> wrote:
>
>
>
>
>
>
> - Afficher le texte des messages pr=E9c=E9dents -
Better, just look at this url : http://support.microsoft.com/kb/324013/en-us
On 27 mar, 15:38, "JohnnyKnoblauch" <jknobla...@.ttinteractive.com>
wrote:
> Hi Everybody,
> The HTTP HEADERS were remove by IIS 6.0.
> To solve the problem go to :
> 1) Properties on the web root
> 2) Click HTTP HEADERS tab
> 3) Custom Headers panel
> 4) Click Add...
> Key : P3P
> Value : CP=3D"CAO PSA OUR"
> Hope that will help some one.
> Johnny
> On 26 mar, 16:45, "JohnnyKnoblauch" <jknobla...@.ttinteractive.com>
> wrote:
>
>
>
>
>
>
>
>
>
>
>
>
>
messages pr=E9c=E9dents -
> - Afficher le texte des messages pr=E9c=E9dents -
Well, I am doing it same way you did on my site
Response.AddHeader("P3P", @."CP=\"CAO PSA OUR\"");
And nothing gets removed by IIS. I have IIS 6.0 on Win2003
I was a bit when you said it's not working but had no idea why. You
can download tool called fiddler (www.fiddlertool.com/ )
This is Microsoft tool to spy on browser requests and watch what is actually
your server sends to browser (or vise versa)
George
"JohnnyKnoblauch" <jknoblauch@.ttinteractive.com> wrote in message
news:1175002706.897361.89220@.b75g2000hsg.googlegroups.com...
Hi Everybody,
The HTTP HEADERS were remove by IIS 6.0.
To solve the problem go to :
1) Properties on the web root
2) Click HTTP HEADERS tab
3) Custom Headers panel
4) Click Add...
Key : P3P
Value : CP="CAO PSA OUR"
Hope that will help some one.
Johnny
On 26 mar, 16:45, "JohnnyKnoblauch" <jknobla...@.ttinteractive.com>
wrote:
> Hi,
> We only have this problem with IIS 6.0.
> We configure the p3p.xml and the p3pconfig.xml correctly in the root
> domain of our server.
> We configured the P3P in the application begin request in
> global.asax :
> Context.Response.AddHeader("P3P", @."CP=""CAO PSA OUR""");
> But the problem persist we have no solution, please tell me if you
> find one.
> Thanks,
> Johnny
> On 2 fv, 19:52, "Khafancoder" <khafanco...@.gmail.com> wrote:
>
>
>
>
>
>
> - Afficher le texte des messages prcdents -

Monday, March 26, 2012

This is kinda complicated so bear with me....

I have some DropDownLists that I added dynamically at runtime. Once I create them in Page_Init, on Page.Dispose I simply create a collection of the controls on the page and save them to a Session variable. On Postback I simply retrieve the controls from the collection and add them all to Me.Controls except for the one called Form1.

Now, I have solved my first problems which were to a) dynamically generate the DDLs (I used a wrapper class and overrode Render and AddAttributesToRender) and b) only hit the database once to generate and populate the DDLs, but now I would like to know which Item was selected in each of the DDLs on postback.

To summarize:

Public Class ItemPair
Inherits DropDownList
Protected Overrides Sub Render(ByVal output As System.Web.UI.HtmlTextWriter)
output.RenderBeginTag("form")
MyBase.Render(output)
End Sub
Protected Overrides Sub AddAttributesToRender(ByVal writer As HtmlTextWriter)
writer.RenderEndTag()
End Sub
End Class

Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.

InitializeComponent()
If (Not Page.IsPostBack) Then

{create, populate, and add the ItemPairs to the Form}

Else
Dim cc As New Collection
cc = Session("PageControls")

Dim control As New Control

For Each control In cc
If control.ID <> "Form1" Then
Me.Controls.Add(control)
End If
Next
End Sub

Public Overrides Sub Dispose()
Dim control As New Control
Dim cc As New Collection

For Each control In Me.Controls
cc.Add(control)
Next

MyBase.Dispose()
End Sub

I tried making the AutoPostBack property of each ItemPair True while creating them but that didn't work. As a matter of fact I tried several different ways of making the ItemPairs' AutoPostBack proterty True and couldn't do it. I'm not even sure if that is the right tack to try.

All help is much appreciated.bump for more eyeballs

Saturday, March 24, 2012

This type of page is not served.

I am beginning to create my first .net website and am running into a problem. Google provided little help. I tried to access an .asp file within one of my subfolders and am receiving the following error:


This type of page is not served.


Description: The type of page you have requested is not served because it has been explicitly forbidden. The extension '.asp' may be incorrect. Please review the URL below and make sure that it is spelled correctly.

Is it possible to change the web.config or machine.config file to allow access to an .asp page? I'm new to .Net 2.0.

Thanks!

Hi,

do you use windows server 2003 in combination with IIS6? If so you need to know that IIS6, by default, has the settings set to off for serving ASP.NET or classic ASP pages.

Besides that, ASP.NET webforms need to have the extension .aspx, not .asp. This is needed to have IIS use the correct ISAPI filters.

Grz, Kris.


Yes, I'm on a win2003 server with IIS 6. What I'm basically trying to accomplish is create a 2.0 login system to replace our current system. We currently have a lot of sites written in classic asp and a few newer sites written in .NET 2.0. So what I have done is set up a test and everything works well, until I try to access an .asp page inside of one of our sites. I know that webforms need the .aspx extension, but am unsure of how to configure ISAPI or httphandlers to allow the execution of .asp pages. A general diagram of our system is below:

Our_Portal -- main folder, has 2.0 login features with links to the following subfolders/sites

Site_A -- .NET 2.0 site

Site_B -- classic ASP

Site_C -- classic ASP

When I try to access sites B and C, I get the "cannot serve pages" error. Is this more clear?

Tuesday, March 13, 2012

Thread timeouts

Hi,
I have web based email management system where a user can login, create an
email and then send it to multiple recipients.
The email component I use generates all of the physical .eml files when they
click send. When a user is sending to 120, 000 recipients at once the page
times out.
I was thinking of using a separate worker thread for creating the email
messages (I dont have to worry about sending because the files get put into
a pickup directory that gets read by an SMTP component). My main concern
is - would the thread timeout at all, when trying to generate so many files?
Thanks in advance
GrahamHi Graham:
Threads do not time out, so I wouldn't have this concern.
Applications can timeout, however. I can configure an application pool in
Win2003 to shut down an app after x minutes of inactivity. A background thre
ad
isn't considered activity though - only incoming requests are. Something
to look for in your config.
Scott
http://www.OdeToCode.com/blogs/scott/

> Hi,
> I have web based email management system where a user can login,
> create an
> email and then send it to multiple recipients.
> The email component I use generates all of the physical .eml files
> when they
> click send. When a user is sending to 120, 000 recipients at once the
> page
> times out.
> I was thinking of using a separate worker thread for creating the
> email
> messages (I dont have to worry about sending because the files get put
> into
> a pickup directory that gets read by an SMTP component). My main
> concern
> is - would the thread timeout at all, when trying to generate so many
> files?
> Thanks in advance
> Graham

Thread timeouts

Hi,
I have web based email management system where a user can login, create an
email and then send it to multiple recipients.
The email component I use generates all of the physical .eml files when they
click send. When a user is sending to 120, 000 recipients at once the page
times out.
I was thinking of using a separate worker thread for creating the email
messages (I dont have to worry about sending because the files get put into
a pickup directory that gets read by an SMTP component). My main concern
is - would the thread timeout at all, when trying to generate so many files?

Thanks in advance
GrahamHi Graham:

Threads do not time out, so I wouldn't have this concern.

Applications can timeout, however. I can configure an application pool in
Win2003 to shut down an app after x minutes of inactivity. A background thread
isn't considered activity though - only incoming requests are. Something
to look for in your config.

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

> Hi,
> I have web based email management system where a user can login,
> create an
> email and then send it to multiple recipients.
> The email component I use generates all of the physical .eml files
> when they
> click send. When a user is sending to 120, 000 recipients at once the
> page
> times out.
> I was thinking of using a separate worker thread for creating the
> email
> messages (I dont have to worry about sending because the files get put
> into
> a pickup directory that gets read by an SMTP component). My main
> concern
> is - would the thread timeout at all, when trying to generate so many
> files?
> Thanks in advance
> Graham

thread was being aborted

Hi, everyone

I create one application with form authentication.

When I try to run application and press login button it will redirect to default page and application run success fully, some time it will not redirect to default page .

For my application, I have to create one txt log file for error …

Sometime this error occurs when I press login button….

--------------------------

Source Code : mscorlib

Error Message : Thread was being aborted.

Stack Trace : at System.Threading.Thread.AbortInternal()

at System.Threading.Thread.Abort()

at System.Threading.Thread.Abort(Object stateInfo)

at System.Web.HttpResponse.End()

at System.Web.HttpResponse.Redirect(String url, Boolean endResponse)

at System.Web.HttpResponse.Redirect(String url)

at pms._default.Page_Load(Object sender, EventArgs e) in C:\Inetpub\wwwroot\aspnet\pms\default.aspx.vb:line 104

--------------------------

source code for login button is……

--------------------------

Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click

Try

singleSqlString = "SELECT emp_code,password,access_level,emp_name " & _

"FROM login_master " & _

"WHERE emp_code='" & txtEmpCode.Text & "' AND password='" & txtPassword.Text & "' " & _

"ORDER BY emp_code ASC"

objlogin.FillDataSet(singleSqlString, "login_master")

If objlogin.dtSet.Tables("login_master").Rows.Count > 0 Then

Session("LoginCode") = txtEmpCode.Text

Session("EmpName") = objlogin.dtSet.Tables("login_master").Rows(0).Item("emp_name")

Session("AccessLevel") = objlogin.dtSet.Tables("login_master").Rows(0).Item("access_level")

FormsAuthentication.RedirectFromLoginPage(txtEmpCode.Text, False)

Else

lblmsg.Text = " Employee Code or Password may be wrong. - Try Again !!"

txtEmpCode.Text = ""

txtPassword.Text = ""

End If

Catch ex As ThreadAbortException

lblmsg.Visible = True

lblmsg.Text = "Thread is aboard"

Catch ex As Exception

objlogin.CreateLogFile(ex, objlogin.Message)

End Try

End Sub

--------------------------

when I trace my application using break point exception is not generated , but error occurs

plz give any solution and cause for this error.

Thanks in advance

Hi,

The error generated appears to be occuring on the default page:

at pms._default.Page_Load(Object sender, EventArgs e) in C:\Inetpub\wwwroot\aspnet\pms\default.aspx.vb:line 104

Have you checked/debugged the code here to see what's happening?