Adding A C# Webpage And Reference To A VB.Net Website?

Apr 7, 2010

We have a web site that sits on a DotNetNuke platform and all of our coded modules are written in VB.Net for consistency. However, we have been sent a web page that works as a link and it is written in C# and references a cs file in its App_Code folder. If we try and load this into our website we get an error saying that it is not written in VB we then tried converting the homepage to VB but the reference folder is very complex and written in C#. Can we load the reference file even though it is C# and reference it using VB code. The current all is OurRemService RemService = New OurRemService(); where OurRemService is a file in the App_Code folder in the web page folder. The only other way around this is for us to set it up in IIS as a virtual directory and reference it directly but we would prefer to integrate it into our website.

View 1 Replies

Similar Messages:

Visual Studio - Why Does Website Reference Assembly From GAC, When Adding Local Reference

Jan 7, 2010

When you use ASP.NET web site (instead of web application model) and add reference to an assembly from local folder, Visual Studio, it seems, understands that this local assembly is also in GAC and so does NOT copy this assembly to bin folder (as it does with non-GAC assemblies), but simply adds new record in web.config file.

Why such a behaviour? Is it possible to force copy to bin folder (I need this since .dll is not on target environment)? I can add assembly to bin folder as file and it will work, but in this case bin folder contents will be in source control, which is not good.

View 3 Replies

Configuration :: Adding Dll Reference In Website?

Oct 17, 2010

Since a Web Site doesn't have a project file or a bin folder,

how will a Web Site identify of what are all the dlls to be used.

And if i am adding a third party dll to my web site, and i need to

add this web site folder to a source control, how should i include

this third party dll in the source control?

View 1 Replies

Php - How To Embed The Result Of A Webpage Into Another Webpage On Another Website

Mar 23, 2010

I would like to allow users to call my ruby on rails app as a service which returns a 'div' with html content in it, and embed that div into their app (which will not be a rails application).

For example, assume someone has their own php website that has a header/footer template that gets rendered, and a content area of the page that they need to fill based on some html I generate in my rails app. I would like to allow them, from php, to call to my website, get the 'div' I generate, and embed that as html in their php page.

What I'm trying to do is host a service on my site that returns some html content, but actually show that content as part of another site, so that the end user only sees the other site and never really knows about mine.

Also, I can use javascript on the client to do this if that is the only way, but I would prefer the php app to handle this at the server if possible so the client gets the html embedded from the original server and it looks like it all was generated by the php script that generated the entire page. I also want to avoid using an iframe.

View 3 Replies

Adding Reference To DLL Is Not Working?

Jul 8, 2010

I have created a VB DLL by selecting File - New - Project and then Class Library

I added a "Properties" region and a "Function" region with some simple properties and one simple function. Compiled it and used it in another app with no errors.

At that point the only references in the project were the default references when creating the new project.

I then created a function that will take a file as a param and get the physical path and add the 2 together. In the function I use the "Request.PhysicalPath" method of the System.Web.UI.UserControl.

I then added areference to the System.Web DLL in my project.

PROBLEM IS I get an error on "Request" that says "Name Request is not declared"

So I googled the error which I found a thread that said to "just use HttpContext.Current.Request.Form" because "by default all websites developed in Visual Studio 2005 is Inherited from System.Web.UI.Page and Class files won't that's the resion we have to add System.Web.UI.Page namespace in the class file"

However when I added the "HttpContext.Current.form." before my "Request.PhysicalPath" I get the same error on "HttpContext".

What Am I doing wrong?


View 2 Replies

Configuration :: Adding Reference Again & Again?

Oct 4, 2010

I'm new to .net

I've following line in my code:

using Microsoft.ServiceModel.Web;

And it works fine as long as I add the namespace reference to microsoft assembly dLL System.ServiceModel.

The moment I copy the code on other machine, I need to redo everything. Is there any way so that I don't need to add this reference again & again?

View 13 Replies

C# - Adding A Tool Bar To A Webpage?

Feb 24, 2010

I want to add a tool bar (just like the one above the text area where we type our questions in this forum , with bold,italic etc) to a web page.Is there an easier way of doing this?I am using ASP.Net c# and VS2008.

View 3 Replies

Adding ADODB Reference In VS2008?

Jul 23, 2010

I need to be able to add a reference to ADODB in my code to access that particular COM object's result.

I have tried to add the adodb reference from the properties page of my site, but whenever I try to run the site after adding it I get this:


To enable assembly bind failure logging, set the registry value [HKLMSoftwareMicrosoftFusion!EnableLog] (DWORD) to 1.

Note: There is some performance penalty associated with assembly bind failure logging.

To turn this feature off, remove the registry value [HKLMSoftwareMicrosoftFusion!EnableLog].

Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3082


