Showing posts with label bug. Show all posts
Showing posts with label bug. Show all posts

Wednesday, March 28, 2012

Strange bug with textbox.text property

I have this is my page_load

txtSearchTerm.text = "All"

Then I have an imagebutton, when its clicked I want to redirect to a page based on the value of that textbox.

So in my imagebutton click event I have

Response.Redirect("auctions.aspx?search=" + txtSearchTerm.text)

My problem is this text is always "All", even when the user changes the value of the textbox

????

Help !

put you initialize in !IsPostBack

if(!IsPostBack){this.txtSearchTerm.Text="ALL";}

or you can set the default value in the form .aspx file use Text="ALL"


hi,

zeroxp kind of touch it a little, but i want to add something to his reply.

whenever a client click on a button on your webform, asp.net actually will reload itself, then process the Button1_Click event. Therefore, if you want to do something when the page is load, but not everytime it refrashes, use if (!IsPostBack){} or in vb.net: if page.ispostback = false then .

Just want to remind all people out there who maybe thinking this is a bug.. no it isn't... just the way asp.net webform was designed.

Alan,

Strange bug: application dies (partially) after restart

I did more investigation, and the problem is due to a deadlock (I 'm posting
the issue separately on the VJ# NG because it seems to be specific to J#).
The fact that it only seemed to happen after a hot restart was only a
coincidence. Since my initial post, we also saw the problem after a cold
start.

Bruno

"Bruno Jouhier [MVP]" <bjouhier@dotnet.itags.org.club-internet.fr> a crit dans le message de
news:eFeXAEdFEHA.700@dotnet.itags.org.TK2MSFTNGP09.phx.gbl...
> Hi Alvin,
> Thanks for the reply. Our logs don't say anything. Looks like the stateful
> requests are not even delivered to the application any more because
> otherwise we would either be getting a response, or an exception (and we
log
> them all). But I need to attach a debugger to verify this and see what's
> really going on inside. So, I need to do more investigation on my side,
but
> I was wondering if somebody had experienced something similar.
> Bruno.
> "Alvin Bruney [MVP]" <vapor at steaming post office> a crit dans le
message
> de news:Ow$vzWaFEHA.576@dotnet.itags.org.TK2MSFTNGP11.phx.gbl...
> > The restart is key to having the application object be more robust. It's
> not
> > something that is going to get removed. You can clamor for an option
> switch
> > though which may turn it off.
> > What does your event logs say during these funny errors?
> > --
> > Regards,
> > Alvin Bruney [ASP.NET MVP]
> > Got tidbits? Get it here...
> > http://tinyurl.com/3he3b
> > "Bruno Jouhier [MVP]" <bjouhier@dotnet.itags.org.club-internet.fr> wrote in message
> > news:O4ARZfWFEHA.2560@dotnet.itags.org.TK2MSFTNGP12.phx.gbl...
> > > We are observing a strange phenomenon on our ASP .NET applications:
> > > > If the applications are cold started (after a server reboot or an II
> > > restart), they run for days without any problem.
> > > > But if they get restarted while IIS is running (because the web.config
> > file
> > > got modified, or because the DLLs got replaced by new ones), they run
ok
> > for
> > > a certain period (a few hours if the load is light, only a few minutes
> if
> > > the load is heavier) and then the server stops responding to some
> requests
> > > (seems like it continues to generate stateless pages, but does not
> > generate
> > > any stateful pages any more, but I have to investigate what is really
> > > happening in more details).
> > > > We observed this strange behavior on our two ASP .NET applications,
and
> on
> > > different servers. The applications are based on .NET Framework 1.1
and
> > > Visual J#.
> > > > This is not critical because we can restart IIS every time we modify
the
> > > config file or upgrade the DLLs but I'd like to understand what is
going
> > on.
> > > Did anyone else experience a similar problem? Is there a fix?
> > > > Also, it would be great if there was a way to prevent ASP NET from
> > > restarting the application every time the config file or the DLLs are
> > > modified. Some programs (anti-virus, backup) change the last access
time
> > on
> > > these files and they cause an application restart (accessing the file
is
> > all
> > > it takes, the application restarts even if the files are not
modified),
> > > which is very annoying (especially if the application stops responding
> > > afterwards, as described above).
> > > This automatic restart feature is nice during development but I don't
> find
> > > it so nice on a production server because I don't like the idea of
> having
> > a
> > > Web App restart because some background maintenance task is touching
its
> > > files. Does anybody know how to prevent this?
> > > > Bruno.
> >Hi Bruno,

Thanks for your followup. I'm glad that you've firgured out the problem.
Since the problem is specific to J#, have you found any means to workaround
it? Hope you'll soon thoroughly resolve this problem. If there is anything
I can help, please feel free to post here.Thanks.

Regards,

Steven Cheng
Microsoft Online Support

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

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
Hi Steven,

The problem is in the J# Date, SimpleDateFormat and TimeZone classes.
Synchronization seems to be seriously broken and I have a number of
tracebacks and a small repro that demonstrate this (I'm going to post more
stuff on the J# newsgroup).

First, I have tried to fix it by synchronizing around a global object before
calling these JDK methods. But this only works if I have one application
hosted in aspnet_wp.exe. With 2 applications, I get deadlocks between
threads from the 2 apps (very weird, I have posted more details on this one
on microsoft.public.dotnet.vjsharp).

So, I am in the process of recoding all our date and time stuff with the
..NET APIs. This should fix it, and it should also be faster (fortunately, we
had our own Date and Timestamp classes and everything is encapsulated there,
so the recoding is very local).

BTW: The .NET stuff is very good overall but it is rather poor when it comes
to TimeZones. .NET only knows about the machine's timezone and UTC time.
This is not enough for a server app where you want every user to see and
input dates and times formatted in his own timezome. I posted a suggestion
on the Whidbey NG to get extensions to this: APIs to enumerate time zones,
find them by name, and also a "thread" variable that would keep track of the
current timezone and influence the way DateTime are interpreted in the
current thread (something like TimeZone.CurrentTimeZone that would work very
much like CultureInfo.CurrentCulture). I'm repeating it here because I think
that this is a real hole in the .NET API, and an API like that would make my
life easier.

Bruno.

"Steven Cheng[MSFT]" <v-schang@.online.microsoft.com> a crit dans le message
de news:Y7LgaErGEHA.3244@.cpmsftngxa06.phx.gbl...
> Hi Bruno,
> Thanks for your followup. I'm glad that you've firgured out the problem.
> Since the problem is specific to J#, have you found any means to
workaround
> it? Hope you'll soon thoroughly resolve this problem. If there is anything
> I can help, please feel free to post here.Thanks.
>
> Regards,
> Steven Cheng
> Microsoft Online Support
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
> Get Preview at ASP.NET whidbey
> http://msdn.microsoft.com/asp.net/whidbey/default.aspx
Hi Bruno,

Thanks for your followup. Since you mentioned that you've generated a small
repro, I think it'll be helpful if you can make the repro contains the
necessary stuffs and attached it to us. Also a definite repro steps is also
necessary, thus, we can try to do some indepth research on ourside.

In addtion, I also have met the TimeZone problems of the .NET framework
classes before since it doesn't provide enought interfaces to process
TimeZone with client cultureinfo. Sometimes we even need to build our own
custom LookUp Table to mapping cultureinfo with certain TimeZone info.
Anyway, we'll also forward this suggestion to the related production team.
Hope it will soon be improved in the following release. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

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

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
Hi Steven,

I have posted the repro on the microsoft.public.dotnet.vjsharp NG because it
is really specific to J#.

I will also post some tracebacks of other deadlocks that I got on the J# NG
but I'll do it later because I don't have time to format and explain them
right now.

The deadlock that I have posted is really very very simple: one thread calls
TimeZone.getDefault() and the other one calls Calendar.getInstance(), and
they manage to deadlock each other (not always but at least one run out of
4).

Bruno.

"Steven Cheng[MSFT]" <v-schang@.online.microsoft.com> a crit dans le message
de news:MU4eTS7GEHA.2224@.cpmsftngxa06.phx.gbl...
> Hi Bruno,
> Thanks for your followup. Since you mentioned that you've generated a
small
> repro, I think it'll be helpful if you can make the repro contains the
> necessary stuffs and attached it to us. Also a definite repro steps is
also
> necessary, thus, we can try to do some indepth research on ourside.
> In addtion, I also have met the TimeZone problems of the .NET framework
> classes before since it doesn't provide enought interfaces to process
> TimeZone with client cultureinfo. Sometimes we even need to build our own
> custom LookUp Table to mapping cultureinfo with certain TimeZone info.
> Anyway, we'll also forward this suggestion to the related production team.
> Hope it will soon be improved in the following release. Thanks.
> Regards,
> Steven Cheng
> Microsoft Online Support
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
> Get Preview at ASP.NET whidbey
> http://msdn.microsoft.com/asp.net/whidbey/default.aspx
Hi Bruno,

Thanks for your reply. From your further description, I've got that the
problem is specific to J#. And I hope you'll soon resolve the problem.
Also, if you think there is anything we still can help, please feel free
post here or mail me via the mail address in my signature(remove the
"online"). Thanks.

Regards,

Steven Cheng
Microsoft Online Support

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

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Strange bug: application dies (partially) after restart

I did more investigation, and the problem is due to a deadlock (I 'm posting
the issue separately on the VJ# NG because it seems to be specific to J#).
The fact that it only seemed to happen after a hot restart was only a
coincidence. Since my initial post, we also saw the problem after a cold
start.

Bruno

"Bruno Jouhier [MVP]" <bjouhier@dotnet.itags.org.club-internet.fr> a crit dans le message de
news:eFeXAEdFEHA.700@dotnet.itags.org.TK2MSFTNGP09.phx.gbl...
> Hi Alvin,
> Thanks for the reply. Our logs don't say anything. Looks like the stateful
> requests are not even delivered to the application any more because
> otherwise we would either be getting a response, or an exception (and we
log
> them all). But I need to attach a debugger to verify this and see what's
> really going on inside. So, I need to do more investigation on my side,
but
> I was wondering if somebody had experienced something similar.
> Bruno.
> "Alvin Bruney [MVP]" <vapor at steaming post office> a crit dans le
message
> de news:Ow$vzWaFEHA.576@dotnet.itags.org.TK2MSFTNGP11.phx.gbl...
> > The restart is key to having the application object be more robust. It's
> not
> > something that is going to get removed. You can clamor for an option
> switch
> > though which may turn it off.
> > What does your event logs say during these funny errors?
> > --
> > Regards,
> > Alvin Bruney [ASP.NET MVP]
> > Got tidbits? Get it here...
> > http://tinyurl.com/3he3b
> > "Bruno Jouhier [MVP]" <bjouhier@dotnet.itags.org.club-internet.fr> wrote in message
> > news:O4ARZfWFEHA.2560@dotnet.itags.org.TK2MSFTNGP12.phx.gbl...
> > > We are observing a strange phenomenon on our ASP .NET applications:
> > > > If the applications are cold started (after a server reboot or an II
> > > restart), they run for days without any problem.
> > > > But if they get restarted while IIS is running (because the web.config
> > file
> > > got modified, or because the DLLs got replaced by new ones), they run
ok
> > for
> > > a certain period (a few hours if the load is light, only a few minutes
> if
> > > the load is heavier) and then the server stops responding to some
> requests
> > > (seems like it continues to generate stateless pages, but does not
> > generate
> > > any stateful pages any more, but I have to investigate what is really
> > > happening in more details).
> > > > We observed this strange behavior on our two ASP .NET applications,
and
> on
> > > different servers. The applications are based on .NET Framework 1.1
and
> > > Visual J#.
> > > > This is not critical because we can restart IIS every time we modify
the
> > > config file or upgrade the DLLs but I'd like to understand what is
going
> > on.
> > > Did anyone else experience a similar problem? Is there a fix?
> > > > Also, it would be great if there was a way to prevent ASP NET from
> > > restarting the application every time the config file or the DLLs are
> > > modified. Some programs (anti-virus, backup) change the last access
time
> > on
> > > these files and they cause an application restart (accessing the file
is
> > all
> > > it takes, the application restarts even if the files are not
modified),
> > > which is very annoying (especially if the application stops responding
> > > afterwards, as described above).
> > > This automatic restart feature is nice during development but I don't
> find
> > > it so nice on a production server because I don't like the idea of
> having
> > a
> > > Web App restart because some background maintenance task is touching
its
> > > files. Does anybody know how to prevent this?
> > > > Bruno.
> >Hi Bruno,

Thanks for your followup. I'm glad that you've firgured out the problem.
Since the problem is specific to J#, have you found any means to workaround
it? Hope you'll soon thoroughly resolve this problem. If there is anything
I can help, please feel free to post here.Thanks.

Regards,

Steven Cheng
Microsoft Online Support

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

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
Hi Steven,

The problem is in the J# Date, SimpleDateFormat and TimeZone classes.
Synchronization seems to be seriously broken and I have a number of
tracebacks and a small repro that demonstrate this (I'm going to post more
stuff on the J# newsgroup).

First, I have tried to fix it by synchronizing around a global object before
calling these JDK methods. But this only works if I have one application
hosted in aspnet_wp.exe. With 2 applications, I get deadlocks between
threads from the 2 apps (very weird, I have posted more details on this one
on microsoft.public.dotnet.vjsharp).

So, I am in the process of recoding all our date and time stuff with the
..NET APIs. This should fix it, and it should also be faster (fortunately, we
had our own Date and Timestamp classes and everything is encapsulated there,
so the recoding is very local).

BTW: The .NET stuff is very good overall but it is rather poor when it comes
to TimeZones. .NET only knows about the machine's timezone and UTC time.
This is not enough for a server app where you want every user to see and
input dates and times formatted in his own timezome. I posted a suggestion
on the Whidbey NG to get extensions to this: APIs to enumerate time zones,
find them by name, and also a "thread" variable that would keep track of the
current timezone and influence the way DateTime are interpreted in the
current thread (something like TimeZone.CurrentTimeZone that would work very
much like CultureInfo.CurrentCulture). I'm repeating it here because I think
that this is a real hole in the .NET API, and an API like that would make my
life easier.

Bruno.

"Steven Cheng[MSFT]" <v-schang@.online.microsoft.com> a crit dans le message
de news:Y7LgaErGEHA.3244@.cpmsftngxa06.phx.gbl...
> Hi Bruno,
> Thanks for your followup. I'm glad that you've firgured out the problem.
> Since the problem is specific to J#, have you found any means to
workaround
> it? Hope you'll soon thoroughly resolve this problem. If there is anything
> I can help, please feel free to post here.Thanks.
>
> Regards,
> Steven Cheng
> Microsoft Online Support
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
> Get Preview at ASP.NET whidbey
> http://msdn.microsoft.com/asp.net/whidbey/default.aspx
Hi Steven,

The problem is in the J# Date, SimpleDateFormat and TimeZone classes.
Synchronization seems to be seriously broken and I have a number of
tracebacks and a small repro that demonstrate this (I'm going to post more
stuff on the J# newsgroup).

First, I have tried to fix it by synchronizing around a global object before
calling these JDK methods. But this only works if I have one application
hosted in aspnet_wp.exe. With 2 applications, I get deadlocks between
threads from the 2 apps (very weird, I have posted more details on this one
on microsoft.public.dotnet.vjsharp).

So, I am in the process of recoding all our date and time stuff with the
..NET APIs. This should fix it, and it should also be faster (fortunately, we
had our own Date and Timestamp classes and everything is encapsulated there,
so the recoding is very local).

BTW: The .NET stuff is very good overall but it is rather poor when it comes
to TimeZones. .NET only knows about the machine's timezone and UTC time.
This is not enough for a server app where you want every user to see and
input dates and times formatted in his own timezome. I posted a suggestion
on the Whidbey NG to get extensions to this: APIs to enumerate time zones,
find them by name, and also a "thread" variable that would keep track of the
current timezone and influence the way DateTime are interpreted in the
current thread (something like TimeZone.CurrentTimeZone that would work very
much like CultureInfo.CurrentCulture). I'm repeating it here because I think
that this is a real hole in the .NET API, and an API like that would make my
life easier.

Bruno.

"Steven Cheng[MSFT]" <v-schang@.online.microsoft.com> a crit dans le message
de news:Y7LgaErGEHA.3244@.cpmsftngxa06.phx.gbl...
> Hi Bruno,
> Thanks for your followup. I'm glad that you've firgured out the problem.
> Since the problem is specific to J#, have you found any means to
workaround
> it? Hope you'll soon thoroughly resolve this problem. If there is anything
> I can help, please feel free to post here.Thanks.
>
> Regards,
> Steven Cheng
> Microsoft Online Support
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
> Get Preview at ASP.NET whidbey
> http://msdn.microsoft.com/asp.net/whidbey/default.aspx
Hi Bruno,

Thanks for your followup. Since you mentioned that you've generated a small
repro, I think it'll be helpful if you can make the repro contains the
necessary stuffs and attached it to us. Also a definite repro steps is also
necessary, thus, we can try to do some indepth research on ourside.

In addtion, I also have met the TimeZone problems of the .NET framework
classes before since it doesn't provide enought interfaces to process
TimeZone with client cultureinfo. Sometimes we even need to build our own
custom LookUp Table to mapping cultureinfo with certain TimeZone info.
Anyway, we'll also forward this suggestion to the related production team.
Hope it will soon be improved in the following release. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

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

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
Hi Bruno,

Thanks for your followup. Since you mentioned that you've generated a small
repro, I think it'll be helpful if you can make the repro contains the
necessary stuffs and attached it to us. Also a definite repro steps is also
necessary, thus, we can try to do some indepth research on ourside.

In addtion, I also have met the TimeZone problems of the .NET framework
classes before since it doesn't provide enought interfaces to process
TimeZone with client cultureinfo. Sometimes we even need to build our own
custom LookUp Table to mapping cultureinfo with certain TimeZone info.
Anyway, we'll also forward this suggestion to the related production team.
Hope it will soon be improved in the following release. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

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

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
Hi Steven,

I have posted the repro on the microsoft.public.dotnet.vjsharp NG because it
is really specific to J#.

I will also post some tracebacks of other deadlocks that I got on the J# NG
but I'll do it later because I don't have time to format and explain them
right now.

The deadlock that I have posted is really very very simple: one thread calls
TimeZone.getDefault() and the other one calls Calendar.getInstance(), and
they manage to deadlock each other (not always but at least one run out of
4).

Bruno.

"Steven Cheng[MSFT]" <v-schang@.online.microsoft.com> a crit dans le message
de news:MU4eTS7GEHA.2224@.cpmsftngxa06.phx.gbl...
> Hi Bruno,
> Thanks for your followup. Since you mentioned that you've generated a
small
> repro, I think it'll be helpful if you can make the repro contains the
> necessary stuffs and attached it to us. Also a definite repro steps is
also
> necessary, thus, we can try to do some indepth research on ourside.
> In addtion, I also have met the TimeZone problems of the .NET framework
> classes before since it doesn't provide enought interfaces to process
> TimeZone with client cultureinfo. Sometimes we even need to build our own
> custom LookUp Table to mapping cultureinfo with certain TimeZone info.
> Anyway, we'll also forward this suggestion to the related production team.
> Hope it will soon be improved in the following release. Thanks.
> Regards,
> Steven Cheng
> Microsoft Online Support
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
> Get Preview at ASP.NET whidbey
> http://msdn.microsoft.com/asp.net/whidbey/default.aspx
Hi Steven,

I have posted the repro on the microsoft.public.dotnet.vjsharp NG because it
is really specific to J#.

I will also post some tracebacks of other deadlocks that I got on the J# NG
but I'll do it later because I don't have time to format and explain them
right now.

The deadlock that I have posted is really very very simple: one thread calls
TimeZone.getDefault() and the other one calls Calendar.getInstance(), and
they manage to deadlock each other (not always but at least one run out of
4).

Bruno.

"Steven Cheng[MSFT]" <v-schang@.online.microsoft.com> a crit dans le message
de news:MU4eTS7GEHA.2224@.cpmsftngxa06.phx.gbl...
> Hi Bruno,
> Thanks for your followup. Since you mentioned that you've generated a
small
> repro, I think it'll be helpful if you can make the repro contains the
> necessary stuffs and attached it to us. Also a definite repro steps is
also
> necessary, thus, we can try to do some indepth research on ourside.
> In addtion, I also have met the TimeZone problems of the .NET framework
> classes before since it doesn't provide enought interfaces to process
> TimeZone with client cultureinfo. Sometimes we even need to build our own
> custom LookUp Table to mapping cultureinfo with certain TimeZone info.
> Anyway, we'll also forward this suggestion to the related production team.
> Hope it will soon be improved in the following release. Thanks.
> Regards,
> Steven Cheng
> Microsoft Online Support
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
> Get Preview at ASP.NET whidbey
> http://msdn.microsoft.com/asp.net/whidbey/default.aspx
Hi Bruno,

Thanks for your reply. From your further description, I've got that the
problem is specific to J#. And I hope you'll soon resolve the problem.
Also, if you think there is anything we still can help, please feel free
post here or mail me via the mail address in my signature(remove the
"online"). Thanks.

Regards,

Steven Cheng
Microsoft Online Support

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

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
Hi Bruno,

Thanks for your reply. From your further description, I've got that the
problem is specific to J#. And I hope you'll soon resolve the problem.
Also, if you think there is anything we still can help, please feel free
post here or mail me via the mail address in my signature(remove the
"online"). Thanks.

Regards,

Steven Cheng
Microsoft Online Support

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

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Strange bug: application dies (partially) after restart

I did more investigation, and the problem is due to a deadlock (I 'm posting
the issue separately on the VJ# NG because it seems to be specific to J#).
The fact that it only seemed to happen after a hot restart was only a
coincidence. Since my initial post, we also saw the problem after a cold
start.

Bruno

"Bruno Jouhier [MVP]" <bjouhier@dotnet.itags.org.club-internet.fr> a crit dans le message de
news:eFeXAEdFEHA.700@dotnet.itags.org.TK2MSFTNGP09.phx.gbl...
> Hi Alvin,
> Thanks for the reply. Our logs don't say anything. Looks like the stateful
> requests are not even delivered to the application any more because
> otherwise we would either be getting a response, or an exception (and we
log
> them all). But I need to attach a debugger to verify this and see what's
> really going on inside. So, I need to do more investigation on my side,
but
> I was wondering if somebody had experienced something similar.
> Bruno.
> "Alvin Bruney [MVP]" <vapor at steaming post office> a crit dans le
message
> de news:Ow$vzWaFEHA.576@dotnet.itags.org.TK2MSFTNGP11.phx.gbl...
> > The restart is key to having the application object be more robust. It's
> not
> > something that is going to get removed. You can clamor for an option
> switch
> > though which may turn it off.
> > What does your event logs say during these funny errors?
> > --
> > Regards,
> > Alvin Bruney [ASP.NET MVP]
> > Got tidbits? Get it here...
> > http://tinyurl.com/3he3b
> > "Bruno Jouhier [MVP]" <bjouhier@dotnet.itags.org.club-internet.fr> wrote in message
> > news:O4ARZfWFEHA.2560@dotnet.itags.org.TK2MSFTNGP12.phx.gbl...
> > > We are observing a strange phenomenon on our ASP .NET applications:
> > > > If the applications are cold started (after a server reboot or an II
> > > restart), they run for days without any problem.
> > > > But if they get restarted while IIS is running (because the web.config
> > file
> > > got modified, or because the DLLs got replaced by new ones), they run
ok
> > for
> > > a certain period (a few hours if the load is light, only a few minutes
> if
> > > the load is heavier) and then the server stops responding to some
> requests
> > > (seems like it continues to generate stateless pages, but does not
> > generate
> > > any stateful pages any more, but I have to investigate what is really
> > > happening in more details).
> > > > We observed this strange behavior on our two ASP .NET applications,
and
> on
> > > different servers. The applications are based on .NET Framework 1.1
and
> > > Visual J#.
> > > > This is not critical because we can restart IIS every time we modify
the
> > > config file or upgrade the DLLs but I'd like to understand what is
going
> > on.
> > > Did anyone else experience a similar problem? Is there a fix?
> > > > Also, it would be great if there was a way to prevent ASP NET from
> > > restarting the application every time the config file or the DLLs are
> > > modified. Some programs (anti-virus, backup) change the last access
time
> > on
> > > these files and they cause an application restart (accessing the file
is
> > all
> > > it takes, the application restarts even if the files are not
modified),
> > > which is very annoying (especially if the application stops responding
> > > afterwards, as described above).
> > > This automatic restart feature is nice during development but I don't
> find
> > > it so nice on a production server because I don't like the idea of
> having
> > a
> > > Web App restart because some background maintenance task is touching
its
> > > files. Does anybody know how to prevent this?
> > > > Bruno.
> >Hi Bruno,

Thanks for your followup. I'm glad that you've firgured out the problem.
Since the problem is specific to J#, have you found any means to workaround
it? Hope you'll soon thoroughly resolve this problem. If there is anything
I can help, please feel free to post here.Thanks.

Regards,

Steven Cheng
Microsoft Online Support

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

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
Hi Steven,

The problem is in the J# Date, SimpleDateFormat and TimeZone classes.
Synchronization seems to be seriously broken and I have a number of
tracebacks and a small repro that demonstrate this (I'm going to post more
stuff on the J# newsgroup).

First, I have tried to fix it by synchronizing around a global object before
calling these JDK methods. But this only works if I have one application
hosted in aspnet_wp.exe. With 2 applications, I get deadlocks between
threads from the 2 apps (very weird, I have posted more details on this one
on microsoft.public.dotnet.vjsharp).

So, I am in the process of recoding all our date and time stuff with the
..NET APIs. This should fix it, and it should also be faster (fortunately, we
had our own Date and Timestamp classes and everything is encapsulated there,
so the recoding is very local).

BTW: The .NET stuff is very good overall but it is rather poor when it comes
to TimeZones. .NET only knows about the machine's timezone and UTC time.
This is not enough for a server app where you want every user to see and
input dates and times formatted in his own timezome. I posted a suggestion
on the Whidbey NG to get extensions to this: APIs to enumerate time zones,
find them by name, and also a "thread" variable that would keep track of the
current timezone and influence the way DateTime are interpreted in the
current thread (something like TimeZone.CurrentTimeZone that would work very
much like CultureInfo.CurrentCulture). I'm repeating it here because I think
that this is a real hole in the .NET API, and an API like that would make my
life easier.

Bruno.

"Steven Cheng[MSFT]" <v-schang@.online.microsoft.com> a crit dans le message
de news:Y7LgaErGEHA.3244@.cpmsftngxa06.phx.gbl...
> Hi Bruno,
> Thanks for your followup. I'm glad that you've firgured out the problem.
> Since the problem is specific to J#, have you found any means to
workaround
> it? Hope you'll soon thoroughly resolve this problem. If there is anything
> I can help, please feel free to post here.Thanks.
>
> Regards,
> Steven Cheng
> Microsoft Online Support
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
> Get Preview at ASP.NET whidbey
> http://msdn.microsoft.com/asp.net/whidbey/default.aspx
Hi Bruno,

Thanks for your followup. Since you mentioned that you've generated a small
repro, I think it'll be helpful if you can make the repro contains the
necessary stuffs and attached it to us. Also a definite repro steps is also
necessary, thus, we can try to do some indepth research on ourside.

In addtion, I also have met the TimeZone problems of the .NET framework
classes before since it doesn't provide enought interfaces to process
TimeZone with client cultureinfo. Sometimes we even need to build our own
custom LookUp Table to mapping cultureinfo with certain TimeZone info.
Anyway, we'll also forward this suggestion to the related production team.
Hope it will soon be improved in the following release. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

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

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
Hi Steven,

I have posted the repro on the microsoft.public.dotnet.vjsharp NG because it
is really specific to J#.

I will also post some tracebacks of other deadlocks that I got on the J# NG
but I'll do it later because I don't have time to format and explain them
right now.

The deadlock that I have posted is really very very simple: one thread calls
TimeZone.getDefault() and the other one calls Calendar.getInstance(), and
they manage to deadlock each other (not always but at least one run out of
4).

Bruno.

"Steven Cheng[MSFT]" <v-schang@.online.microsoft.com> a crit dans le message
de news:MU4eTS7GEHA.2224@.cpmsftngxa06.phx.gbl...
> Hi Bruno,
> Thanks for your followup. Since you mentioned that you've generated a
small
> repro, I think it'll be helpful if you can make the repro contains the
> necessary stuffs and attached it to us. Also a definite repro steps is
also
> necessary, thus, we can try to do some indepth research on ourside.
> In addtion, I also have met the TimeZone problems of the .NET framework
> classes before since it doesn't provide enought interfaces to process
> TimeZone with client cultureinfo. Sometimes we even need to build our own
> custom LookUp Table to mapping cultureinfo with certain TimeZone info.
> Anyway, we'll also forward this suggestion to the related production team.
> Hope it will soon be improved in the following release. Thanks.
> Regards,
> Steven Cheng
> Microsoft Online Support
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
> Get Preview at ASP.NET whidbey
> http://msdn.microsoft.com/asp.net/whidbey/default.aspx
Hi Bruno,

Thanks for your reply. From your further description, I've got that the
problem is specific to J#. And I hope you'll soon resolve the problem.
Also, if you think there is anything we still can help, please feel free
post here or mail me via the mail address in my signature(remove the
"online"). Thanks.

Regards,

Steven Cheng
Microsoft Online Support

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

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Strange bug: application dies (partially) after restart

We are observing a strange phenomenon on our ASP .NET applications:
If the applications are cold started (after a server reboot or an II
restart), they run for days without any problem.
But if they get restarted while IIS is running (because the web.config file
got modified, or because the DLLs got replaced by new ones), they run ok for
a certain period (a few hours if the load is light, only a few minutes if
the load is heavier) and then the server stops responding to some requests
(seems like it continues to generate stateless pages, but does not generate
any stateful pages any more, but I have to investigate what is really
happening in more details).
We observed this strange behavior on our two ASP .NET applications, and on
different servers. The applications are based on .NET Framework 1.1 and
Visual J#.
This is not critical because we can restart IIS every time we modify the
config file or upgrade the DLLs but I'd like to understand what is going on.
Did anyone else experience a similar problem? Is there a fix?
Also, it would be great if there was a way to prevent ASP NET from
restarting the application every time the config file or the DLLs are
modified. Some programs (anti-virus, backup) change the last access time on
these files and they cause an application restart (accessing the file is all
it takes, the application restarts even if the files are not modified),
which is very annoying (especially if the application stops responding
afterwards, as described above).
This automatic restart feature is nice during development but I don't find
it so nice on a production server because I don't like the idea of having a
Web App restart because some background maintenance task is touching its
files. Does anybody know how to prevent this?
Bruno.The restart is key to having the application object be more robust. It's not
something that is going to get removed. You can clamor for an option switch
though which may turn it off.
What does your event logs say during these funny errors?
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
"Bruno Jouhier [MVP]" <bjouhier@.club-internet.fr> wrote in message
news:O4ARZfWFEHA.2560@.TK2MSFTNGP12.phx.gbl...
> We are observing a strange phenomenon on our ASP .NET applications:
> If the applications are cold started (after a server reboot or an II
> restart), they run for days without any problem.
> But if they get restarted while IIS is running (because the web.config
file
> got modified, or because the DLLs got replaced by new ones), they run ok
for
> a certain period (a few hours if the load is light, only a few minutes if
> the load is heavier) and then the server stops responding to some requests
> (seems like it continues to generate stateless pages, but does not
generate
> any stateful pages any more, but I have to investigate what is really
> happening in more details).
> We observed this strange behavior on our two ASP .NET applications, and on
> different servers. The applications are based on .NET Framework 1.1 and
> Visual J#.
> This is not critical because we can restart IIS every time we modify the
> config file or upgrade the DLLs but I'd like to understand what is going
on.
> Did anyone else experience a similar problem? Is there a fix?
> Also, it would be great if there was a way to prevent ASP NET from
> restarting the application every time the config file or the DLLs are
> modified. Some programs (anti-virus, backup) change the last access time
on
> these files and they cause an application restart (accessing the file is
all
> it takes, the application restarts even if the files are not modified),
> which is very annoying (especially if the application stops responding
> afterwards, as described above).
> This automatic restart feature is nice during development but I don't find
> it so nice on a production server because I don't like the idea of having
a
> Web App restart because some background maintenance task is touching its
> files. Does anybody know how to prevent this?
> Bruno.
>
Hi Alvin,
Thanks for the reply. Our logs don't say anything. Looks like the stateful
requests are not even delivered to the application any more because
otherwise we would either be getting a response, or an exception (and we log
them all). But I need to attach a debugger to verify this and see what's
really going on inside. So, I need to do more investigation on my side, but
I was wondering if somebody had experienced something similar.
Bruno.
"Alvin Bruney [MVP]" <vapor at steaming post office> a crit dans le mes
sage
de news:Ow$vzWaFEHA.576@.TK2MSFTNGP11.phx.gbl...
> The restart is key to having the application object be more robust. It's
not
> something that is going to get removed. You can clamor for an option
switch
> though which may turn it off.
> What does your event logs say during these funny errors?
> --
> Regards,
> Alvin Bruney [ASP.NET MVP]
> Got tidbits? Get it here...
> http://tinyurl.com/3he3b
> "Bruno Jouhier [MVP]" <bjouhier@.club-internet.fr> wrote in message
> news:O4ARZfWFEHA.2560@.TK2MSFTNGP12.phx.gbl...
> file
> for
if
requests
> generate
on
> on.
> on
> all
find
having
> a
>
Hi Alvin,
From the symptom you described, the problem only occured after the ASP.NET
application recycled at runtime and concerned with those stateful pages?
Does the "Stateful page" you mentioned means "posted back" page or in other
word, the posted back requests no longer be processed after the recycling?
I'm wondering whether this problem also occur if you make a simple web
application on the same server. If not occur, we can isolate the problem on
the certain application and some further throubshooting are needed.
Also, I recommend that you add some trace code in those page(suffering the
problem)'s code , such as write some debug info into a custom log file in
different events of the page. Thus, it'll help to confirm when the problem
acually happend.
Any way, if you have any newfindings or updates, please feel free to post
here. Thanks.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
Hi Steve,
The pages that seem affected are all the pages that have a "session state".
Our server is generating both stateless (no session) and stateful (session)
pages. And it looks like the stateless pages continue to be generated ok but
the stateful ones don't.
Unfortunately, this is a pretty big application and I cannot send you a
repro sample at this point. Also, this is an unusual ASP .NET application
because we interface directly with System.Web and we use a proprietary
rendering engine (we don't use the ASP .NET resources/controls -- we have
special requirements, for example the ability to modify the theme/layout of
the pages at run-time). So, the bug may show up in our case but not in
standard ASP .NET.
What I find really strange is that there is a difference between a cold
start and a hot restart (when the config file or the DLLs are touched). In
the first case, the app works ok, and in the second case it has serious
problems. I was expecting the hot restart to start the application in the
same state as a cold start (basically with a clean AppDomain) but this does
not seem to be completely true.
Anyway, I need to do some more research (reproducing the production server
behavior on dev machines, adding logs, investigating with debugger) to
understand what is really going on. I'll let you know what I find. My post
was more to see if someone else had experienced a similar behavior or had a
quick answer, to avoid some time consuming investigations.
Bruno.
"Steven Cheng[MSFT]" <v-schang@.online.microsoft.com> a crit dans le mes
sage
de news:kMlMDUgFEHA.1160@.cpmsftngxa06.phx.gbl...
> Hi Alvin,
> From the symptom you described, the problem only occured after the ASP.NET
> application recycled at runtime and concerned with those stateful pages?
> Does the "Stateful page" you mentioned means "posted back" page or in
other
> word, the posted back requests no longer be processed after the recycling?
> I'm wondering whether this problem also occur if you make a simple web
> application on the same server. If not occur, we can isolate the problem
on
> the certain application and some further throubshooting are needed.
> Also, I recommend that you add some trace code in those page(suffering the
> problem)'s code , such as write some debug info into a custom log file in
> different events of the page. Thus, it'll help to confirm when the problem
> acually happend.
> Any way, if you have any newfindings or updates, please feel free to post
> here. Thanks.
>
> Regards,
> Steven Cheng
> Microsoft Online Support
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
> Get Preview at ASP.NET whidbey
> http://msdn.microsoft.com/asp.net/whidbey/default.aspx
>
I did more investigation, and the problem is due to a deadlock (I 'm posting
the issue separately on the VJ# NG because it seems to be specific to J#).
The fact that it only seemed to happen after a hot restart was only a
coincidence. Since my initial post, we also saw the problem after a cold
start.
Bruno
"Bruno Jouhier [MVP]" <bjouhier@.club-internet.fr> a crit dans le messag
e de
news:eFeXAEdFEHA.700@.TK2MSFTNGP09.phx.gbl...
> Hi Alvin,
> Thanks for the reply. Our logs don't say anything. Looks like the stateful
> requests are not even delivered to the application any more because
> otherwise we would either be getting a response, or an exception (and we
log
> them all). But I need to attach a debugger to verify this and see what's
> really going on inside. So, I need to do more investigation on my side,
but
> I was wondering if somebody had experienced something similar.
> Bruno.
> "Alvin Bruney [MVP]" <vapor at steaming post office> a crit dans le
message
> de news:Ow$vzWaFEHA.576@.TK2MSFTNGP11.phx.gbl...
> not
> switch
ok
> if
> requests
and
> on
and
the
going
time
is
modified),
> find
> having
its
>
Hi Bruno,
Thanks for your followup. I'm glad that you've firgured out the problem.
Since the problem is specific to J#, have you found any means to workaround
it? Hope you'll soon thoroughly resolve this problem. If there is anything
I can help, please feel free to post here.Thanks.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
Hi Steven,
The problem is in the J# Date, SimpleDateFormat and TimeZone classes.
Synchronization seems to be seriously broken and I have a number of
tracebacks and a small repro that demonstrate this (I'm going to post more
stuff on the J# newsgroup).
First, I have tried to fix it by synchronizing around a global object before
calling these JDK methods. But this only works if I have one application
hosted in aspnet_wp.exe. With 2 applications, I get deadlocks between
threads from the 2 apps (very weird, I have posted more details on this one
on microsoft.public.dotnet.vjsharp).
So, I am in the process of recoding all our date and time stuff with the
.NET APIs. This should fix it, and it should also be faster (fortunately, w
e
had our own Date and Timestamp classes and everything is encapsulated there,
so the recoding is very local).
BTW: The .NET stuff is very good overall but it is rather poor when it comes
to TimeZones. .NET only knows about the machine's timezone and UTC time.
This is not enough for a server app where you want every user to see and
input dates and times formatted in his own timezome. I posted a suggestion
on the Whidbey NG to get extensions to this: APIs to enumerate time zones,
find them by name, and also a "thread" variable that would keep track of the
current timezone and influence the way DateTime are interpreted in the
current thread (something like TimeZone.CurrentTimeZone that would work very
much like CultureInfo.CurrentCulture). I'm repeating it here because I think
that this is a real hole in the .NET API, and an API like that would make my
life easier.
Bruno.
"Steven Cheng[MSFT]" <v-schang@.online.microsoft.com> a crit dans le mes
sage
de news:Y7LgaErGEHA.3244@.cpmsftngxa06.phx.gbl...
> Hi Bruno,
> Thanks for your followup. I'm glad that you've firgured out the problem.
> Since the problem is specific to J#, have you found any means to
workaround
> it? Hope you'll soon thoroughly resolve this problem. If there is anything
> I can help, please feel free to post here.Thanks.
>
> Regards,
> Steven Cheng
> Microsoft Online Support
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
> Get Preview at ASP.NET whidbey
> http://msdn.microsoft.com/asp.net/whidbey/default.aspx
>
Hi Steven,
I have posted the repro on the microsoft.public.dotnet.vjsharp NG because it
is really specific to J#.
I will also post some tracebacks of other deadlocks that I got on the J# NG
but I'll do it later because I don't have time to format and explain them
right now.
The deadlock that I have posted is really very very simple: one thread calls
TimeZone.getDefault() and the other one calls Calendar.getInstance(), and
they manage to deadlock each other (not always but at least one run out of
4).
Bruno.
"Steven Cheng[MSFT]" <v-schang@.online.microsoft.com> a crit dans le mes
sage
de news:MU4eTS7GEHA.2224@.cpmsftngxa06.phx.gbl...
> Hi Bruno,
> Thanks for your followup. Since you mentioned that you've generated a
small
> repro, I think it'll be helpful if you can make the repro contains the
> necessary stuffs and attached it to us. Also a definite repro steps is
also
> necessary, thus, we can try to do some indepth research on ourside.
> In addtion, I also have met the TimeZone problems of the .NET framework
> classes before since it doesn't provide enought interfaces to process
> TimeZone with client cultureinfo. Sometimes we even need to build our own
> custom LookUp Table to mapping cultureinfo with certain TimeZone info.
> Anyway, we'll also forward this suggestion to the related production team.
> Hope it will soon be improved in the following release. Thanks.
> Regards,
> Steven Cheng
> Microsoft Online Support
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
> Get Preview at ASP.NET whidbey
> http://msdn.microsoft.com/asp.net/whidbey/default.aspx
>
Hi Bruno,
Thanks for your reply. From your further description, I've got that the
problem is specific to J#. And I hope you'll soon resolve the problem.
Also, if you think there is anything we still can help, please feel free
post here or mail me via the mail address in my signature(remove the
"online"). Thanks.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Monday, March 26, 2012

Strange css problem (bug?)

Hi,
I'm developing a asp.net application and ran into a strange css problem.
I want all my links to have a dashed underline and when they are
hovered, it must change to a solid line. Sounds simple, but it's not
working.
I've cooked down my output code to show you what I mean. If you run the
code below, there's no line under the link, but if you either remove the
<!DOCTYPE...> line or the body-part of the css decleration, everything
works fine.
Here's my code (watch for wrappings):
---
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Strange</title>
<style>
<!--
body
{
font-family: verdana, arial, helvetica, sans-serif;
}
a:link, a:visited
{
font-family: verdana, arial, helvetica, sans-serif;
color: #d32525;
border-bottom: 1px dashed #d32525;
text-decoration: none;
}
a:hover
{
font-family: verdana, arial, helvetica, sans-serif;
color: #d32525;
border-bottom: 1px solid #d32525;
text-decoration: none;
}
-->
</style>
</head>
<body>
<a href="http://links.10026.com/?link=http://www.microsoft.com/">This is just a link</a>
</body>
</html>
---
Any idea'?
I also found out, if I put a <p> </p> below the <a href...> in the
code above, everything works fine.
I'm !!!!!
HHHHEEELLLPPPPP! :o)
Thank you in advance.
M O J OCheck out the css newsgroup
Let me know if you have any more questions...
Cheers,
Tom Pester

> Hi,
> I'm developing a asp.net application and ran into a strange css
> problem.
> I want all my links to have a dashed underline and when they are
> hovered, it must change to a solid line. Sounds simple, but it's not
> working.
> I've cooked down my output code to show you what I mean. If you run
> the code below, there's no line under the link, but if you either
> remove the <!DOCTYPE...> line or the body-part of the css decleration,
> everything works fine.
> Here's my code (watch for wrappings):
> ---
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html;
> charset=windows-1252">
> <title>Strange</title>
> <style>
> <!--
> body
> {
> font-family: verdana, arial, helvetica, sans-serif;
> }
> a:link, a:visited
> {
> font-family: verdana, arial, helvetica, sans-serif;
> color: #d32525;
> border-bottom: 1px dashed #d32525;
> text-decoration: none;
> }
> a:hover
> {
> font-family: verdana, arial, helvetica, sans-serif;
> color: #d32525;
> border-bottom: 1px solid #d32525;
> text-decoration: none;
> }
> -->
> </style>
> </head>
> <body>
> <a href="http://links.10026.com/?link=http://www.microsoft.com/">This is just a link</a>
> </body>
> </html>
> ---
> Any idea'?
> I also found out, if I put a <p> </p> below the <a href...> in
> the code above, everything works fine.
> I'm !!!!!
> HHHHEEELLLPPPPP! :o)
> Thank you in advance.
> M O J O
>
Hi Tom,
Which group are you exactly talking about?
M O J O
tom pester wrote:
> Check out the css newsgroup
> Let me know if you have any more questions...
> Cheers,
> Tom Pester
>
>
http://groups.google.com/group/comp.infosystems.www.authoring.stylesheets?gvc=2&hl
=en
Let me know if it helped you or not...
Cheers,
Tom Pester
> Hi Tom,
> Which group are you exactly talking about?
> M O J O
> tom pester wrote:
>
Try putting your style-block before the body tag. Inside the head you
should only refer to external css files.
Okay thanks, I'll give it a try.
M O J O
tom pester wrote:
> http://groups.google.com/group/comp...2&
hl=en
>
> Let me know if it helped you or not...
> Cheers,
> Tom Pester
>
>
Hi Stefan,
Thanks for letting me know. Unfortunately it does not solve my problem.
:o(
Hmmmmm.
Thanks anyway.
M O J O
Stefan wrote:
> Try putting your style-block before the body tag. Inside the head you
> should only refer to external css files.
>
your problem is that an <a> is an inline element, not a block element, so it
does not have a border. normally you use the text-decoration to control
underlining, but there is no dashed version. you can try setting the display
style to block.
-- bruce (sqlwork.com)
"M O J O" < mojo@._no_spam_delete_this_newwebsolution
s.dk> wrote in message
news:uNHXoi8qFHA.904@.tk2msftngp13.phx.gbl...
> Hi,
> I'm developing a asp.net application and ran into a strange css problem.
> I want all my links to have a dashed underline and when they are hovered,
> it must change to a solid line. Sounds simple, but it's not working.
> I've cooked down my output code to show you what I mean. If you run the
> code below, there's no line under the link, but if you either remove the
> <!DOCTYPE...> line or the body-part of the css decleration, everything
> works fine.
> Here's my code (watch for wrappings):
> ---
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
> <title>Strange</title>
> <style>
> <!--
> body
> {
> font-family: verdana, arial, helvetica, sans-serif;
> }
>
> a:link, a:visited
> {
> font-family: verdana, arial, helvetica, sans-serif;
> color: #d32525;
> border-bottom: 1px dashed #d32525;
> text-decoration: none;
> }
> a:hover
> {
> font-family: verdana, arial, helvetica, sans-serif;
> color: #d32525;
> border-bottom: 1px solid #d32525;
> text-decoration: none;
> }
> -->
> </style>
> </head>
> <body>
> <a href="http://links.10026.com/?link=http://www.microsoft.com/">This is just a link</a>
> </body>
> </html>
> ---
> Any idea'?
> I also found out, if I put a <p> </p> below the <a href...> in the
> code above, everything works fine.
> I'm !!!!!
> HHHHEEELLLPPPPP! :o)
> Thank you in advance.
> M O J O

Strange css problem (bug?)

Hi,

I'm developing a asp.net application and ran into a strange css problem.

I want all my links to have a dashed underline and when they are
hovered, it must change to a solid line. Sounds simple, but it's not
working.

I've cooked down my output code to show you what I mean. If you run the
code below, there's no line under the link, but if you either remove the
<!DOCTYPE...> line or the body-part of the css decleration, everything
works fine.

Here's my code (watch for wrappings):

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

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Strange</title>
<style>
<!--
body
{
font-family: verdana, arial, helvetica, sans-serif;
}

a:link, a:visited
{
font-family: verdana, arial, helvetica, sans-serif;
color: #d32525;
border-bottom: 1px dashed #d32525;
text-decoration: none;
}

a:hover
{
font-family: verdana, arial, helvetica, sans-serif;
color: #d32525;
border-bottom: 1px solid #d32525;
text-decoration: none;
}
-->
</style>
</head
<body>
<a href="http://links.10026.com/?link=http://www.microsoft.com/">This is just a link</a>
</body
</html
----------------------

Any idea???

I also found out, if I put a <p> </p> below the <a href...> in the
code above, everything works fine.

I'm confused!!!!!

HHHHEEELLLPPPPP! :o)

Thank you in advance.

M O J OCheck out the css newsgroup

Let me know if you have any more questions...

Cheers,
Tom Pester

> Hi,
> I'm developing a asp.net application and ran into a strange css
> problem.
> I want all my links to have a dashed underline and when they are
> hovered, it must change to a solid line. Sounds simple, but it's not
> working.
> I've cooked down my output code to show you what I mean. If you run
> the code below, there's no line under the link, but if you either
> remove the <!DOCTYPE...> line or the body-part of the css decleration,
> everything works fine.
> Here's my code (watch for wrappings):
> ----------------------
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html;
> charset=windows-1252">
> <title>Strange</title>
> <style>
> <!--
> body
> {
> font-family: verdana, arial, helvetica, sans-serif;
> }
> a:link, a:visited
> {
> font-family: verdana, arial, helvetica, sans-serif;
> color: #d32525;
> border-bottom: 1px dashed #d32525;
> text-decoration: none;
> }
> a:hover
> {
> font-family: verdana, arial, helvetica, sans-serif;
> color: #d32525;
> border-bottom: 1px solid #d32525;
> text-decoration: none;
> }
> -->
> </style>
> </head>
> <body>
> <a href="http://links.10026.com/?link=http://www.microsoft.com/">This is just a link</a>
> </body>
> </html>
> ----------------------
> Any idea???
> I also found out, if I put a <p> </p> below the <a href...> in
> the code above, everything works fine.
> I'm confused!!!!!
> HHHHEEELLLPPPPP! :o)
> Thank you in advance.
> M O J O
Hi Tom,

Which group are you exactly talking about?

M O J O

tom pester wrote:
> Check out the css newsgroup
> Let me know if you have any more questions...
> Cheers,
> Tom Pester
>> Hi,
>>
>> I'm developing a asp.net application and ran into a strange css
>> problem.
>>
>> I want all my links to have a dashed underline and when they are
>> hovered, it must change to a solid line. Sounds simple, but it's not
>> working.
>>
>> I've cooked down my output code to show you what I mean. If you run
>> the code below, there's no line under the link, but if you either
>> remove the <!DOCTYPE...> line or the body-part of the css decleration,
>> everything works fine.
>>
>> Here's my code (watch for wrappings):
>>
>> ----------------------
>>
>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>>
>> <html>
>> <head>
>> <meta http-equiv="Content-Type" content="text/html;
>> charset=windows-1252">
>> <title>Strange</title>
>> <style>
>> <!--
>> body
>> {
>> font-family: verdana, arial, helvetica, sans-serif;
>> }
>> a:link, a:visited
>> {
>> font-family: verdana, arial, helvetica, sans-serif;
>> color: #d32525;
>> border-bottom: 1px dashed #d32525;
>> text-decoration: none;
>> }
>> a:hover
>> {
>> font-family: verdana, arial, helvetica, sans-serif;
>> color: #d32525;
>> border-bottom: 1px solid #d32525;
>> text-decoration: none;
>> }
>> -->
>> </style>
>> </head>
>> <body>
>> <a href="http://links.10026.com/?link=http://www.microsoft.com/">This is just a link</a>
>> </body>
>> </html>
>>
>> ----------------------
>>
>> Any idea???
>>
>> I also found out, if I put a <p> </p> below the <a href...> in
>> the code above, everything works fine.
>>
>> I'm confused!!!!!
>>
>> HHHHEEELLLPPPPP! :o)
>>
>> Thank you in advance.
>>
>> M O J O
>>
>
http://groups.google.com/group/comp...ets?gvc=2&hl=en

Let me know if it helped you or not...

Cheers,
Tom Pester

> Hi Tom,
> Which group are you exactly talking about?
> M O J O
> tom pester wrote:
>> Check out the css newsgroup
>>
>> Let me know if you have any more questions...
>>
>> Cheers,
>> Tom Pester
>>> Hi,
>>>
>>> I'm developing a asp.net application and ran into a strange css
>>> problem.
>>>
>>> I want all my links to have a dashed underline and when they are
>>> hovered, it must change to a solid line. Sounds simple, but it's not
>>> working.
>>>
>>> I've cooked down my output code to show you what I mean. If you run
>>> the code below, there's no line under the link, but if you either
>>> remove the <!DOCTYPE...> line or the body-part of the css
>>> decleration, everything works fine.
>>>
>>> Here's my code (watch for wrappings):
>>>
>>> ---------------------
>>> --
>>>
>>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>>> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>>>
>>> <html>
>>> <head>
>>> <meta http-equiv="Content-Type" content="text/html;
>>> charset=windows-1252">
>>> <title>Strange</title>
>>> <style>
>>> <!--
>>> body
>>> {
>>> font-family: verdana, arial, helvetica, sans-serif;
>>> }
>>> a:link, a:visited
>>> {
>>> font-family: verdana, arial, helvetica, sans-serif;
>>> color: #d32525;
>>> border-bottom: 1px dashed #d32525;
>>> text-decoration: none;
>>> }
>>> a:hover
>>> {
>>> font-family: verdana, arial, helvetica, sans-serif;
>>> color: #d32525;
>>> border-bottom: 1px solid #d32525;
>>> text-decoration: none;
>>> }
>>> -->
>>> </style>
>>> </head>
>>> <body>
>>> <a href="http://links.10026.com/?link=http://www.microsoft.com/">This is just a link</a>
>>> </body>
>>> </html>
>>> ---------------------
>>> --
>>>
>>> Any idea???
>>>
>>> I also found out, if I put a <p> </p> below the <a href...> in
>>> the code above, everything works fine.
>>>
>>> I'm confused!!!!!
>>>
>>> HHHHEEELLLPPPPP! :o)
>>>
>>> Thank you in advance.
>>>
>>> M O J O
>>
Try putting your style-block before the body tag. Inside the head you
should only refer to external css files.
Okay thanks, I'll give it a try.

M O J O

tom pester wrote:
> http://groups.google.com/group/comp...ets?gvc=2&hl=en
>
> Let me know if it helped you or not...
> Cheers,
> Tom Pester
>> Hi Tom,
>>
>> Which group are you exactly talking about?
>>
>> M O J O
>>
>> tom pester wrote:
>>
>>> Check out the css newsgroup
>>>
>>> Let me know if you have any more questions...
>>>
>>> Cheers,
>>> Tom Pester
>>>
>>>> Hi,
>>>>
>>>> I'm developing a asp.net application and ran into a strange css
>>>> problem.
>>>>
>>>> I want all my links to have a dashed underline and when they are
>>>> hovered, it must change to a solid line. Sounds simple, but it's not
>>>> working.
>>>>
>>>> I've cooked down my output code to show you what I mean. If you run
>>>> the code below, there's no line under the link, but if you either
>>>> remove the <!DOCTYPE...> line or the body-part of the css
>>>> decleration, everything works fine.
>>>>
>>>> Here's my code (watch for wrappings):
>>>>
>>>> ---------------------
>>>> --
>>>>
>>>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>>>> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>>>>
>>>> <html>
>>>> <head>
>>>> <meta http-equiv="Content-Type" content="text/html;
>>>> charset=windows-1252">
>>>> <title>Strange</title>
>>>> <style>
>>>> <!--
>>>> body
>>>> {
>>>> font-family: verdana, arial, helvetica, sans-serif;
>>>> }
>>>> a:link, a:visited
>>>> {
>>>> font-family: verdana, arial, helvetica, sans-serif;
>>>> color: #d32525;
>>>> border-bottom: 1px dashed #d32525;
>>>> text-decoration: none;
>>>> }
>>>> a:hover
>>>> {
>>>> font-family: verdana, arial, helvetica, sans-serif;
>>>> color: #d32525;
>>>> border-bottom: 1px solid #d32525;
>>>> text-decoration: none;
>>>> }
>>>> -->
>>>> </style>
>>>> </head>
>>>> <body>
>>>> <a href="http://links.10026.com/?link=http://www.microsoft.com/">This is just a link</a>
>>>> </body>
>>>> </html>
>>>> ---------------------
>>>> --
>>>>
>>>> Any idea???
>>>>
>>>> I also found out, if I put a <p> </p> below the <a href...> in
>>>> the code above, everything works fine.
>>>>
>>>> I'm confused!!!!!
>>>>
>>>> HHHHEEELLLPPPPP! :o)
>>>>
>>>> Thank you in advance.
>>>>
>>>> M O J O
>>>>
>
Hi Stefan,

Thanks for letting me know. Unfortunately it does not solve my problem.

:o(

Hmmmmm.

Thanks anyway.

M O J O

Stefan wrote:
> Try putting your style-block before the body tag. Inside the head you
> should only refer to external css files.
your problem is that an <a> is an inline element, not a block element, so it
does not have a border. normally you use the text-decoration to control
underlining, but there is no dashed version. you can try setting the display
style to block.

-- bruce (sqlwork.com)

"M O J O" <mojo@._no_spam_delete_this_newwebsolutions.dk> wrote in message
news:uNHXoi8qFHA.904@.tk2msftngp13.phx.gbl...
> Hi,
> I'm developing a asp.net application and ran into a strange css problem.
> I want all my links to have a dashed underline and when they are hovered,
> it must change to a solid line. Sounds simple, but it's not working.
> I've cooked down my output code to show you what I mean. If you run the
> code below, there's no line under the link, but if you either remove the
> <!DOCTYPE...> line or the body-part of the css decleration, everything
> works fine.
> Here's my code (watch for wrappings):
> ----------------------
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
> <title>Strange</title>
> <style>
> <!--
> body
> {
> font-family: verdana, arial, helvetica, sans-serif;
> }
>
> a:link, a:visited
> {
> font-family: verdana, arial, helvetica, sans-serif;
> color: #d32525;
> border-bottom: 1px dashed #d32525;
> text-decoration: none;
> }
> a:hover
> {
> font-family: verdana, arial, helvetica, sans-serif;
> color: #d32525;
> border-bottom: 1px solid #d32525;
> text-decoration: none;
> }
> -->
> </style>
> </head>
> <body>
> <a href="http://links.10026.com/?link=http://www.microsoft.com/">This is just a link</a>
> </body>
> </html>
> ----------------------
> Any idea???
> I also found out, if I put a <p> </p> below the <a href...> in the
> code above, everything works fine.
> I'm confused!!!!!
> HHHHEEELLLPPPPP! :o)
> Thank you in advance.
> M O J O

Strange danish letters bug.

Hello,
I have a web site and i use some danish text on some of the page.
The letters appear as expected when i view the site with the VS 2005 built
in web server.
When i deploy the site either by XCOPY or as precompiled on win 2k3 IIS 6,
then i loose my danish chars.
can someone tell me how i can best deal with this problem.
many thanks in advance
JJOn 13 Feb, 10:15, "Jens Jensen" <j...@.jensen.dk> wrote:
> Hello,
> I have a web site and i use some danish text on some of the page.
> The letters appear as expected when i view the site with the VS 2005 built
> in web server.
> When i deploy the site either by XCOPY or as precompiled on win 2k3 IIS 6
,
> then i loose my danish chars.
> can someone tell me how i can best deal with this problem.
> many thanks in advance
> JJ
Are you including charset="UTF-8" in your html headers? Might be the
browser not interpreting the encoding correctly, so if you set it
explicitly it could work (alternatively, ISO-88591 should also be a
suitable encoding for Danish).
Tobes
> Are you including charset="UTF-8" in your html headers? Might be the
> browser not interpreting the encoding correctly, so if you set it
> explicitly it could work (alternatively, ISO-88591 should also be a
> suitable encoding for Danish).
> Tobes
>
Hi Tobes, that is an interesting detail. Can you give an example of where i
need to write this?
I'm using a master page.
Thanks
JJ
I tried the following :
<head runat="server">
<title>Untitled Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-88591"/>
</head>
<head runat="server">
<title>Untitled Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>
non of them seems to help

Strange danish letters bug.

Hello,
I have a web site and i use some danish text on some of the page.
The letters appear as expected when i view the site with the VS 2005 built
in web server.
When i deploy the site either by XCOPY or as precompiled on win 2k3 IIS 6,
then i loose my danish chars.

can someone tell me how i can best deal with this problem.

many thanks in advance
JJOn 13 Feb, 10:15, "Jens Jensen" <j...@.jensen.dkwrote:

Quote:

Originally Posted by

Hello,
I have a web site and i use some danish text on some of the page.
The letters appear as expected when i view the site with the VS 2005 built
in web server.
When i deploy the site either by XCOPY or as precompiled on win 2k3 IIS 6,
then i loose my danish chars.
>
can someone tell me how i can best deal with this problem.
>
many thanks in advance
JJ


Are you including charset="UTF-8" in your html headers? Might be the
browser not interpreting the encoding correctly, so if you set it
explicitly it could work (alternatively, ISO-88591 should also be a
suitable encoding for Danish).

Tobes
Are you including charset="UTF-8" in your html headers? Might be the

Quote:

Originally Posted by

browser not interpreting the encoding correctly, so if you set it
explicitly it could work (alternatively, ISO-88591 should also be a
suitable encoding for Danish).
>
Tobes
>


Hi Tobes, that is an interesting detail. Can you give an example of where i
need to write this?
I'm using a master page.

Thanks
JJ
I tried the following :
<head runat="server">

<title>Untitled Page</title>

<meta http-equiv="Content-Type" content="text/html; charset=ISO-88591"/>

</head>

<head runat="server">

<title>Untitled Page</title>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>

</head>

non of them seems to help