.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Easy Web
Imran Ghani
Post New Web Links

What is this Mysterious Javascript code in my asp.net website doing???

Posted By:      Posted Date: August 25, 2010    Points: 0   Category :ASP.Net
 

I have an asp.net website(using Visual studio 2008), when i debug the site on my development machine, it loads well with out any errors. At this point i leave the site running in debug mode but i notice strange things. 


0). When i right click the file and check the properties, it has a URL property whose value is http://cdn1.predictad.com/scripts/publishers/suggestmeyes/predictadme.js?si=7495


1). In my sites Solution Explorer, there appears a folder called "Windows Internet Explorer". Under this folder, there is a file called predictadme.js?si=7495. When i open that file, it contains the code below. (Apologies, i failed to format the code, only saw options for C#, C++, CSS, VB, XML/HTML, Razor, SQL when  trying to insert code and i think the code below is non of these)


I dont have idea where this code is coming from, but the presence of the string .facebook. makes me suspicious. I have a feeling some thing fishy is happening but am really not any where near good at javascript (scripts), so am seeking


View Complete Post


More Related Resource Links

call JavaScript - jQuery code from ASP.NET Server-Side

  
jQuery got so close to me lately that I can see myself adding the scripts to my project almost unconsciously. The thing is, jQuery is very useful for me, in almost all situations and it has been a do or die enhancement for all my project since I first put my hands on it.

Of course while using it, you encounter few situations which need a bit of research to solve, mostly when you are trying to combine it with some other technologies like: UpdatePanels and ASP.NET Ajax. For instance there are many situations when I would like to run some jQuery magic based on some decision that I make on the server side.

call JavaScript - jQuery code from ASP.NET Server-Side

  
jQuery got so close to me lately that I can see myself adding the scripts to my project almost unconsciously. The thing is, jQuery is very useful for me, in almost all situations and it has been a do or die enhancement for all my project since I first put my hands on it.

Of course while using it, you encounter few situations which need a bit of research to solve, mostly when you are trying to combine it with some other technologies like: UpdatePanels and ASP.NET Ajax. For instance there are many situations when I would like to run some jQuery magic based on some decision that I make on the server side

Simple Captcha Code in Javascript

  
The article Simple Captcha Code in Javascript was added by miya2008 on Tuesday, June 29, 2010.

Here I create a Cptcha Code With JavaScriptStep 1:->In the (.aspx) page we write the following Code:->%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>!DOCTYPE

Automatically Execute Code at certain time from website

  

Is there a way to trigger a piece of code to execute at a certain time once a week?

I basically want my website to send out a reminder email every sunday. I have a function called SendReminder() and I would like to know if it is posible for it to run by itself because at the minute I have to press a button to run it.

Thanks


What's the problem in my javascript's code to get ClientID Property?

  

 

 Hi all.

I wirte a simple java script code to get ClientID of controls on the webform. The code is like:

<script type="text/javascript" language="javascript">

var butt = $find("<%= Button1.ClientID %>");

alert(butt);

 <script>

But when i run it , i have a problem. The probmel is:

 

Server Error in '/' Application.

The Controls collection cannot be modified because t

javascript in code behind

  

Hi all,

i want to write javascript for lightbox effect

for that i am usingthe following code but it is giving javascript error.

Response.Write("<Script Language=JavaScript>window.open('frmPreviewQuestionnaire.aspx?qName=" + name + "','Form','location=no,scrollbars=yes,resizable=no,status=no,fullscreen=no,left=250px,top=150px,width=450px,height=300px');</script>");


can anybody help me plz..



Browser window is opening up on the second click with javascript code

  

Hi,

I am trying to set a javascript code to open up a new browser window with this URL that exists like shown below.

On the first click nothing happens but on the second click the browser window is opening up.

 

How is it possible to make it open up on the first click ?

                                <asp:ImageButton ID="ImageButton3" runat="server" Height="84px" 
                                    ImageUrl="~/images/1.jpg" Width="165px" 
                                    onclick="ImageButton3_Click" />

    protected void ImageButton3_Click(object sender, ImageClickEventArgs e)
    {
        String openURL = "javascript:window.open('" + "Folder1/testing.aspx" + "');return false;";
        ImageButton3.OnClientClick = openURL;
    }


 


Call Server Side Code from Javascript in VB.NET

  

Hi

Could anyone give me an example how to call Server Side Function from javascript and then I want to call that javascript function on Button OnClick () Event.


Thanks in Advance

Shabbir



Javascript code to copy selected dropdown item to clipboard

  
Does anyone know how I can do this to get the text onto the clipboard?  <input id="Copy" type="button" value="Copy Url" runat="server" onclick="copy();" style="vertical-align: top;" visible="false"/><script type="text/javascript"> function copy() { var sel = document.getElementById("DropDownList1"); var text = sel.options[sel.selectedIndex].value; ??? } </script> </body>  

Changing case of all URLs in the website source code from Sentence to Lower

  
I only want to change case (Mixed to small) of URL in HREF attribute, nowhere else. This is just for convention purpose. eg changing   Its <a href="http://www.abc.com/S pecial-E dition.aspx">Special Ediation</a>.  View <a href="http://www.abc.com/O ther-N ews.aspx">Other News</a>.   to   Its <a href="http://www.abc.com/s pecial-e dition.aspx">Special Ediation</a>.  View <a href="http://www.abc.com/o ther-n ews.aspx">Other News</a>.

Can you call a javascript function from code behind?

  
Call you cal a javascript function from the code behind? If so how??? 

I am using the following code to check to see if a panel is visible or not before running javascript

  
Using VB, VS 2010, when I run the following code, I get an error because it executes the code even if I have Panel7 set to invisible.  I am trying to use javascript to see if the panel is visible or not before executing the code.var panelRef7 = document.getElementById('<%= Panel7.ClientID %>'); if (panelRef7) { $find('DragP7').add move(savePanelPosition); }  What am I doing wrong?   Thanks

execute a javascript function in code page

  
I use js function in source page and call that js function as below in Source page<a href="javascript:;" onclick="openwin('Sample.aspx?DID=<%#Eval("UID") %>', '', '700','300','yes'); return false ">I need to call this function from vb.net code page.....how to solve this ........???????????Give ur ideas...............

Deployment of Website created VS2005 with VB.Net code behind

  
Hi everyone, I am newbie creating websites.  This is my first and I am having problems with deployment and accessing.  Either I am doing something wrong or I am leaving something out.  I have tried several different methods of deployment using VS 2005 Professional version.  The website will be used by internal users, using company's own servers.  Deployment methods appear to be successful, but I do not see how to run the website.  I guess I need the step by step instructions on deployment.

Calling csharp code from Javascript

  
Hi, Is it possible to call a c# code block from Javascript in Sharepoint 2010? I am using redirects to pages at the moment to achieve the effect, but the results are far from desirable. Any help would be much appreciated.   Cheers, M

javascript in code behind

  
hey dere, i have a problem in firing javascript.What i want to do is .. on click of a particular event i want to check for a particular condition.if it doesnt satisfies the condition then i want to fire the javascript. please xplain in details where to write the javascript and how to fire it in code behind. thnks in advance  

javascript code for web drop down

  
i need a code help me to change web drop down datsource id from java script means: i have 2 drop downs the first select a type of the datasource of the another when the first selection changed , another dropdown databind to respect datasource id please help me (without need to postback this page) quickly . 
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend