|
I have 3 web application these all are independent to each other.
1 web application have .aspx, .aspx.cs, web.config, .dll and some other
Supporting files. I want to make a common setup of all 3 web application
With this setup I want to install the 3 web application in the /inetpub/wwwroot
Folder. I don’t want to include source code in wwwroot folder. Then I want to run all
3 application separately from browser with parameters.
I tried making setup and installed in wwwroot folder but it copies all the files including
Source code in the wwwroot folder then
I run in browser :
http://localhost/demo/webform1.aspx
but it gives the error :
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
________________________________________
A name was started with an invalid character. Error processing resource 'http://localhost/demo/WebForm1.aspx'. Line 1, Pos...
<%@ Page language="c#" Inherits="DeploymentExampleWebApp.WebForm1" CodeFile="WebForm1.aspx.cs" %>
-^
Then I make the CodeFile tag as src and it goes to start of class then error comes :
Server Error in '/WebForm1' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1518: Expected class, delegate, enum, interface, or struct
Source Error:
Line 10: using System.Data.OleDb;
Line 11:
Line 12: public partial class DeploymentExampleWebApp : System.Web.UI.Page
Line 13: {
Line 14: protected void Page_Load(object sender, EventArgs e)
Source File: C:\inetpub\wwwroot\demo\WebForm1.aspx.cs Line: 12
Then I added a global.asax page in folder and error comes :
Server Error in '/WebSetup1' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'DeploymentExampleWebApp.Global'.
Source Error:
Line 1: <%@ Application CodeFile="Global.asax.cs" Inherits="DeploymentExampleWebApp.Global" %>
Source File: C:\inetpub\wwwroot\WebSetup1\global.asax Line: 1
Then I make a CodeFile tag as src and it goes to same error :
Server Error in '/WebForm1' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1518: Expected class, delegate, enum, interface, or struct
Source Error:
Line 10: using System.Data.OleDb;
Line 11:
Line 12: public partial class DeploymentExampleWebApp : System.Web.UI.Page
Line 13: {
Line 14: protected void Page_Load(object sender, EventArgs e)
Source File: C:\inetpub\wwwroot\demo\WebForm1.aspx.cs Line: 12
Now please tell me how can I solve all these problems.
hi
|
|
|
|
|
Sounds like an utter disaster. Why do you want three sites to share the same URL ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
these are not web sites these r web application ....................................a single .aspx per application ..................and url will be diff for each application .............
like
http://localhost/demo1/demo1.aspx
http://localhost/demo2/demo2.aspx
http://localhost/demo3/demo3.aspx
hi
|
|
|
|
|
So, why are you doing it like this ? What are you writing ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
just explain me how a web application is deploy ????????
hi
|
|
|
|
|
Your error looks like you don't have ASP.NET installed.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
its damn sure i have installed asp.net because i am making application on that system only .....................u just tell me how to deploy a small single web application on a system.
hi
|
|
|
|
|
thankx man u were right its working asp.net is not installed .....................................hey can any 1 tell me when .net framework is installed than y i need to install asp.net explicitly.......................
hi
|
|
|
|
|
Hey Guys need help to create new work sheet
in excel for different Category Data
Anyone know the code to start off with
Thanks A million
KaKaShi HaTaKe
|
|
|
|
|
I did that but not remembering roght now
Do one thing USe Excel COM object in your application then use
ApplicationClass sandeep = new ApplicationClass();
WorksheetClass wkSheetClass = new WorksheetClass();
WorkbookClass wbkClass = new WorkbookClass();
creates a Excel sheet and a workbook please check some methods n that hope that it will help you
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... "
|
|
|
|
|
Hey I'm retrieving datat using a datareader as follows
<br />
If Not IsDBNull(dr("ClientID")) Then<br />
ClientLink.HRef = Page.ResolveUrl("~/secure_code/clients/ViewClient.aspx") + "?ClientID=" + dr.GetInt32(1).ToString()<br />
End If<br />
But i would prefer to use the column name instead of it's index as I use the SP in various places and would like the flexibility to alter it how ever I feel I want to without anything breaking. ISDBnull allows you to just type in the column name as a string but all of the get methods don't. All I could work out was this.
If Not IsDBNull(dr("ClientID")) Then<br />
ClientLink.HRef = Page.ResolveUrl("~/secure_code/clients/ViewClient.aspx") + "?ClientID=" + dr.GetInt32(dr.GetOrdinal("ClientID")).ToString()<br />
End If<br />
Is there a better way???
|
|
|
|
|
Hi,
Hope every one is fine. i am using ASP.NET 2.0 and C# to develop a site which will display graphs and charts. i am using crystal reports for creating graphs n charts.
i am having problem in creating graphs dynamically, i want user to select parameters and on the basis of those parameters i am generating a SQL query/stored procedure which i want to use to ceate graph in crystal report.
i am not able to find a way through which i can place this query/stored procedure as command of crystal report.
i cant pass parameters to report baecause there are more than 30 options on the form and user can select any possible combination of those options to view result.
any kind of help is appriciatd, im completely stuck n dont know what to do...
Regards,
Affan Ahmad Toor
..................
QUAIDIAN FOR ONCE, QUAIDIAN FOR EVER!
|
|
|
|
|
Hi
I want to implement multiuser chat room in asp.net which contain
near about 30 chat room. Is there any software available for
asp.net like (tufat for php) through which i can implement
multiuser chat room or if not available then how can i start to
implement it.How can i create chat rooms in it
I am using asp.net 2.0. and vb.net. Please guide me?
Thanks.
Rahul.
|
|
|
|
|
Its like developing a chat website LOL
i think you should have some requirements look for the articels ,search google thats what i can say right now (its my openion )
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... "
|
|
|
|
|
Yes
Sandip i am also tried googling for it and and reading some article
based on that but u know is there any software available to
implement that. If u have little bit idea about it then plz tell me.
Thanks.
Rahul
|
|
|
|
|
The only way I can see for this to work is if you use AJAX. A static webpage isn't the best way to write a chat client.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi rahul
I am also developing customer live supposrt application and I want to know how to notify server when client is connect to the server if can just give by which method we can come to know somebody connected to the server
|
|
|
|
|
Hi TarDuk,
I am developing a application in which user should be
able to online chatting and admin should add or remove
chat rooms.Regarding u r problem i dont have any idea how
ho detect when client is connected to server if i got any
idea i will tell u.
Thanks.
Rahul
Rahul
|
|
|
|
|
Jintal Patel wrote: protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e)
{
GridView1.EditIndex = -1;
}
Where did you update the values?
bEST rEGARD
pATHAN
---------------------------------------------------
|
|
|
|
|
Hi Pathan
Looks like you are trying to work with Grid View.
Well GridView1.EditIndex =-1 should be inside your GridView1_RowEditing(..)
inside your GridView1_RowUpdating() you should write your code for to update your database or whatever changes you need.
protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e)
{
GridView1.EditIndex = e.NewEditIndex;
CreateEmployeeGrid();
}
protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e)
{
TextBox txtName = (TextBox)GridView1.Rows[e.RowIndex].FindControl("txtName");
TextBox txtSurname = (TextBox)GridView1.Rows[e.RowIndex].FindControl("txtSurname ");
DropDownList cmbGender = (DropDownList)GridView1.Rows[e.RowIndex].FindControl("cmbGender");
Employee.Update(GridView1.DataKeys[e.RowIndex].Values[0].ToString(),txtName.Text,txtSurname.Text cmbGender.SelectedValue);
GridView1.EditIndex = -1;
CreateEmployeeGrid();
}
I hope it helps you...
Cheers
mady
|
|
|
|
|
i m working on a content management system.i m creating dynamic pages on user input .my problem is i want to read the content of already existing .aspx page by getting the id of controls in the page.
e.g. i hv page 'aa.aspx' contains some text in a lable with id "lbl". so dat i can edit its content.and save the modified "aa.aspx".
so can anyone give any suggestion or reference to achieve this.
thanks in advance
alok tripathi
|
|
|
|
|
alok.mailbox wrote: e.g. i hv page 'aa.aspx' contains some text in a lable with id "lbl". so dat i can edit its content.and save the modified "aa.aspx".
This will be a hectic job for you. You can do this by writing regular expressions that matches with your search criteria. If you know the label id, you can write a regular expression that matches an asp:label and get it's value. Similar way use for writing also
|
|
|
|
|
Hi guys i need my webservice gets .ps file from word file using a virtual printer which is postscript printer. can any1 give a solution.
thnks...
|
|
|
|
|
I have a problem in aspx 2.0 how can I remove the restrictions on the password and username in the memebership control.
thank you
BiG RaLpH
|
|
|
|
|