473,698 Members | 2,571 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

What's the problem with this web application

3 New Member
I'm new on ASP.NET programming. I'm working with Visual Studio 2005. I have made this web application using C# language. I'm using prepared components like AccessDataSourc e. After creating I tested it on localhost and it worked. But when I send it to a server on Internet it doesn't work. I think that the problem is in new Visual Studio 2005 Code File instead Codebehind. How I can solve this problem if the server there I set the web application is ASP.NET 1.1. The HTML Default.aspx code of my project looks:
Expand|Select|Wrap|Line Numbers
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
  2.  
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4.  
  5. <html xmlns="http://www.w3.org/1999/xhtml" >
  6. <head runat="server">
  7. <title>Untitled Page</title>
  8. </head>
  9. <body>
  10. <form id="form1" runat="server">
  11. <div>
  12. <asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/db1.mdb"
  13. SelectCommand="SELECT * FROM [Members]"></asp:AccessDataSource>
  14.  
  15. </div>
  16. <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="ID"
  17. DataSourceID="AccessDataSource1">
  18. <Columns>
  19. <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" ReadOnly="True"
  20. SortExpression="ID" />
  21. <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
  22. <asp:BoundField DataField="Surname" HeaderText="Surname" SortExpression="Surname" />
  23. <asp:BoundField DataField="Age" HeaderText="Age" SortExpression="Age" />
  24. <asp:BoundField DataField="Location" HeaderText="Location" SortExpression="Location" />
  25. </Columns>
  26. </asp:GridView>
  27. </form>
  28. </body>
  29. </html>
  30.  
The Default.aspx.cs looks:
Expand|Select|Wrap|Line Numbers
  1. using System;
  2. using System.Data;
  3. using System.Configuration;
  4. using System.Web;
  5. using System.Web.Security;
  6. using System.Web.UI;
  7. using System.Web.UI.WebControls;
  8. using System.Web.UI.WebControls.WebParts;
  9. using System.Web.UI.HtmlControls;
  10.  
  11. public partial class _Default : System.Web.UI.Page 
  12. {
  13. protected void Page_Load(object sender, EventArgs e)
  14. {
  15.  
  16. }
  17. }
  18.  
Where is the problem? Thanks
Apr 30 '07 #1
0 1093

Sign in to post your reply or Sign up for a free account.

Similar topics

0
13216
by: Robert | last post by:
On Windows my python 2.2 application (using win32ui GUI, ...) some times simply crashes when I work with the GUI. Tooltips are involved; the app crashes on mouse moves). The GUI-Window disapears and only the following message is yielded (from python-core?) " This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. "
0
2026
by: Bill Davy | last post by:
I am building a C++ program (main.exe) with VC6 which expects to call the Python DLL. When I start it (under the debugger), I get: "This application has failed to start because python24_d.dll was not found. Re-installing the application may fix this problem." I built Python24_d.dll using VS.NET 2003 (which I bought specifically for that purpose but cannot use for our project, boo hoo). I am building a debug version of main.exe which...
4
1809
by: CAD Fiend | last post by:
Hello, I have a combo box (cmbFirstName) on a form that is hitting a query (qryFirstName) and then putting that selected (or typed by user) value to the table field (name FirstName) on the table (tblUserInfo). The query hits a look up table called (lulFirstNames). If the user DOESN'T find the name they want in the combo box, they will just type it in.
9
2820
by: Rajat Tandon | last post by:
Hello there, I am relatively new to the newsgroups and C#. I have never been disappointed with the groups and always got the prompt replies to my queries.This is yet another strange issue, I am facing. Please please help me to solve this as soon as possible. So here we go ... I am not able to take the screen shot of the windows form based "Smart
3
1086
by: coynej60 | last post by:
I think this is probably a relatively simple problem, but I can't figure it out. I have an app that uses an Application variable to store my DB connection string. The object is created as so: Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs) Application("datacon") = "My Connection String" End Sub When I run the page that uses this App Object on my local IIS 5.1 server everything works fine. However when I try to...
2
4770
by: Alex | last post by:
My Problem is that although i have added a handler to Application.ThreadException and it works fine for my application exceptions, it does not fire if an exception is generated inside an event handler of my App. eg. If i throw a exception inside DragDrop, or MouseDown of an event the ThreadException does not fire !! Any ideas ???
1
11760
by: Dhruba Bandopadhyay | last post by:
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster. The above message is what I get in my ASP.NET 2.0 page. I have debugging turned on and for those who want to see the stack trace, see below. In my old web site I had a frame set with a ASP page in left frame...
0
1995
by: bughunter | last post by:
db2 8.2 fp 11 win32 db2diag.log 2006-10-05-14.26.09.624000+240 I1053498H383 LEVEL: Warning PID : 2100 TID : 4876 PROC : db2syscs.exe INSTANCE: DB2 NODE : 000 DB : RBADB APPHDL : 0-62 APPID: *LOCAL.DB2.061005102104 FUNCTION: DB2 UDB, lock manager, sqlpGetNumApplLocks, probe:1234 MESSAGE : DPS not initialized for this application.
5
13033
by: =?Utf-8?B?U3JpbWFu?= | last post by:
Hi, We are launching .net window from vb6 form. In .net form tabbing(tab out from one control to another control) was not working. for that i have written a code like Sendkeys.send("{TAB}") in the textbox keypress event. I got the following error msg: {"SendKeys cannot run inside this application because the application is not handling Windows messages. Either change the application to handle messages, or use the SendKeys.SendWait...
0
3172
by: =?Utf-8?B?TmF0aGFuIEdsYXNzZXI=?= | last post by:
Hello, We have a program we are building with Visual Studio 2005 for x86. In the past we used Visual Studio 6, and there was no problem. With Visual Studio 2005, if we build the executable normally, all is well. If we build it for debugging, then at program startup we get a popup saying This application has failed to start because MSVCP80.dll was not found. Re-installing the application may fix this problem.
0
8683
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8610
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9170
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8902
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8873
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5862
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4372
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4623
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2007
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.