|
I have been looking around on different sites and fora, and i have a similar
problem than some people had before...
it is an error to use a section registered as
allowDefinition='MachineToApplication' beyond application level. This error
can be caused by a virtual directory not being configured as an application
in IIS.
this is the solution i've read (almost everywhere)
"You need to create an application or a virtual directory ( with the IIS
Manager ) for the directory in which the code is placed."
Since I have several subfolders in my app, that would mean that I have to
make an application of every single folder?
There has to be another solution, or am I wrong ?
Thanks and Regards
Aavesh Agarwal
|
|
|
|
|
Hi all,
i want to know onething in asp.net2.0 we dont have any dll.
when we deploy any application on server we just copy the aspx pages and rest of the folders including bin folder but in that bin folder we didn't find any dll of the project..and we know that for running a particular project we require dll then how the project run succesfully on server without dll...
can anyone tell me i have done so much googling but didn't find the ans.
Thanks in advance
Thanks and Regards
Aavesh Agarwal
|
|
|
|
|
hi !!
I am having a dll added in my project. Now I have updated one of the .cs files in the dll after adding to project and built the project . But it does not shows in bin folder that a new dll is created ... it shows the old dll(because tiem of creation is proevious one)
How to get the update in cs file reflected in the dll.
Mrinal
|
|
|
|
|
when you are compling your project it will automatically upadte ur dll...
Can u eleborate more ur question....
Thanks and Regards
Aavesh Agarwal
|
|
|
|
|
I have been assigned a project and I am a beginner . There is a dll added in the project. There are 6 .cs files in it and the namespace is BAL10
Now I have updated one of the .cs files and then built the project (web project ).But when I went into the bin folder to see if the dll has been updated , there was no change. The dll present was of come previous time.
do hlp me outta
Mrinal
|
|
|
|
|
The project has been converted from 2003 to 2005 .. is this the possible reason behind
Mrinal
|
|
|
|
|
Hi,
I am in a problem friends,
I want to pass my values through header from one page to another in asp.net ..i didn't get any solution for that please anybody share your ideas...
regards
alex.
|
|
|
|
|
Why do you want to send values in header it should only contain the inforamtion of its body
Any way check the response.addheader methos there check what parameters it takes
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Malayil alex wrote: through header from one page to another in asp.net
HTTP header ? or through URL ?
|
|
|
|
|
ya thorugh HTTP header..
regards
alex
|
|
|
|
|
Adding values to HTTPHeader on page level is not possible. You need to write a HTTPModule or a class that inherits from HttpApplication . Write your header value adding code in BeginRequest event.
|
|
|
|
|
N a v a n e e t h wrote: Adding values to HTTPHeader on page level is not possible.
Yes it is. I did it just the other day. Here is the actual code that I used:
Response.AddHeader("Content-Disposition", "attachment; filename=\"" + file.FileName + "\"");
---
single minded; short sighted; long gone;
|
|
|
|
|
Guffa wrote: Response.AddHeader("Content-Disposition", "attachment; filename=\"" + file.FileName + "\"");
That's great. Let me check it..
|
|
|
|
|
i gave same reply :->
check first reply yo this thread but i think subject has relied less on me
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
hi
where will i add this code,,,page_load or ???
alex.
|
|
|
|
|
Malayil alex wrote: where will i add this code,,,page_load or ???
Yes.
---
single minded; short sighted; long gone;
|
|
|
|
|
You can only send information from the server to the browser using the HTTP header. It doesn't pass on the information in the next request.
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi!!
I need to create window service which is a scheduler, and i need to set the scheduling parameters for the service through an asp.net page. is it possible to do the same, i mean set the parameters for the window service through ASP.net
Regards
|
|
|
|
|
|
dear all i want to create a export button in my site by which all the record for the registered user stored in user table will exports into an excel file. how could i do taht help me for the same.
i was created my site in C# language.
With regards
Yogesh Agarwal
|
|
|
|
|
You need to show data's need to be exported on a DataGrid. Say Datagrid1. Set the page response content type to excel. Using HTMLTextWriter to render the grid and write that to response. See the following code
Response.ContentType = "application/vnd.ms-excel";
Response.Charset = "";
this.EnableViewState =false;
System.IO.StringWriter ObjTextWriter= new System.IO.StringWriter();
System.Web.UI.HtmlTextWriter ObjHTMLWriter= new System.Web.UI.HtmlTextWriter(ObjTextWriter);
Datagrid1.RenderControl(ObjHTMLWriter);
Hope this helps
|
|
|
|
|
|
ReportDocument rpt=new ReportDocument();
rpt.Load(Server.MapPath("ReqVsCur.rpt"));
rpt.SetDatabaseLogon("username","password");
rpt.SetParameterValue("@year",DateTime.Now.Year);
MemoryStream oStream;
oStream=(MemoryStream)rpt.ExportToStream(CrystalDecisions.Shared.ExportFormatType.Excel);
Response.Clear();
Response.Buffer=true;
Response.ContentType="application/vnd.msexcel";
Response.BinaryWrite(oStream.ToArray());
Response.End();
|
|
|
|
|
Respected Gurus
I am developing in asp.net1.1 and crystalreports.
I have some reports,developed in crystal reports which i have to export to excel.
Public Sub exportfinalreport()
Dim oStream As New MemoryStream ' // using System.IO
'this contains the value of the selected export format.
showfinalreport(dtReportdate)
oStream = rpt.ExportToStream(CrystalDecisions.Shared.ExportFormatType.Excel)
Response.Clear()
Response.Buffer = True
Response.ContentType = "application/vnd.ms-excel"
Try
Response.BinaryWrite(oStream.ToArray())
Response.End()
Catch err As Exception
Response.Write("< BR >")
Response.Write(err.Message.ToString)
End Try
End Sub
The above code successfully export data to excel.
But problem is look and feel.
Data in excel does not come under their corresponding headers,
which creates confusion.
Is there a better way to export to excel with a good look and feel.
|
|
|
|
|
Hi friends.....
i am create a data access layer using "Dataset.XSD". While retrieve and inserting date using objectdatasource I have problem with sqlserver.i got the exception “Login failed for user 'MY-PC\ASPNET'.(here my-pc is my system name).when i used sqldatasource i can acess the data.how can i handle the exception
|
|
|
|