Click here to Skip to main content
15,879,535 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have published my web site.
In master page there are some script file.
When I call javascrip file after publishe don iis6.0 in win7 it can get call (Why?)
XML
<link rel="stylesheet" type="text/css" href="/CSSClass/tree.css">
<script type="text/javascript" src="/build/yahoo.js" ></script>
<script type="text/javascript" src="/build/event.js"></script>
<script type="text/javascript" src="/build/treeview.js" ></script>
<script type="text/javascript" src="/build/jktreeview.js" ></script>




I am calling like this

JavaScript
<script type="text/javascript">

<!-- TreeView  //-->

var pinetree=new jktreeview("tree1")
var branch=pinetree.addItem("New Master") //A TREE BRANCH WITH NO URL FOR ITSELF
	pinetree.addItem("Finance Year", branch, "../Master/MstFinanceYear.aspx") //Add this item to branch3
	pinetree.addItem("Company", branch, "../Master/MstCompany.aspx") //Add this item to branch3
	pinetree.addItem("Brand", branch, "../Master/MstItemBrand.aspx") //Add this item to branch3
	pinetree.addItem("Category", branch, "../Master/MstItemCategory.aspx") //Add this item to branch3
		
	pinetree.addItem("Item", branch, "../Master/AddItem.aspx") //Add this item to branch3
	pinetree.addItem("Sub Item", branch, "../Master/MstSubItem.aspx") //Add this item to branch3
	pinetree.addItem("State", branch, "../Master/MstState.aspx") //Add this item to branch3
    pinetree.addItem("City", branch, "../Master/MstCity.aspx") //Add this item to branch3
    pinetree.addItem("Vendor", branch, "../Master/MstVendor.aspx") //Add this item to branch3
    pinetree.addItem("Site", branch, "../Master/MstSite.aspx") //Add this item to branch3
	pinetree.addItem("Invoice", branch, "../Master/InvoiceInfo.aspx") //Add this item to branch3
	pinetree.addItem("Unit", branch, "../Master/UnitInfo.aspx") //Add this item to branch3

pinetree.treetop.draw(); //REQUIRED LINE: Initalize tree

var branch3=pinetree.addItem("Stock") //A TREE BRANCH WITH NO URL FOR ITSELF
	pinetree.addItem("Issue Item", branch3, "../Stock/Item_Issued.aspx") //Add this item to branch3
	pinetree.addItem("Purchase Item", branch3, "../Stock/Item_PurchaseInfo.aspx") //Add this item to branch3
	pinetree.addItem("Recieved Item", branch3, "../Stock/Item_Recieved.aspx") //Add this item to branch3
	pinetree.addItem("Stock IN", branch3, "../Stock/StockIn.aspx") //Add this item to branch3

pinetree.treetop.draw();
</script>
Posted
Updated 10-Dec-13 1:12am
v2
Comments
AmitGajjar 10-Dec-13 7:05am    
How you are calling javascript ?
ZurdoDev 10-Dec-13 7:35am    
What's the error? Which line of code causes it?
Member 7909353 10-Dec-13 8:10am    
Now I am using Use IIS web server from properties and click on login button
Login failed for user 'SUMIT\ASPNET'.
ZurdoDev 10-Dec-13 8:13am    
This is not a JavaScript error. You have not shown any login code but the error is clear. What is your question?
Member 7909353 10-Dec-13 8:17am    
Now I am not deploying my web site but from properties where I select Use IIS Web Server radio button and url is http://localhost/DL PROJECT
my connection is <add name="MyCon" connectionstring="Data Source=SUMIT;AttachDbFilename=D:\DL PROJECT\DL PROJECT\DL PROJECT\DL PROJECT\App_Data\abc.mdf;Integrated Security=True">
it gives an error Login failed for user 'SUMIT\ASPNET

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900