Putting Javascript Source Then Immediately The Page Not Working?
Jun 15, 2010When I put the following code on my page.
<script type="text/javascript" src="../../Scripts/jquery-1.4.1.js" />
Then anything below will became nothing.
When I put the following code on my page.
<script type="text/javascript" src="../../Scripts/jquery-1.4.1.js" />
Then anything below will became nothing.
I am trying to put google adsense on my default.aspx that has a masterpage. I am not sure I am doing it correctly. Is there a particular place I should be pasting their java script ?
View 7 RepliesIs there is any way to hide asp.net page view source?
View 4 RepliesI'm working with jquery.ajax() I'm getting a object and I use jTemplate to write the html. My problem is now that I need to place the id of the object in a input hidden. I have no idea how I should do this. I tried to do a <script> in the template.htm with jquery to place the id in hidden but with no luck.
this is my jTemplate html file
<div style="background-color: #ccc">
{$T.Email}
</div>
<div style="background-color: #ddd">
{$T.Password}
</div>
This is my jquery
[code]....
I am developing one asp.net application and I have a requirement that I need to fetch html of page: [URL] I can easily do it with asp.net code using httpwebrequest but I have to do it from client side either using javascript or JQuery or any other thing. This is required becaues REQUEST TO GET PAGE [URL] MUST COME FROM CLIENT AND NOT FROM SERVER DUE TO IP ISSUE.
View 4 RepliesWe have an ASP.NET 2.0 WebForms app that uses MS Ajax 1.0. It's working fine on all our environments (dev, test, IE6 VMs etc.). However, at the customer site the client side validation is not happening.We're currently trying to eliminate all the various factors and along the way we asked them to get their page source and send it to us, and we found something interesting.In our environment, our page has ASP.NET javascript in CDATA blocks:
<script type="text/javascript">
//<![CDATA[
. . .
//]]>
[code]....
This may be a red herring, but I'd like to eliminate it as the cause of the validation issues. whether specific configurations/patches/versions of ASP.NET will make it do this?
I have a web site that is highly dependant on a SQL Server 2008 database. I am using linq to sql to connect to the database and require the website to reflect database changes immediately. Currently the changes are only reflected once a postback occurs and the database is requeried.
Is there a way to get the asp.net page(s) to be alerted of an database change and then to reflect it immediately, or within seconds, on the display? I am aware that one can use the SQLDependency class and ADO.NET to do this, but am not aware of any linq to sql possibilities.
I have a link button on my page which has both an Oncommand event and an OnclientClickevent.
The idea is that the oncommand updates some data via a postback and redisplays the page with the updates. The onclientclick event opens a new window.
The new window is named so there is only ever one instance of it.
What I'm trying to do is this.
Open a new window (if its not already opened) and ensure it is on top of the parent window. The new window is a smaller size so the parent window is still visible beneath. On the first occurance the new window opens above, however when I refocus on the parent to click again, the new window updates but does not refocus by putting it back on top.
I am using UpdatePanel and UpdateProgress on my webform. On my page_Load, I am checking some of the session variable if thats null then I have to redirect to my other page. Now, as I have updatePanel, we cannot use Response.Redirect so I have this code to redirect to my other page after checking that session variable.
[Code]....
But the problem is that my page continues execution after this line. I want to immediate transfer my page to this other page just like Response.Redirect but it keeps executing and redirects at last. If it comes to this line of code, I immediately want to redirect to my other page.
An external server sends incoming SMS messages converted to HTTP requests into my sometimes very time-consuming .aspx page. If no response is returned to the external server in 20 seconds, this is considered as an timeout and the same message is sent to my aspx page again (and maybe again....The optimal solution for me would be that the aspx page reads the incoming message (as an HTTP request to the aspx page), starts the processing of the message in another thread, and immediately renders response back to the external server. The external server has no interest in other stuff than the HTTP status (normally 200). When the processing of the message is completed this results in an entry into the log file of the application.
View 2 RepliesI've always depended on putting a control on an aspx page and double-clicking in design view to create my VB page. But this isn't happening in my current project. It creates an inline script in my aspx page instead. Where is the option or preference or XML file or.... that controls this?
View 5 Repliessource of gridview details in page source.i am disabling and enabling in a server side and also i am using updatepanel too in the page.
View 4 RepliesIs there any way to render a normal view of asp.net MVC action onto an old .aspx WebForm using an MVC helper or some other method?
View 3 RepliesI'm incorporating some parts of an old asp application into a newly written mvc app. In most places I've separated out the data access and business logic into the model, and written new view's and viewmodels on the mvc side, although what I ended up with was not perfect, it works reasonably well.There's one area that's probably a bit too much work to do that. It uses an asp treeview and custom controls, and has lot's of code that just isn't partitioned very well. It's one of those 'well I wouldn't start here' situations, but unfortunately it's the code I have. As an application in it's own right it works well and has done for the past 5 years or so. Although it does want re-writing, that's probably more work than I wanted to do right now if I can get away with it.
The asp pages decend from a custom asp page, which itself decends from asppage and contains a custom DAL. What I'd really like to do, is 'paste' the page produced by this legacy asp page into the 'main' contentplaceholder area on an mvc form. I know I can incorporate standard asp pages into an mvc application, but that isn't what I'm trying to do as I want to use the master page from the mvc application.
I have java script code to set some of the properties of ajax controls.
the code is working OK If I put it in asp.net page but when I use content page and post the code in part of the code will not work which is changing the value of ajax control properties.
My page has textbox, checkbox, MaskedEditExtender and MaskedEditValidator. when the user check the box the mask property and some other properties should change.
the code is working ok but not the content page.
here is my code from asp.net page:
[code]....
I have used a radiobuttonlist to enable/disable the textbox in Grid View. I did this using javascript onclick event.
[Code]....
It is working fine when the page get refreshed too.
[Code]....
Then in a scenario, I have removed the radliobuttonlist items (items 2 and 3) dynamically. For the first time when its loaded its working without flaws. After a page is refreshing due to any serverside events, the javascript to enable/disable textbox is not working.
[Code]....
I have verified the HTML file, the radiobuttonlist is loaded without the onclick event.
Basically I want to take the following:And make it match the styling of the rest of the application.I am creating a custom error page in my C# based project and I want it to be able to show the same information that is displayed in the ASP.NET default error page. From fiddling with reflector I can see that this is generated through HttpException.GetHtmlErrorMessage() but when I try to use this in my exception it returns null.
View 3 RepliesI am writting a website using .net in some of my pages I need to use datagrid for showing some datas and for binding my data to datagrid I use object datasource something like below :
//this is
public class userData
{
private long userid = 0;
private string username = null;[code]....
and then in my apsx file I put an objectdatasource and bind the select statement to the GetUsersAmount() and then bind obejctdatasource to my datagrid but I think the way I've chosen is not efficient I just want to hear about your way of doing such these things.
I'm trying to save some content whenever a button/hyperlink is clicked using jquery.ajax (Using Asp.net 3.5). The logic is as follows:
Through .bind in jquery I bind my own method(MakeLog) to a button click or hyperlink click. The click events of button/hyperlink contain nothing, I need to use .bind for selective controls.Now we have a button whose click event will fire a method, say MakeLog.Code snippet for MakeLog is as follows:
var xhr = jQuery.ajax({
url: "/Logger.aspx",
data: { content: logContent }, [code]....
This works fine in IE but in Firefox this is not sending the data back as expected.I tried to identify the issue and came across the following: http://stackoverflow.com/questions/3522944/jquery-ajax-calls-async-false-vs-async-true .What I understand is that, whenver page is redirecting/reloading due to button click or hyperlink click the async call is not working properly.
I have a form in which i have written onSubmit calling a javascript function. in that javascript function how can i check that who was the event generater ( i mean on which button click this even raised)..
Note: onsubmit function call is in form tag..
i am using JavaScript and asp.net
My code is like this:
[code]...
i dont want to change any functionality.. i have got a dropdownlist which is causing postback.. i want that when this dropdownlist raise post back either i should know that its raised by dropdownlist or that function should not be called by dropdownlist's postback
I am using vs2008 pro. my problem is that javascript debugger is not working on mozila firefox but working fine on IE8.
View 1 RepliesWindow.open javascript function is not working in Mozilla, but working in other browsers, here is what I have write.
<a href="javascript:window.open('../Terms.aspx','Terms','width=550,height=400')">
click here</a>
Actually what happened in Mozilla is popup is opened but parent window is blank with [object Window]
I have a grid with an template column and in that column I have text and icon, on icon mousehover (on mode) and mousehoverout (off mode) I am changing the icon.
Now when the user click on icon it opens a popup and the icon must be in "On" mode but if the user without closing clicks another row's icon then previous must be in off and current should be in on mode.
So for that I have written this:
[Code]....
I need to get the source of aspx page that is stored on my company's server, I don't have access to the server (Or any server - so server language not considered), I'm using HTA localy on my PC.I wrote this code: (JavaScript)var WshShell = new ActiveXObject("WScript.Shell")
WshShell.Run("telnet -fh:/telnetlog.txt xxx.xxx.xxx.com 80"); //The host address
setTimeout("WshShell.SendKeys('GET /subfolder/page.aspx HTTP/1.0~~')",1000);
Description:- hello code given below is working fine in i.e. and other but not working in all mozila version.javascript is simple to devide two textbox's value. you can easily understand.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="javascript_test.aspx.cs" Inherits="javascript_test" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<script type ="text/jscript">
var _txtamount;
var _txtins;
var _txtinsamount;
[code]....