Click here to Skip to main content
15,893,337 members
Home / Discussions / Web Development
   

Web Development

 
Questionhow to display xml file in iframe Pin
srinivas43113-Nov-07 18:12
srinivas43113-Nov-07 18:12 
AnswerRe: how to display xml file in iframe Pin
Michael Sync13-Nov-07 19:44
Michael Sync13-Nov-07 19:44 
GeneralRe: how to display xml file in iframe Pin
srinivas43113-Nov-07 20:57
srinivas43113-Nov-07 20:57 
AnswerRe: how to display xml file in iframe Pin
Guffa13-Nov-07 22:20
Guffa13-Nov-07 22:20 
JokeRe: how to display xml file in iframe Pin
Vasudevan Deepak Kumar14-Nov-07 19:43
Vasudevan Deepak Kumar14-Nov-07 19:43 
QuestionShow/hide Div tag in popup window??? Pin
vicky45713-Nov-07 8:52
vicky45713-Nov-07 8:52 
GeneralRe: Show/hide Div tag in popup window??? Pin
Guffa13-Nov-07 11:07
Guffa13-Nov-07 11:07 
GeneralShow/hide Div tag in popup window??? Pin
vicky45713-Nov-07 13:10
vicky45713-Nov-07 13:10 
Hi all,

I have a div tag in my user control, and I want to show/hide this div based on which page I am on. So here is what I have now.

in .ascx page,
<div id="div1" class="<%=ReturnVisibility()%>" >
....content
</div>


in ascx.cs page:
public string ReturnVisibility()
{
string class= "CssShowDiv";
if (Page.Request.Url.ToString().IndexOf("page1.aspx") > 0)
{
class= "CssHideDiv";
}
return class;
}

The result is that it works fine in a normal window. But if I open the page in a popup window using javascript, the div tag content always shows on the page, even though the class is CssHideDiv.

Can anybody give me a hint what's wrong with my code?

Thank you very much!

GeneralRe: Show/hide Div tag in popup window??? Pin
Michael Sync13-Nov-07 19:43
Michael Sync13-Nov-07 19:43 
AnswerRe: Show/hide Div tag in popup window??? Pin
Guffa14-Nov-07 2:55
Guffa14-Nov-07 2:55 
GeneralRe: Show/hide Div tag in popup window??? Pin
vicky45714-Nov-07 13:58
vicky45714-Nov-07 13:58 
AnswerRe: Show/hide Div tag in popup window??? Pin
Guffa14-Nov-07 19:43
Guffa14-Nov-07 19:43 
GeneralRe: Show/hide Div tag in popup window??? Pin
vicky45723-Nov-07 8:39
vicky45723-Nov-07 8:39 
GeneralRe: Show/hide Div tag in popup window??? Pin
Michael Sync17-Nov-07 5:10
Michael Sync17-Nov-07 5:10 
QuestionTable Schema Pin
Civic0613-Nov-07 6:59
Civic0613-Nov-07 6:59 
AnswerRe: Table Schema Pin
andyharman13-Nov-07 7:24
professionalandyharman13-Nov-07 7:24 
QuestionSOAP message handler Pin
Spack13-Nov-07 1:28
Spack13-Nov-07 1:28 
QuestionAuto Suggest textbox in a page. Pin
mgr_2k713-Nov-07 0:04
mgr_2k713-Nov-07 0:04 
AnswerRe: Auto Suggest textbox in a page. Pin
Christian Graus13-Nov-07 0:30
protectorChristian Graus13-Nov-07 0:30 
GeneralRe: Auto Suggest textbox in a page. Pin
mgr_2k713-Nov-07 17:01
mgr_2k713-Nov-07 17:01 
GeneralRe: Auto Suggest textbox in a page. Pin
Michael Sync13-Nov-07 19:39
Michael Sync13-Nov-07 19:39 
AnswerRe: Auto Suggest textbox in a page. Pin
Vasudevan Deepak Kumar16-Nov-07 1:38
Vasudevan Deepak Kumar16-Nov-07 1:38 
QuestionServer Explorer not visible. Pin
mgr_2k712-Nov-07 16:56
mgr_2k712-Nov-07 16:56 
AnswerRe: Server Explorer not visible. Pin
Michael Sync12-Nov-07 18:15
Michael Sync12-Nov-07 18:15 
GeneralRe: Server Explorer not visible. Pin
mgr_2k712-Nov-07 23:30
mgr_2k712-Nov-07 23:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.