Why would this be? I've not encountered this before when adding the adodb reference. The source of the adodb reference is:

c:Program FilesMicrosoft.NETPrimary Interop Assembliesadodb.dll

The file is indeed in that directory.

View 3 Replies

Adding Assembly Reference To Web Project?

Jul 7, 2010

Before using any class in your website project/page we have to add it's assembly reference to our project. Right?

Now, when I am using SmtpClient class from System.Net assembly after adding the System.Net.Mail namespace in namespace node of application's web.config file but without adding assembly reference to the project it still accepting and running the code. Why?

I enquired the machine's web.config file located at C:WINDOWSMicrosoft.NETFrameworkv2.0.50727CONFIG but didnt find any assembly reference for System.Net.

how it is working and where the assembly reference has been added and how?

View 4 Replies

VS 2010 - Adding Reference To Web Service

Feb 2, 2012

I have a number of .Net web sites built in VS2010 using Framework 4.0that reference a web service to send emails.

My most recent site I created as a web application as opposed to a web site. In the Solution Explorer you can add a 'Service Reference' and, if you click the Advanced button you can then add a reference to a web service.

I did that and now the (web application) site won't build - it says it cannot load the Ajax dll. If I remove the reference to the web service, the site builds okay - if I add the reference back in, the site will not build.

Do I need to abandon the idea of using a 'Web Application' and turn it into a 'Web Site'?

View 9 Replies

Adding A Filter To A Table On Webpage?

Feb 28, 2011

I use the Entity framework to map an SQL Server database to objects. The EF is then used to fill a Dynamic Data Site. There are 50+ tables and layout isn't really important. Allowing the users to use it for quick data entry while keeping the amount of code as low as possible is.

Basically, I have four work-hours to find a solution to filter some of the tables on the first letter of one (or more) of the fields. (One filter per field.) When I have one, I have another 4 hours to implement it. Any time I spend more on this will not be compensated.

I have full control over the code, the database structure and whatever else. However, I am limited to .NET 3.5/Visual Studio 2008 and am not allowed to include MVC. I'm also not allowed to add more libraries. Can't upgrade to .NET 4.0 either. So, how can I add such filters in a minimum number of hours?

View 1 Replies

VS 2010 - Adding Data From Another Webpage

Oct 31, 2012

i am developing a web application ( 2010, VB)in the sale invoice i need the user to select the item from a combobox, rate, qty and calculate the amt. i have a datatable which is as below.

HTML Code:
dTableData = New DataTable
dTableData.Columns.Add(New DataColumn("Item", GetType(String)))
dTableData.Columns.Add(New DataColumn("Qty", GetType(Double)))
dTableData.Columns.Add(New DataColumn("Rate", GetType(Double)))
dTableData.Columns.Add(New DataColumn("Amount", GetType(Double)))
dTableData.Columns.Add(New DataColumn("Category", GetType(String)))
dTableData.Columns.Add(New DataColumn("CatCode", GetType(String)))
dTableData.Columns.Add(New DataColumn("ItemCode", GetType(String)))
dTableData.Columns.Add(New DataColumn("myID", GetType(Integer)))

i am using a panel to enter the data. the panel is hidden which contains the combobox and the textboxes and when the user presses add item, i unhide the panel and get the data.this is working fine. but what i was needing is (as i have seen from a webpage)when the user presses add item, a new, small, webpage opens which contains the combobox and textboxes and when the user enteres the data the same is updated to the above data and then the grid is filled with the added record.

View 3 Replies

Visual Studio :: Adding A Reference To A Project?

Apr 13, 2010

1. Is there a reason why someone would want to add a reference to an assembly (e.g. System.Drawing) but not add the Using statement? Seems that if you add a reference, you should add the Using statement automatically, but maybe not always?

2. Correct me if I'm wrong, the only benefit of adding a "Using" statement at the top of your file, is to bring into scope an assembly and not have to fully type the class name? So if I have a Using System.Drawing, I can type in
string = Color.Tomato.ToString(); instead of string = System.Drawing.Color.Tomato.ToString();

View 3 Replies

WCF / ASMX :: Getting Error On Adding Service Reference?

Aug 25, 2010

I am getting this error while loading(adding) it into service References (web client)

The type 'WcfTrial2.Calculation', provided as the Service attribute value in the ServiceHost directive could not be found.

How to resolve it?

View 1 Replies

SQL Server :: Reference To Table For Adding Foreign Key?

Mar 10, 2011

I have four tables test1, test2, test3, test4

they dont have any primary keys.

I have a patient entry table, which has patientID as primary key. if I want to retrieve tests information about a particular test then I have to add a pid as foreign key??

do i have to add a test_ID kinda field in all four tests tables????

how to do this in sql server management studio.

View 7 Replies

Installation :: Adding Web Reference On Authenticated Proxy?

