|
|
The Gridview at least supports paging.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I am real new so if this is a no brainer I appologize
I have a real simple web page, when I debug it it works fine,when I copy the files to my internal server and try to run the page I get an error.
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'XXX.Global'.
Source Error:
Line 1: <%@ Application Codebehind="Global.asax.vb" Inherits="XXX.Global
What is this error and how do I go about resolving it? Do I need to re-build somethign onteh server or have it re-build something?
|
|
|
|
|
make sure that you have the DLLs in the bin folder.
|
|
|
|
|
I have a problem with a child window using the parent's FORM to do a submission/post to open a new window. This is being blocked by IE7. This is happening when accessing an external website that is not listed in the IE7 pop-up blocker allow list.
If the current page does a FORM submission/post to target "_blank" then this is allowed and a new window pops up. However, if the new child window calls opener.top.document.someForm.submit(); then this is blocked.
I am developing a website and I don't want to tell users how to setup their popup blocker. I wish to find a way to get around this problem. Does anyone know how to allow a child window use it's parent window's form to do a submission/post to target "_blank"? without being stopped by IE7 pop-up blocker?
|
|
|
|
|
the parent window contains the main form with all the hidden input elements for posting & also correct URL, etc. the child windows know nothing about the URL nor does it have any forms of it's own. the child window would call the parent window's form to submit... to OpenDoc.asp to open a new child window. I do not want the child window to open another child window within itself. Only the parent window should be allowed to open many child windows.
Get what I mean?
I even tried writing a auxillary function in the parent window to openDoc()... and the child window calls this openDoc in the parent window. But this still gets blocked. It's like as if IE7 knows the original caller.
|
|
|
|
|
|
Hi,
How can I calculate the size of the parameters that I supply to a web service method?
thanks,
- ferudun
|
|
|
|
|
ajax control not working properly while visibile control is false
parthiban
|
|
|
|
|
Try reading the guide on how to ask questions. What control ? Is it a server control ? If it's not visible, it may not even be on the page, and even if it is, what do you expect it to do ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
you can't. XML is a format for text data. It can contain an image, in a CDATA section, but unless the XML is also HTML and contains an img tag, and is shown in a browser, an XML viewer is never going to show an image, it's going to show the text inside the XML. Even then, you need an img tag to an external image, not to any image inside the XML
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
i want to display only xml data without tags in iframe .
|
|
|
|
|
srinivas431 wrote: i want to display only xml data without tags
Which tag are you talking about??
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
i created an xml file.it contain some information.i.e
<title>hello
hai fjshfdf dsjfjdf fndfidjf hfsdifhs shfsiof fhdsfhsf sfhdsfh
i want to display the xml information in "IFRAME" .IT SHOULD DISPLAY ONLY INFORMATION BUT NOT TITLE,P TAGS.
|
|
|
|
|
Use the "Ignore HTML" option when you post markup code.
To display xml, you use an xsl transform to transform it into an xhtml document.
Introduction to XSLT[^]
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
srinivas431 wrote: hai fjshfdf dsjfjdf fndfidjf hfsdifhs shfsiof fhdsfhsf sfhdsfh
We understand 'hai' is a variant of 'hi'. But what is that series of strings that is following it? Any base64 encoded?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
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,
....content
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!
|
|
|
|
|
Half of your code doesn't show up. Use the "Ignore HTML" option when you are posting markup code.
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
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!
|
|
|
|
|
I guess, maybe. the path of CSS file in popup window is wrong??
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
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.
|
|
|
|
|
I have the following in .aspx page:
<img src="btn_print.gif" OnClick="javascript:OpenSummaryPage();"/>
<input id="hdShowComment" type=hidden value="0" />
The OpenSuin .js file
function OpenSummaryPage()
{
with(aspnetForm)
{
var url ="summary.aspx?comment=" + hdShowComment.value;
window.open(url);
}
}
The function in ascx.cs page is actually like this:
public string ReturnVisibility()
{
string divCssClass= "CssShowDiv";
if (Page.Request.Url.ToString().IndexOf("page1.aspx") > 0)
{
divCssClass= "CssHideDiv";
}
return divCssClass;
}
In .css file:
.CssShowDiv{DISPLAY: true}
.CssHideDiv{DISPLAY: none}
Thanks for help!
|
|
|
|
|
vicky457 wrote:
The javascript: protocol is only used if you put the Javascript in an url. If you use it anywhere else, it isn't recognised as a protocol but it becomes a label instead.
As you are using xhtml, argument names have to be lower case.
<img src="btn_print.gif" onclick="OpenSummaryPage();"/>
vicky457 wrote: var url ="summary.aspx?comment=" + hdShowComment.value;
Use the getElementById to access elements in the page.
var url = "summary.aspx?comment=" + document.getElementById('hdShowComment').value;
vicky457 wrote: .CssShowDiv{DISPLAY: true}
"true" is not a valid value for the display style. Use the value "block" to display a block element (e.g. a div) and the value "inline" to display an inline element (e.g. a span).
Have you verified that the css really is used on the page? You can for example add a background color or a border to some element on the page to see if it's used.
Css files are cached longer than pages, so an older version of the css file might be used. Press ctrl+F5 to reload the page and all files it uses.
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
I just found out the problem is caused by a stupid mistake. There is duplicated CssClass is defined, one is in Master page and is called CssHideDiv, the other is in .css file and is called CssHiddenDiv. The open widnow is not using master page, but is using CssHideDiv. This is a mistake introduced by multiple developers defining the same css class.
Thanks for everybody's help! I appreciate it!
|
|
|
|
|
Guffa wrote:
No, that's not the code that you are using.
good caught... I didn't notice that one.. great answer..
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|