Asp.net -a Tool That Makes Debugging JavaScript And JQuery Easier?
Nov 11, 2010
I'm fairly inexperienced with JavaScript and jQuery,but I need both for the ASP.Net website I'm working on. I am slowly figuring it out, but I've been relying heavily on StackOverFlow.Does anyone know of any tool (preferably free) that makes debugging JavaScript and jQuery easier?I've been using Firebug which has been helpful,but I guess I'm just spoiled by Visual Studio's debugger and intellisense.Is there anything like that for JavaScript and jQuery?It would sure make my life easier if there were?
I thought you might want to know this, the beta of IIS Express will be released soon, and will make use of the best of both worlds: VS build in web server and IIS in Windows itself. Anyways, IIS Express makes it even easier to build, run and test web applications.
I did a break points on the Tools.JS , but while debugging I didn't found my JS in Script Documents (Run Time mode) , and i remarked the exclamation message on my BP saying that this break point willn't be take in mind cause the JS document isn't charged.
My question is : Is there another way to load a JS to be available in the debugging mode? and how could i debug my JS in this case ?
I'm trying to debug some problems I have with Javascript code in the Ajax Control Toolkit. I tried setting debug=true in Web.config and adding ScriptMode=Debug in the script manager; but when the error occurs I still get the compressed JS files. Is there any way to get the uncompressed JS files to the browser? Does anyone have a simple self contained example of this working?
I declared global variable in js file which is filled after jquery.ajax call. Everything works fine when I put breakpoint to see if the global variable has its value with Firebug, I can see it, no problem. But when I remove breakpoint and try again, error with variable 'undefined' shows.I also tried to put result into hidden field and then retreive its value later. Same error.
I don't know what is happening? With breakpoint set in Firebug it works fine, without it, shows 'undefined' error.
i would like to create a web application using DOJO. I'm an Asp.Net developer, but, about javascript framework, i really like Dojo instead the Ajax Control Toolkit by Microsoft. So i'm asking you if exists some Visual RAD Ide for (for example) Dojo, or maybe, how can i integrate / write Asp.Net database driven apps with Dojo? Is it possible and... simple?
So in my website, I use jquery to fetch data through ajax. AS part of the ajax response, some of the javascript code comes as well which is executed. The problem is how to debug this javascript in firebug or other tools. This is my experience so far: putting debugger; doesn't work For some javascript, can't set the breakpoint as that script is not yet loaded. even if this new javascript calls some other function thats already loaded (i.e. i can see it in firebug and set a breakpoint), that breakpoint on that function is still not triggered However, the javascript does executes normally and even things like console.log works but cant seem to debug it.
My instructor gave us example code that is very similiar to the code below. I haven't heard back from him yet and wanted to find out why my code won't work properly. Could someone give me some advice on what I'm doing wrong or an easier method to display images.
<%@ WebHandler Language="VB" Class="images" %> Imports System Imports System.Web Imports System.Data.SqlClient Public Class images : Implements IHttpHandler Public Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest Dim id As String = context.Request.QueryString("ImageId") Dim userId As Integer = 4 Dim conn As New System.Data.SqlClient.SqlConnection Dim cmd As New System.Data.SqlClient.SqlCommand conn.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings("ConnectionString").ConnectionString cmd.Connection = conn cmd.CommandText = "SELECT Image FROM mrg_Image WHERE UserId=@userId" cmd.Parameters.AddWithValue("@userId", userId) conn.Open() Dim file_bytes As Byte() = cmd.ExecuteScalar() Dim file_bytes_stream As New System.IO.MemoryStream(file_bytes) 'During the build - The next line of code is highlighted green with the error message of, "Parameter is invalid" Dim the_image As New System.Drawing.Bitmap(file_bytes_stream) context.Response.ContentType = "image/jpg" the_image.Save(context.Response.OutputStream, System.Drawing.Imaging.ImageFormat.Jpeg) conn.Close() End Sub Public ReadOnly Property IsReusable() As Boolean Implements IHttpHandler.IsReusable Get Return False End Get End Property End Class
I'm across winforms currently but want to write an app that users will have a LAN/WAN between them and database.
So assuming I need to use WCF if I stick with winforms as the UI, or go ASP.net and go web, THEN which of these two approaches would be the easier rampup approach for me?
I have several controls I want to be able to make make visible (or hide) as a group. I know I could put them in a panel or a custom control, but, I was wondering if there was any other way to collectively associate multiple controls. In the back of my head I am thinking of Access where you can group a second of controls. I know that is mainly for UI, however, I didn't know if there was an OOP approach to the same thing in terms of exposing properties or not.
I saw some example in google..and all of them with jquery...is there any way of creating tabs like ajax control tool kit in webforms without using Jquery...its not a requirement..i want to know the best way of doing it..I am very new to MVC and I know its not posibble to use Ajax control tool kit in mvc...I just noticed in this asp.net site My Profile page got some cool tabs..can anyone know how to do something like
I get this error when I hit F5 in VS 2008. I have checked that Windows authentication is enabled on the site and it is. I can mannully attach the debugger to the IIS process and it works. What could be wrong? I have tried alot of things without success.
I'm trying to debug my web application on my localhost machine in Visual Studio 2010 and I keep getting this error: "unable to start debugging on web server. The Microsoft Visual Studio remote debugging monitor(MSVSMON.exe) does not appear to be running on the remote computer."
Is there a way I can turn this off as I'm not trying to make any attempts debugging remotely.
I have an ASCX component that has a lot of javascript declared in a script tag in the ascx itself. I can set breakpoints, and the debugger stops as it should, but the text that is highlighted in the debugger as the "current line" is nowhere near the actual javascript (it is much higher in the rendered file than it should be). I can "wing it" for one or two lines with the real code side-by-side with the "false" line of execution, but I lose all the hover abilities and everything else that makes javascript debugging useful.
I have tried putting the script at the top of my ascx file, but to no avail. I've tried not setting a breakpoint until the entire page is rendered, so that I have to scroll all the way to where the actual lines of code are, and the debugger still stops somewhere way above it.
I am running Visual Studio 2010 (as Admin), IIS 7 on Windows 7 x64. I am able to run the ASP.NET web site in IIS 7 without debugging just fine, but when I press F5 to debug it, I get: Unable to start debugging on the web server. Could not start ASP.NET debugging. More information may be available by starting the project without debugging. Unfortunately the help link is not helping me much and leads down a heck of a large tree of things. I checked the following:
Security requirements — I don't recall having to do anything special before. The worker process in IIS7 is w3wp.exe. It says that if it's running as ASPNET or NETWORK SERVICE I must have Administrator privileges to debug it. How do I find out if I need to change something here? Web site Property Pages > Start Options > Debuggers > ASP.NET is checked. Use custom server is set to the URL of the site (which works fine without debugging). Debugging is enabled in web.config. Application is using ASP.NET 3.5 (I want to move to 4.0 eventually but I have some migration to deal with). Application pool: Classing .NET AppPool (also tried DefaultAppPool). Surely it shouldn't be that hard to install IIS, VS, create a web site, and start testing it?
I have a some data which is displayed in div body now i want to import that div content in excel format so how can i do this using javascript/jquery or even c#
which returns <div>here</div><script language=javascript>alert('');</script> The content gets loaded property, but no alert. How would I get a javascript routine to work from an ajax call along with posting the HTML code?
I'm starting to learn jquery widthout knowing javscript.someone told me that I don't need to learn javascript before learnig jquery.But I seen many people (in the internet) said that I must learn javascript well. to start learn Juqery?so do I must to learn javascript before jquery?
I use Visual Web Developer 2008 Express. I am following a tutorial which uses VWD2005 and says to create an Ajax enabled website. There is no specifically named "Ajax enabled template" in VWD 2008 Express
I think I have created one by creating a new ASP.NET website and adding a ScriptManager and an UpdatePanel to the page and placing the content of the page inside the UpdatePanel ContentTemplate.
I am trying to rule out reasons why my aplication wont work - step by step, piece by piece, from the beginning of the tutorial.
But each time I do this, the ViewData object seems to disappear (intellisense doesn't show it). Also, Model goes away too. I must be making a really simple/dumb mistake. I also tried to Import the namespace containing the CompanyModel class on the same aspx, but that doesn't do anything.
When I try to view the page in the browser I get this error:
Parser Error Message: Could not load type 'System.Web.Mvc.ViewPage<CompanyModel>'.
In my asp.net application on Windows Server 2008, I have code like this
tempfile = Path.GetTempFileName() ... Write data to tempfile ... File.Move(tempfile, storageDir + fileName)
This works just fine. The problem is afterwards when I am trying to access the file from outside of ASP.NET. I get access denied, even though the user I am accessing from have (recursive) read rights to the storageDir folder.
It seems that the moved file doesn't inherit rights from the folder it is moved into. Is this correct, and if so, is there an easy way to fix that?
Right now as a direct fix I have changed every instance of File.Move() in my ASP.NET application to File.Copy() + File.Delete(), which seems to fix the problem.