Reference Path - Want To Know What "<% =QDAB.Constants.SiteURL %>" Means
Aug 27, 2010
I want to know what "<% =QDAB.Constants.SiteURL %>" means in the following line of code in my aspx page. I did google and didn't really find any information on this.
<td align="center" style="background-image: url(<% =QDAB.Constants.SiteURL %>images/Docs/Plans/myImage.jpg);
So what exactly does this mean?
[Aditional Details]
I changed url(<% =QDAB.Constants.SiteURL %>images/Docs/Plans/myImage.jpg);
to this url(<% =QDAB.Constants.SiteURL %>images/myImage.jpg);
I copied myImage in the "Images" folder.
Why would it access the image from "Images" folder BUT NOT "Images/Docs/Plans"?
View 3 Replies
Similar Messages:
Aug 11, 2010
i am using validators for validation and on linkbutton i am diaplaying popup.my problem is i want to disable linkbutton means until page is validated means the popup should not be displayed till the page gets validated
<asp:LinkButton ID="LinkButton1" runat="server" CssClass="addProduct-disable" Enabled ="false"
Text="Assign Filter Criteria" CausesValidation="true"></asp:LinkButton>
View 2 Replies
Feb 18, 2011
dynamically switch WCF web service reference URL path through config file. how do you do this?
View 3 Replies
Mar 11, 2010
I am trying to add a web reference to my project in Visual Studio 2010 that points to PayPal's Sandbox service.
The address is [URL]
Although VS finds it using the Add Web Reference dialog box, when I press the Add Reference button I get the following error and it fails:
Failed to add Web Reference 'com.paypal.sandbox.www'.
Error: Access to the path 'C:Documents and SettingsMyNameLocal SettingsTempPayPalSvc.wsdl' is denied.
Even if I attempt this using http instead of https it still fails with the same error.
View 2 Replies
Dec 31, 2010
I wonder what is the best place to store the enums I should use like constants in my n-tiers Application.
So I have an application with a DAL(connect to database), a BLL(Business processes), a Data Transfert object "Layer" (classes without any methods but just fields, this one is reacheable by all the others) and the interface layer with the asp pages.
My question is : I have a enum:
[code]....
Where can I put this enum(and all the others) to be clean? Not in the Data Access Layer the Interface layer will not see the struct, not in the Business Logic Layer, this is not really business.. Maybe in the Data Transfert Object but is it really a "Transfert object"?
View 7 Replies
Jun 30, 2010
Is there a way to create a file of constants in JavaScript, which I can reference and then use?
What I am looking for is something like this:
Constants.js:
var Phones =
{
Nokia: 1,
Samsung: 2
}
Then, in another JavaScript file JS2.js access those values:
JS2.js:
alert(Phones.Nokia);
And then, in an aspx file that uses them, reference both of them, like:
<asp:ScriptReference Path="../js/JS2.js" />
<asp:ScriptReference Path="../js/Constants.js" />
Is such an architecture possible? What datatypes can we use? I only exemplified enums because this is what i use right now, but they must be declared in the same file as they are used.
View 2 Replies
Oct 22, 2010
How can i use the .net Default folder App_GlobalResources Folder to store a Resource file which contains all the Page names?
Currently i added a a Resource file (PageNameConstants.resx) and set the name filed and Value field but i cannot access any of those by calling
App_GlobalResources.PageNameConstants.HOME(HOME has the value ~/Home.aspx)
View 1 Replies
May 31, 2013
I am doing an AJAX call back to a WebMethod but in the code behind webmethod I cannot use any of the constants at the to of my form. What I want is to gain access to sessions and my sql connection string.
View 12 Replies
Nov 2, 2010
I have an asp TreeView that has images associated with each node. I am using this CSS that I found on the web to create spacing between the image and the node text:
[Code]....
It works fine, the thing I am struggling with understanding is the " img" part of the style declaration. What is that? It seems apparent that the style pertains to the image portion of a TreeView... How do I know what values can be there? I.E. Is ".TreeView node" valid?
View 5 Replies
Mar 8, 2010
It is possible to create a constant like this:
[URL]
<%@ Page CompilerOptions="/d:QUUX" %>
How to create multiple constants ?
View 1 Replies
Dec 8, 2010
I have a database table that contains list of all UserTypes(constant strings) used in the application.
What is the best way to store(what datastructure do I need) these so that code can access them ?
The need is similar to enum, but I want to associate these values to those in DB so that there will not be 2 places to edit in case of adding/removing an entry.
one other option I considered is using public static readonly string, but how to associate with those values in DB ?
View 3 Replies
Jan 27, 2011
My scenario is a 3-Tier app where the data tier is a SQL Server database, the middle tier is a WCF application hosted in a Windows Service and finally the presentation is an Asp.Net MVC application.As usual, the middle tier is the one that performs all of the business logic. Access database, define business rules.. etc. BUT now here's question: How do you handle security in such a scenario? I mean, the user has to log in on the ASP.NET application, but I want to authenticate it not only in ASP but in the WCF middle tier as well, since a WCF service is supposed to be accessed by more apps.
I want the user to log in on the Asp.Net application and let WCF know the credentials as well. Is there some kind of session in WCF in which to specify a logged in user? How do pros handle security in this case? I know you can secure the WCF services with message security, but how do Asp.Net and WCF sync on a single logged user? I want to secure WCF operations depending on the user for authorization means.
View 2 Replies
Jun 2, 2010
If at any time i m login in that time if i want to logout from this page then i'll used response.redirect() but that time how i'll expire the session means no used after logout form a page without login...
View 5 Replies
May 5, 2010
i am making a website and i get a requirement that in GridView or ListView whatever control you used but the column is dragable means the order of the column can be change by drag and drop.Along with that i want to give option to the client that add more column if he check mark some column then that column should be added client side.So i am looking for some dll in ASP.NEt or Jquery for <table> Operation or javascript anything help me out
View 1 Replies
Oct 19, 2010
I have a form which inserts data in DB on Submit button click but the problem is when client click the button multiple times its sends multiple create requests means multiple button click events for the same time of same data, which must not be.
I tried to disable the button when client click the Submit button first time but after this it does not call server click event handler or not fire the server click event once it got disabled.
How to handle this multiple click problem..
I used the following code to disable the button
[code]....
View 3 Replies
Oct 18, 2010
in one on my page i am using to add the data from popup window to grid view without using the backend means databasethis is my popup window code
[Code]....
[Code]....
View 2 Replies
Jul 21, 2010
Exsits any way to modify the temporary folder path returned by System.IO.Path.GetTempPath() method?
My asp.net application run under iis 7.
View 2 Replies
Oct 7, 2010
I have a code to open PDF file, like this
[Code]....
Over here I have created a folder with name Data inside my solution, so the Server.Mappath("Data") as well the statemet for converting assigning the src property of the IFrame I1 is working properly. But I want to use the files from a folder which resides in a network folder like
View 1 Replies
Jul 3, 2010
I am trying to upload a file Into a MapPath but I am getting a error 'C:/WebSite/userimages/' is a physical path, but a virtual path was expected. My code is:
[Code]....
View 6 Replies
Dec 20, 2010
I have a custom ASP.NET application that I utilize for several clients that I host. Each client has a separate domain and the application is normally a child application under the root domain [URL]. The application files are the same (aspx, ascx, style sheets, images, etc.). The only thing different is the web.config file for each client. As development of the application continues to evolve, I have to update the application for each directory and this obviously becoming tedious. I am trying to come up with a method keep the application up to date. My first though is placing the application into a single physical path and creating multiple applications pointing to that path (the problem with this method is I can't have different web.config files). I am curious as to what solution others are using in this scenario...
View 2 Replies
Apr 8, 2010
I am Final Year IT Engineering student. I am Doing Content Management System in ASP.net for my college. I have given link on my master page for various pages in the application; where I have specified only relative path of those pages. When I run this project and follow any link it works well for only first time and for second time when I click any link it .net run time environment unable to find the absolute address of that page.
View 2 Replies
Mar 29, 2011
When I press start on my VS2010/Silverlight/C# project, it opens a new instance of the included webserver and opens my browser window so I can test the application. Unfortunately something has happened and I am not sure what it was.. The browser window now opens the starting page with a local machine path (C:...page.aspx) rather than the normal webserver path through http (http://localhost:33592/page.aspx). It is a Silverlight Navigation project using c#/asp.net code behind.
View 2 Replies
Feb 14, 2010
I am trying to convert the virtual path to a physical path but don't seem to have Server.MapPath or HttpServerUtility.MapPath available in my handler. I add the System.Web namespace with no luck.
string virtualTargetFolder = String.Format("~/UserImages/{0}/Images/", user.ProviderUserKey.ToString());
string physicalTargetFolder = System.Web.HttpServerUtility.MapPath (virtualTargetFolder);
View 2 Replies
Feb 13, 2010
I had applied the following code as said by you :
byte[] b = YourByteArrayFromDb;
File.WriteAllBytes(MyFilePath, b);
But I am receiving an exception "Access to the path is denied". How do I solve this using ASP.Net with C#? And is there any format to set the path as string?
View 3 Replies
Dec 17, 2010
I was trying to use System.IO.Path.GetFullPath("Database.mdf") in the class "DAL" in a website im creating but instead of returning :
"F:MyProjectApp_DataDatabase.mdf"
It Returns "C:\Program Files (x86)\Common Files\microsoft shared\DevServer\10.0\Database.mdf"
View 2 Replies