|
greendragons wrote: ..i wanna create such contols on client side how to do?
These are nothing but DIV . You can easily create them using DIV by just expanding and collapsing DIV control using javascript.
Or You can have a look into AJAX Accordion Control
|
|
|
|
|
Thnx i'll try..if i have a problem in ajax accordion i'll ask u..right now im going to bed..*g'nite evry1*
|
|
|
|
|
|
One page containg two frame....with help of SHDocVw.InternetExplorer object i have to excess second frame.
Problem is that when try to loop through below code
Dim HTMLDoc As mshtml.HTMLDocument
HTMLDoc = oIE.Document
For i As Integer = 0 To HTMLDoc.frames.length - 1
Dim f1 As mshtml.IHTMLWindow2 = CType(HTMLDoc.frames.item(i), mshtml.IHTMLWindow2)
MessageBox.Show(f1.document.body.innerHTML)
Next
while access through second one it gives me that "Access is denied."
after searching i come to know that this is happen dur to cross page scripting of frame....
here i have see that second frame point to different domain.
is there any solution for this problem....???
thank you.
|
|
|
|
|
No. For security reasons, scripts cannot access other domains.
You can try doing a similar code on the server side, that is, the .net (and not the browser script) would query the page and read the HTML for you. This can be achieved throught the System.Net.WebRequest class. After gathering all the HTML, you can just write it in a file or something.
Regards,
Leonardo Muzzi
|
|
|
|
|
hi,
I m using MS-Index Services, everything doing well
But i want to Retrieve Office Document(doc,xls)html etc Metadata
means some text area just like google web site Result.
somebody help me for configuration and query for retrieve documents text part.
|
|
|
|
|
Hi there! I'm pretty much unfamiliar with .net and our developer is out. I'm hoping someone could help me with the following. I was told to insert this code into the page load event of the master page file:
if (Request.Headers["User-Agent"] != null && (Request.Browser["IsMobileDevice"] == "true" || Request.Browser["BlackBerry"] == "true" || Request.UserAgent.ToUpper().Contains("MIDP") || Request.UserAgent.ToUpper().Contains("CLDC")) || Request.UserAgent.ToLower().Contains("iphone")) ||
Request.UserAgent.ToUpper().Contains("BREW")) ||
Request.UserAgent.ToUpper().Contains("sony")) ||
Request.UserAgent.ToUpper().Contains("symbian")) ||
Request.UserAgent.ToUpper().Contains("nokia")) ||
Request.UserAgent.ToUpper().Contains("samsung")) ||
Request.UserAgent.ToUpper().Contains("mobile")) ||
Request.UserAgent.ToUpper().Contains("windows ce")) ||
Request.UserAgent.ToUpper().Contains("epoc")) ||
Request.UserAgent.ToUpper().Contains("opera mini")) ||
Request.UserAgent.ToUpper().Contains("nitro")) ||
Request.UserAgent.ToUpper().Contains("j2me")) ||
Request.UserAgent.ToUpper().Contains("netfront")) ||
Request.UserAgent.ToUpper().Contains("mot")) ||
Request.UserAgent.ToUpper().Contains("up.browser")) ||
Request.UserAgent.ToUpper().Contains("up.link")) ||
Request.UserAgent.ToUpper().Contains("audiovox")) ||
Request.UserAgent.ToUpper().Contains("ericsson")) ||
Request.UserAgent.ToUpper().Contains("panasonic")) ||
Request.UserAgent.ToUpper().Contains("philips")) ||
Request.UserAgent.ToUpper().Contains("sanyo")) ||
Request.UserAgent.ToUpper().Contains("sharp")) ||
Request.UserAgent.ToUpper().Contains("sie-")) ||
Request.UserAgent.ToUpper().Contains("portalmmm")) ||
Request.UserAgent.ToUpper().Contains("blazer")) ||
Request.UserAgent.ToUpper().Contains("avantgo")) ||
Request.UserAgent.ToUpper().Contains("danger")) ||
Request.UserAgent.ToUpper().Contains("palm")) ||
Request.UserAgent.ToUpper().Contains("series60")) ||
Request.UserAgent.ToUpper().Contains("palmsource")) ||
Request.UserAgent.ToUpper().Contains("pocketpc")) ||
Request.UserAgent.ToUpper().Contains("smartphone")) ||
Request.UserAgent.ToUpper().Contains("rover")) ||
Request.UserAgent.ToUpper().Contains("ipaq")) ||
Request.UserAgent.ToUpper().Contains("au-mic")) ||
Request.UserAgent.ToUpper().Contains("alcatel")) ||
Request.UserAgent.ToUpper().Contains("ericy")) ||
Request.UserAgent.ToUpper().Contains("vodaphone/")) ||
Request.UserAgent.ToUpper().Contains("iphone.")) ||
Request.UserAgent.ToUpper().Contains("iPhone.")) ||
Request.UserAgent.ToUpper().Contains("ipod.")) ||
Request.UserAgent.ToUpper().Contains("iPod.")) ||
Request.UserAgent.ToUpper().Contains("wap1.")) ||
Request.UserAgent.ToUpper().Contains("wap2.")) ||
Request.UserAgent.ToUpper().Contains("lg-"))
{
Response.Redirect("http://app.mobile.com/shops/web/shop");
}
And here's my master file which I keep breaking when I try inserting the code above:
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Web.Caching;
using System.Xml;
/// <summary>
/// Summary description for default
/// </summary>
public partial class _default : System.Web.UI.Page
{
private string FeaturedXmlDocPath = ConfigurationSettings.AppSettings["ShopWebsitePath"].ToString() + @"\bake\xml\featured_recipe.xml";
protected void Page_Load(object sender, EventArgs e)
{
XmlDocument MyDoc = GetXmlDoc();
FeaturedImage.ImageUrl = "~" + MyDoc.SelectSingleNode("/featuredRecipe/homepageImageUrl").InnerText;
FeaturedLink.NavigateUrl = "~/bake/recipe.aspx?id=" + MyDoc.SelectSingleNode("/featuredRecipe/recipeId").InnerText;
//FeaturedLink.NavigateUrl = "~/bake/default.aspx";
}
private XmlDocument GetXmlDoc()
{
if (Cache["FeaturedXmlDoc"] != null)
{
Trace.Write("FeaturedXmlDoc from cache");
return (XmlDocument)Cache["FeaturedXmlDoc"];
}
else
{
Trace.Write("FeaturedXmlDoc from file system");
// Load the document from the file system
XmlDocument MyDoc = new XmlDocument();
MyDoc.Load(FeaturedXmlDocPath);
// Create cache file dependency
CacheDependency MyDepends = new CacheDependency(FeaturedXmlDocPath);
// Insert doc and dependency object to cache
Cache.Insert("FeaturedXmlDoc", MyDoc, MyDepends);
// return the doc
return MyDoc;
}
}
}
I would really appreciate any help or direction you could provide.
Thanks so much!
Tammy
|
|
|
|
|
Tammy Marchi wrote: Hi there! I'm pretty much unfamiliar with .net and our developer is out.
You should rather ask to be out forever.
I really have never seen so may OR conditions ever.
Try putting the code here in your master page...
protected void Page_Load(object sender, EventArgs e)
{
XmlDocument MyDoc = GetXmlDoc();
FeaturedImage.ImageUrl = "~" + MyDoc.SelectSingleNode("/featuredRecipe/homepageImageUrl").InnerText;
FeaturedLink.NavigateUrl = "~/bake/recipe.aspx?id=" + MyDoc.SelectSingleNode("/featuredRecipe/recipeId").InnerText;
}
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
You are my hero! Thank you so much!
|
|
|
|
|
You should start learning ASP.NET[^]
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|
|
Gentleman:
I just added a Java window to an ASP web page which shows an enlarged graphic. This works perfectly in Explorer, however it does something unusual in Firefox. Firefox opens a user request interface which asks the following:
What should Firefox do with this file:
Open With ... etc
or
Save
Neither option will open the new graphic in the Java window as it does in Explorer. Following is the code that I am using to open call the Window and get the graphic:
IN THE HEADER
<%--Large WIndow Scripts --%>
<script type="text/javascript">
function OpenLargeWindow1(image)
{
window.open("Ads/" + image, "", " width=760,height=300,top=200,left=200,scrollbars=0").focus();
}
</script>
IN THE BODY
<a href="javascript:OpenLargeWindow1('gears33.png')">
<asp:Image ID="Image18" runat="server" ImageUrl="~/Ads/plus_sign.png" /></a>
Does Firefox require a proprietary code or what option in the select process will put the graphic in the window if any? OR ???.
Any insight to this dilemma is appreciated.
Thank You, Pat
modified on Friday, August 7, 2009 1:24 PM
|
|
|
|
|
Hi I need a expression which does not contains the following characters \ / : * ? " < > |
Pankaj
|
|
|
|
|
|
Subject says it: I'm having trouble tying into the "onLoad" client side event of a stock 1.1 DataGrid. What I'm trying to do seems to be pretty basic, but the Grid is being very stubborn
What I have on the server page:
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
dgBillDeterminant.Attributes.Add("onLoad", "loadGrid();")
End Sub
"loadGrid()" is a javascript method contained within "GridBehavior.js" that is src'd into the ascx markup page. Currently, it just declared a var x and sets it = 1 in hopes of checking for access to the function, but the breakpoint is never being hit.
....yes, Client side script debugging is enabled through IE,
and yes, "GridBehavior.js" is displaying in my running documents when execution reaches my page.
Can anyone provide an example of how this event and handler should be stitched together?
"I need build Skynet. Plz send code"
|
|
|
|
|
You can try out the approach as I posted earlier..Can you tell me what you are trying achieve at runtime?
If you want to do some look and feel changes in the Grid at runtime then check out [^].
modified on Friday, August 7, 2009 12:11 PM
|
|
|
|
|
Hi All
I have one doubt,how to pass array to javascript function from asp.net aspx.cs page.can you help me?
Thanks in Advance
|
|
|
|
|
You can send it through embeding server side code -
var jsVariable = '<%= ServerSideVaraible %>';
Anothe approach could be you can use some hidden variable -
<asp:HiddenField ID="HiddenField1" runat="server" />
Once the value is set in the server side you can get the value in javascript -
var sValue = document.getElementById('HiddenField1').value;
If you use AJAX then it would altogether different.
Anyway, let me know if you need any further detail.
|
|
|
|
|
Arindam Sinha wrote:
Anothe approach could be you can use some hidden variable -
How will you hold the array in the value of hidden varaible?
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Manas...I think any delimeter separator string would suffice...
|
|
|
|
|
You might look at this:
ClientScript.RegisterArrayDeclaration("myarray", "'code project','manas','bhardwaj'");
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
use
var x = ["24", "43", "56"];
But I wonder why do you require to pass an array. You can pass the data in a hidden field, and get the data through javascript.
You can use comma separated string to show your data.
|
|
|
|
|
Hi guys
I got this problem; u see I'm trying to add a page to a fund rising website; The page would enable people to donate money ...I've done some research about the subject, and i realized that there are services out there that you simply add them , and they will take care of everything; that they are secure and they provide the gateway account as well as marchants accounts...there is no coding to it....so I'm asking for advice about the subject and if anyone know any service provider that I might buy the service from...
I hope I explained it well
thnx in advance
Yours
Abraham
|
|
|
|
|
Have you check this?[^]
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|
|
Checking it now and luks amazing...thnx
|
|
|
|
|
No problem.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|