473,320 Members | 1,713 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Strange issue in aspx pages

Hi

I was writing some aspx pages when i experimented a strange issue.
I have a div tag like this:
<div id="divCourses1" style="<%=GetDisplayStyle(eidlevel,
arrIdLevel[0])%>">
Now, as long as i don't switch the page to HTML into Design everything
works fine.
But if i switch the page into Design and therefore into HTML again,
then all the attribute style and its content disappear.
I have tryed many times and the behavior is always the same.
Anyone knows anything about that issue? It's a known issue?
I would avoid to use html runat-sever objects, if possible.

Thanks.

Feb 8 '06 #1
2 1187
2003 does bad things when switching between HTML and Design view, it is a
known issue and the only way to fix it is to migrate your code to 2005 :(

The solution I would recomment is to your a runat=server object, but i see
you have reservations against that.

Karl

--
http://www.openmymind.net/

"Joneleth" <Jo*********@hotmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Hi

I was writing some aspx pages when i experimented a strange issue.
I have a div tag like this:
<div id="divCourses1" style="<%=GetDisplayStyle(eidlevel,
arrIdLevel[0])%>">
Now, as long as i don't switch the page to HTML into Design everything
works fine.
But if i switch the page into Design and therefore into HTML again,
then all the attribute style and its content disappear.
I have tryed many times and the behavior is always the same.
Anyone knows anything about that issue? It's a known issue?
I would avoid to use html runat-sever objects, if possible.

Thanks.

Feb 8 '06 #2

Karl Seguin [MVP] wrote:
2003 does bad things when switching between HTML and Design view, it is a
known issue and the only way to fix it is to migrate your code to 2005 :(
ok.
The solution I would recomment is to your a runat=server object, but i see
you have reservations against that.

Karl


After trying for several minutes i realized you're right. :)
I see no other way than using server-side objects to avoid that bug.

Thanks.

Feb 8 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: SStory | last post by:
for one page in my application something weird happens. It shows this error. Unable to find script library '/aspnet_client/system_web/1_1_4322/WebUIValidation.js'. then it turns black,...
2
by: | last post by:
Let me explain step wise. 1.. I have a site running on port 5555 2.. If contains web.config file with contains <Forms> authentication. 3.. The site contains a sub-folder named "MembersArea"...
7
by: dw | last post by:
Hello, all. I created a few Label objects, and deleted some. However, later when I was using the codebehind page in VS .NET 2003 to set the Text of the existing labels, I noticed that when I hit...
0
by: Jerry Morton | last post by:
Hi, This is a strange one. I have the following ASP.NET application: /default.aspx /login.aspx /web.config /bin/myapp.dll /secure/aCommonSecurePage.aspx
0
by: z. f. | last post by:
Hi, i have asp.net vb.net wep application. i try to investigate performance issue. so first i built a vb.net windows application that makes http requests to my pages and show me the time taken...
7
by: Wayne Wengert | last post by:
I have a set of aspx pages created using VSNET 2003/VB. The web site includes a java based menu. For a specific selection I need to change the value of a variable in a common class. I set the menu...
3
by: Purti Malhotra | last post by:
Hi All, In our Web hosting environment we are using Virtual hosting i.e. multiple websites are on one server and multiple domains are pointing to a single website. Issue: We have two domains...
6
by: Hannibal111111 | last post by:
I am getting a strange situation with a .NET 1.1 web application that we have deployed. I have made an update to a code behind page in 1 file, and then made an update to another code behind page. ...
1
by: Victor | last post by:
Hi guys, I have a very strange problem with scriptmanager here. I want to load a js (which is embed in the project) but everytime i try to load that, it gives me error like Specified argument was...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.