Feb 7, 2010

At my campus whenever i open my browser to surf the internet, it requires username and password, e.g IE shows a dialog box requiring uid and pwd then it allows to surf the internet. In short i am behind an authenticated proxy server.I am using vs2008 and trying to add web/service reference to my c# desktop application or web applicationwhenever i try to add reference it does not show any dialog box(for uid n pwd) and give an error as407 proxy authentication...i have googled at a lot, tried two KB articles but cannot find any solution

View 1 Replies

C# - Adding Live Weather Report To A Webpage

Dec 10, 2010

I am working on development of a website. Task is to add a Live weather forecast to my webpage. I am unable to find a good working solution for this.

View 3 Replies

Web Forms :: Adding Images Perfectly In Webpage?

Oct 22, 2010

i have started to do a Website Project...Am given few Images , to place it according to the requirement Web Page Sample image given by the client....Am just wondering how to calculatethe exact dimensions of the various parts of a page for Placing Images Perfectly.

Am using Html Divs , Css and a tool called WebPage Maker..Using WebPageMaker Tool i can place images and by running on a browser ,i can calculate the dimensions of that particular part[ For Ex:Header Image] by using FireBug Tool.....

But when using those dimensions[Left,top,Width& Height], at page by using Divs & CSS...Total page gets collapsed and images just run away.........

Whats the best Approach to do this..??

As of now,am given Few images[Cut], and the original required Image..On seeing that , i should place images accordingly...

But Am not able to calculate dimensions for using at Html Divs and CSS in a Page..

View 1 Replies

AJAX :: Adding Reference To Jquery Throws Error

May 18, 2010

just added reference to jquery minified and block ui on my page through scriptmanagerproxy and it throws error on page load.

<asp1:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
asp:ScriptReference Path="~/script/jquery-1.2.6.min.js" />
<asp:ScriptReference Path="~/script/jquery.blockUI.js" />
<asp:ScriptReference Path="~/script/Default.js" />

View 10 Replies

Adding A Service Reference Throws A Contract Error?

Oct 20, 2010

I added a service reference via the add service reference method. I can see all of its services in the intellisense but when I run the project and it executes the line where I instantiate the service : MyProjectName.ServiceReferenceName.IServiceReferenceClient
client = new MyProjectName.ServiceReferenceName.ServiceReferenceClient;it throws this error:Could not find default endpoint element that references contract 'ServiceReferenceName.IServiceReferenceClient' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element.

View 2 Replies

Unable To Import Module After Successfully Adding Reference

Feb 20, 2010

I'm adding a reference to a funciones.dll file using

clr.AddReferenceToFileAndPath() because I couldnt get it to work other way with this file and it succesfully does it. The file is named funciones.dll and it's in the bin folder. But when I do

from funciones import *

I get "no module named funciones"

since the funciones.dll file it's a file compiled, shouldnt the module name only be named funciones and no any other name? isnt the name the problem and it's another? I dont know what other info could be relevant here but if there is any let me know

View 2 Replies

WCF / ASMX :: Adding A Remote Web Reference And 'Discovery Credential'?

Apr 1, 2011

I have developed an web service and deployed it Win 2003 server on IIS 6. I tried to access it from my application which is in developer pc, i'm getting a dialog-box "Discovery Credential for Proxy Server"... which asks for a user and password.

Even when I provided right credentials it is not accepting. May be this is because of firewall. How can I get rid of this.

View 1 Replies

Web Forms :: Invoke C# Function From Another Project Without Adding Reference?

Sep 24, 2010

There is a libraray project whose dll name is customer.dll. It has a class name customer with a function name show(). I want to call this function from another project but dont want to add reference to the caller project. Can this be done? Is there any class that can acheive this?

View 1 Replies

WCF / ASMX :: Adding Reference To Web Service Do Not Copy The .config File?

Jul 8, 2010

I am adding a reference of class library in web service in VS2008 and it is not copying the .config file from class library to web service. I have checked the property "Copy to output directory" of .config file and its value is "Copy Always".

View 3 Replies

AJAX :: Error While Adding Reference To Latest Version Of AjaxControlToolkit

Sep 24, 2010

I am a bit new to ASP.Net Ajax and as such new to Ajax itself. I have a site which uses ASP.Net Ajax. It used the version AjaxControlToolkit version 3.0.30512.0. I have now changed it to version 3.5.40412.2 by deleting the old reference and adding a reference to the latest one . I build the soultion and everything appears fine witjhout any errors. But the site fails to load showing a yellow page with the message AjaxControlToolkit Version="3.5.40412.2" missing reference to 'AjaxControlToolkit.ExtenderBase.Base Scripts.js.BaseScripts.js'. What does this mean ?

View 2 Replies

Copyrights 2005-15, All rights reserved