Click here to Skip to main content
15,897,291 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: best way of showing single record Pin
Hanzaplast16-Mar-12 22:42
Hanzaplast16-Mar-12 22:42 
GeneralRe: best way of showing single record Pin
ZurdoDev19-Mar-12 1:56
professionalZurdoDev19-Mar-12 1:56 
QuestionA problem with creating an <code>AutoCompleteExtender</code> Pin
Ali Al Omairi(Abu AlHassan)12-Mar-12 1:29
professionalAli Al Omairi(Abu AlHassan)12-Mar-12 1:29 
QuestionOnline chat/Customer service Pin
mrkeivan12-Mar-12 1:08
mrkeivan12-Mar-12 1:08 
QuestionCreating a Wizard and managing the data across the different screens Pin
AB777112-Mar-12 0:42
AB777112-Mar-12 0:42 
AnswerRe: Creating a Wizard and managing the data across the different screens Pin
Joshua Omundson12-Mar-12 7:19
Joshua Omundson12-Mar-12 7:19 
QuestionJQuery Custom Control Pin
Jaison Peter11-Mar-12 23:18
Jaison Peter11-Mar-12 23:18 
AnswerRe: JQuery Custom Control Pin
Jaison Peter12-Mar-12 20:57
Jaison Peter12-Mar-12 20:57 
CSS files are taken but Java scripts are not.

In Fire Bug , HTML tag shows tag. There are 9 link tag each for my
CSS and Js files. In those CSS links are showing data properly but JS data
is showing as below :

<title>The resource cannot be found.</title>

<body bgcolor="white">

Server Error in '/' Application.


The resource cannot be found.



Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.



Requested URL: /WebResource.axd




Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053

</body>

Moreover, there is Firebug tab name CSS.

In that there is a dropdown which shows 9 webresource.axd?sfsdfsdfsdcsksdfkhskdf values where each describes the js and css files embedded as resource.

in those CSS resources are look fine, but for js nothing is visible and a blank page comes in the firebug console while i click

I have found following following trials to fix this issue : But no hope Frown | :-(

Added [assembly: WebResource("MyNamespace.MyScriptFile.js", "text/javascript")] above the class's namespace declaration.
Script file has build action "Embedded Resource".
Tried registering during OnInit, OnLoad and OnPreRender
Script file is in the same assembly and namespace as the control registering it its work fine.

Does not work using any of the following methods:
ScriptManager.RegisterClientScriptResource(Page, GetType(), "MyNamespace.MyScriptFile.js");


Page.ClientScript.RegisterClientScriptResource(GetType(), "MyNamespace.MyScriptFile.js");



Try implementing my own ScriptManger and then adding the embedded file from there. Here's an example

public class MyScriptManager : System.Web.UI.ScriptManager
{
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
RegisterClientScriptResource(this, typeof(ScriptManagerExtension), "MyNamespace.MyScriptFile.js");
}

typeof(WebDate)


[assembly: WebResource("Library.Resources.Scripts.libscript.js", "text/javascript", PerformSubstitution = true)]

Changed the order of js files

.BaseType

typeof(Company.Product.Web.Library.Class1)

Created Different solution for dll

Please help any other alternatives available?
Questionplease help me in gridview Pin
nada4yemen10-Mar-12 22:40
nada4yemen10-Mar-12 22:40 
AnswerRe: please help me in gridview Pin
MaulikDusara11-Mar-12 17:54
MaulikDusara11-Mar-12 17:54 
AnswerRe: please help me in gridview Pin
Prasad_Kulkarni13-Mar-12 1:32
Prasad_Kulkarni13-Mar-12 1:32 
SuggestionHow to retrieve data from .txt file to sql server Pin
sravan11079-Mar-12 4:44
sravan11079-Mar-12 4:44 
GeneralRe: How to retrieve data from .txt file to sql server Pin
Blue_Boy9-Mar-12 4:50
Blue_Boy9-Mar-12 4:50 
GeneralRe: How to retrieve data from .txt file to sql server Pin
MaulikDusara11-Mar-12 17:59
MaulikDusara11-Mar-12 17:59 
GeneralRe: How to retrieve data from .txt file to sql server Pin
V.15-Mar-12 23:26
professionalV.15-Mar-12 23:26 
Questionhow to use Group by in RDLC Reporting( Group by Date) Pin
zainknoman9-Mar-12 1:06
zainknoman9-Mar-12 1:06 
AnswerRe: how to use Group by in RDLC Reporting( Group by Date) Pin
Blue_Boy9-Mar-12 4:38
Blue_Boy9-Mar-12 4:38 
QuestionCSS through Code behind Pin
Jaison Peter8-Mar-12 22:57
Jaison Peter8-Mar-12 22:57 
AnswerRe: CSS through Code behind Pin
Jaison Peter9-Mar-12 0:10
Jaison Peter9-Mar-12 0:10 
QuestionReportViewer shows blank on one computer, exporting works OK Pin
Luis Alonso Ramos8-Mar-12 6:06
Luis Alonso Ramos8-Mar-12 6:06 
QuestionValue not toggle in JavaScript alert box Pin
Jaison Peter7-Mar-12 23:50
Jaison Peter7-Mar-12 23:50 
AnswerRe: Value not toggle in JavaScript alert box Pin
Shameel8-Mar-12 1:16
professionalShameel8-Mar-12 1:16 
GeneralRe: Value not toggle in JavaScript alert box Pin
Jaison Peter8-Mar-12 18:41
Jaison Peter8-Mar-12 18:41 
AnswerRe: Value not toggle in JavaScript alert box Pin
Lakxman16-Mar-12 2:18
Lakxman16-Mar-12 2:18 
QuestionWeb service callback Pin
anishkannan7-Mar-12 21:57
anishkannan7-Mar-12 21:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.