Solved

hosting problem on webserver

Posted on 2009-04-02
9
254 Views
Last Modified: 2013-11-26
hi
my web application suppose tesst working fine on localstation. but when i upload it into webserver then it creates error.
u can see it at
http://www.supplydirectinc.com/tesst/tesst/new.aspx
Thanks
.aspx code

 

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NEW.aspx.cs" Inherits="runtimelinkbutton.NEW" %>

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 

<html xmlns="http://www.w3.org/1999/xhtml" >

<head runat="server">

    <title>Untitled Page</title>

</head>

<body>

    <form id="form1" runat="server">

    <div>

    

        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" />

    

    </div>

    </form>

</body>

</html>

 

 

 

 

.cs file code

 

 

using System;

using System.Collections;

using System.Configuration;

using System.Data;

 

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;

 

 

namespace runtimelinkbutton

{

    public partial class NEW : System.Web.UI.Page

    {

        protected void Page_Load(object sender, EventArgs e)

        {

           //Response.Redirect("~/viewstate.aspx");

        }

 

        protected void Button1_Click(object sender, EventArgs e)

        {

            Response.Redirect("~/viewstate.aspx");

        }

 

       

    }

}

Open in new window

0
Comment
Question by:psaini172000
9 Comments
 
LVL 9

Accepted Solution

by:
vavjeeva earned 100 total points
ID: 24047877
did you deploy your application properly on the server..

check this link for deployment options..

http://www.beansoftware.com/ASP.NET-Tutorials/Deploy-ASP.NET.aspx ..

use Publish Web site option to generate the compiled code and move that into server.. hope this helps u
0
 
LVL 6

Assisted Solution

by:HarryNS
HarryNS earned 100 total points
ID: 24049874
Go to the design view of the form check in button properties -> Events, this event is mapped or not.
0
 

Author Comment

by:psaini172000
ID: 24057456
hi
yes i hav checked out. it is mapped
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 

Author Comment

by:psaini172000
ID: 24067028
hi
pls have a look on my above question.
 i did not find any solution till the date.
pls arrange a solution.
ur help will be appricated.
Thanks
0
 
LVL 83

Assisted Solution

by:CodeCruiser
CodeCruiser earned 50 total points
ID: 24091657
Did you upload the .aspx.cs file along with the .aspx files to the host server?
0
 

Author Comment

by:psaini172000
ID: 24094178
hi
Yes ofcourse
both files are upload together.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now