Click here to Skip to main content
15,898,222 members
Home / Discussions / Web Development
   

Web Development

 
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 
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 
vicky457 wrote:
in ascx.cs page:
public string ReturnVisibility()
{
string class= "CssShowDiv";


No, that's not the code that you are using. You can't name a variable "class", so that code doesn't even compile.

Show the code that you are actually using. I can't see what's wrong with the code that you are using by looking at some other code that you are not using.

vicky457 wrote:
if (Page.Request.Url.ToString().IndexOf("page1.aspx") > 0)


If you have as condition that the value that IndexOf returns should be greater than zero, that means that if the string is found at the first position in the url, the condition will be false. Not that the url is likely to be only the page name, but you should be aware of it.

vicky457 wrote:
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.


The server isn't even aware that the page will be shown in a popup, and none of the code that you have shown would act any different in a popup, so the problem is in some of the code that you haven't shown.

Experience is the sum of all the mistakes you have done.

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 
GeneralRe: Server Explorer not visible. Pin
Vasudevan Deepak Kumar13-Nov-07 20:58
Vasudevan Deepak Kumar13-Nov-07 20:58 
Questionweb services question Pin
jesarg12-Nov-07 9:47
jesarg12-Nov-07 9:47 

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.