.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Post New Web Links

How to call .Net dll file in Classic ASP

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :Windows Application

I have created one Class Library in Asp.net 2.0(C#) now i want to use that library (dll) into my Classic ASP page and use one method.

What is the step that i need to follow?

View Complete Post

More Related Resource Links

How to call an .exe file in .net

Sometimes a developer has to call an EXE from another EXE. While calling EXE there can be a requirement to pass parameter.

how to call an dll file dynamically from (.cs )


i have  an  microsoft .office.interop.excel(dll) located  at an directory d:\abc\.  now i do not want to add them  as an web reference in my projet   and  call them

rather  call the dll dynamically  from my code behind(.cs)
is ther any way  we can do dynmically

 anyhelp would be  great
 thank  you

How to call javascript from file

Hi, i want to call javascript from file JScript.js. I write in head section (in master site) code <script src="JScript.js" type="text/javascript"></script>. How i can call this file from default.aspx(not from master site)? Everything is fine then all code is in master page, but i need this script in other pages.<asp:DataList ID="DataList1" runat="server" RepeatColumns = "2"  RepeatLayout = "Table"  Width = "500px">     <ItemTemplate>         <br />         <table cellpadding = "5px" cellspacing = "0">         <tr>             <td>                 <asp:Image ID="Image1" runat="server" ImageUrl = '<%# Eval("FilePath")%>'                  Width = "200px" Height = "200px" onclick = "LoadDiv(this.src, this)" style ="cursor:pointer" />             </td>         </tr>         </table>         <br /> 

While building my excel file, do an ajax call



I'm in trouble here because of a little problem.

In fact, in my MVC project, I have a controller which build a Excel file and the return value is a FileResult.

for now, I'm using this like that :

<form id ="TransacExportForm" method="POST" action="/theproject/thecontroller/theaction" style="display:none;">


With the javascript :


As I expected, after 25 seconds, the browser send the window popup to download the file (which is what I want)

It works perfectly, but it's so long... It's why I would do some ajax calls in order to have a "loading gif", and when the file is "created", the browser send the message to download the file.

I tried a loooot of things (get, ajax, etc...). The file is created but the browser don't send any message to download the file.

If someone could give me an answer, it would be very great :D !

How to use ajax for recursive call of a function in asp classic


I have a asp page with parent and child relation  task when i click on + sign the task with the parent id of the first should open. it may go up to nth level


1 >2







so to go to 8 we have 1>2>5>7>8

so first i have to click on 1 which will open its child then i have to select 2 which opens its child.

If i am doing it on same page recursively it hits performance.

as it is a asp page and each time it is hiting the server so i have to use ajax and build the page out side and append this to my parent page 

can any one help me in this regards,


Please Mark the answers and give points it will help users Thanks & Regards, Kamal Agarwala

Custom WSDL File generation for Classic Web Services (not WCF)


Hello Folks,

I'm about a custom WSDL File Generation for a Classic ASP.NET XML Web Service.

The issue is I didn't find out how to specify mandatory parameters in my WSDL, since ASP.NET  Web Services are generated on ?WSDL location, I thought I would do that from Web Method Annotations, but I found no issue.

Also I have been on a pose where the developer could hide WSDL Generation by specifying a custom WSDL Binding. But in my case I need to let other system access ?WSDL location with a Customized WSDL.


Thanks for Any Help.



How to call C# dll from a batch file?


Hi All,

    As per the requirement I have written a C# code to access Active Directory and to fetch required data and to store it in a database. But this has to be scheduled everyday at the specific time. So I thought to create a batch file which can scheduled as well, but I stuck up with a question that can we call C# dll from a batch file? If we can how to achieve it? Please suggests me if anybody knows about this!

Cheers, Chetan

failed when call batch file from SQL 2005 job



when i tried  to call batch file from SQL job give me error

process  can not created for job at step  reason system can not find the file specified

 howver when i run the commend from new query it work fine

xp_cmdshell  ' C:\t.bat' 

also i tried  

xp_cmdshell  ' \\servername \t.bat'   but no benifit  from inside the job

Could you please help me ?





call JavaScript that has Return Value to C# (.cs File)


hai guys...i got trouble with javascript , please help me up to solve this problem

i have a javascript to check is client file exist in the client folder like this : 

function FileExists(strURL) {
    var x = new ActiveXObject("Scripting.FileSystemObject");
    return  x.FileExists(strURL);

this function will call in server side , but im getting trouble how to call that function in server side , some function in cs will consume that js function before loading image , so that function will check in the client file the file exist or not , if exist i will load the image from the local file

please help me guys....thx for ur help

regards angela.

Session call in .ashx file from .cs file.


How we can call session from .ashx file from .cs file.


i have store value in session in cs file.

eg. session["s"]="abc";

when i get this value in .ashx file  

string strDisplay = context.Session["Captcha"].ToString();

show error 

Object reference not set to an instance of an object.

how to call a session variable in Web service Method in Default.cs file



I have used a web service method in my Application. And as per the requirement using one user. I am searching for a list of schools to a particular area. When one person logged with the credentials , search criteria works fine when another person logs in there the problem like session variable is getting overriden . This is a issue which I am facing and as per its very urgent to solve the problem. Please help me and solve the Issue.

Please repond Immediately, as I am unable to sleep at nights.

I am also sending the code of a sample example 


using System;
using System.Configuration;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;

public partial class _Default : System.Web.UI.Page
    //public string str;
   // SharedPersonalizationStateInfo string str;
    static string str1;
    static string strName;
    static  string strSqlquery;
    protected void Page_Load(object sender, EventArgs e)

        if (!IsPostBack)
            strName = Session["ID"].ToString();
            str1 = Session["FriendID"].ToString();

Attach xml file to web service call



I am trying to send a xml file as part of a web service call.

I have managed to generate a successful request via "SoapUI" client, but I don't know what the code will look like or how to do this from within VB.Net. 

Can you PLEASE assist ?

Thanks for your help in advance.



Below is an example of the working SoupUI client request...note the <cardDetails> section that will hold the reference for the contentID of the xml file ! 

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:CardApplication" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">



      <urn:cardApplication soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">

         <pobjCardApplicationInfo xsi:type="wsv:CardApplicationRqstInfo" xmlns:wsv="http://wsvalueobj.CardApplication.prepaid.webservices.cortex.com">

            <messageID xsi:type="xsd:int">123456

Silverlight WebService call - The provided URI scheme 'file' is invalid; expected 'http'.



I am getting following when trying to consume WebService from Silverlight.

The provided URI scheme 'file' is invalid; expected 'http'.
Parameter name: via

Any idea ? Please help.

Exception '' is raised right at
public CurrServiceClientChannel(System.ServiceModel.ClientBase<B.Silverlight.BT.Ent.EntServiceRef.ICurrService> client) : base(client) {}



File Splitter in .Net

I love to do utility programs in .Net. And this is one of them. As I was playing with JSplit (a free file splitter program), I wondered if I could do it in .Net. The framework supports file operations like reading files in bytes and creating them. It is indeed easy to do file operations in .Net Basics on File operations

call JavaScript - jQuery code from ASP.NET Server-Side

jQuery got so close to me lately that I can see myself adding the scripts to my project almost unconsciously. The thing is, jQuery is very useful for me, in almost all situations and it has been a do or die enhancement for all my project since I first put my hands on it.

Of course while using it, you encounter few situations which need a bit of research to solve, mostly when you are trying to combine it with some other technologies like: UpdatePanels and ASP.NET Ajax. For instance there are many situations when I would like to run some jQuery magic based on some decision that I make on the server side.

Upload Multiple File using JQuery in asp.net

In this article I have explained how to upload multiple files using file upload control. I have used jQuery plugin for uploading multiple files.

I have also explained how to check for file type, file maximum size limit using jQuery & also using server side validation code.

Using jQuery to directly call ASP.NET AJAX page methods

Here I am looking to explain how to call page methods using jQuery. Using jQuery to directly call ASP.NET AJAX page methods
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend