Asp.net Forum

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds

personal web server (W95)

  Asked By: Cameron    Date: Jan 11    Category: Asp.net    Views: 3877

I was using personal web server (W95) now I instaled WinXP (IIS).
BUT MY ASP aplication suddenly stop work. In this applikation I'm
using forms redirections database etc. For example sometimes browser
sais "cannot find page" but the file (.asp) is there when I restart
IIS or rename the file to .htm the page will appear. It realy drive
me crazy I cant debug.



13 Answers Found

Answer #1    Answered By: Cambria Lopez     Answered On: Jan 11

I was using personal  web server  (W95) now I instaled WinXP (IIS).
BUT MY asp  aplication suddenly stop  work. In this applikation I'm
using forms  redirections database  etc. For example  sometimes browser
sais "cannot find  page" but the file  (.asp) is there when I restart
IIS or rename the file to .htm the page  will appear. It realy drive
me crazy I cant debug.

Answer #2    Answered By: Topaz Ramirez     Answered On: Jan 11

Ok.. here's the code

<%@ Page Language="vb" AutoEventWireup="false" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<meta content="Microsoft Visual Studio.NET 7.0"
<meta content="Visual Basic 7.0"
<meta content="JavaScript"
<body bgColor="#cccccc" MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<asp:label id="Label1" style="Z-INDEX: 101;
LEFT: 149px; POSITION: absolute; TOP: 18px" runat="server"
Width="248px" Height="51px" Font-Bold="True" Font-Size="Large"
ForeColor="#804040">Student Registration</asp:label><br>
<asp:label id="Label2" style="Z-INDEX: 102;
LEFT: 29px; POSITION: absolute; TOP: 88px" runat="server"
Width="157px" Height="23px">New Student registration</asp:label><br>
<asp:button id="Button1" style="Z-INDEX:
103; LEFT: 191px; POSITION: absolute; TOP: 89px" runat="server"
Text="New Registration"></asp:button><br>
<asp:label id="Label4" style="Z-INDEX: 105;
LEFT: 33px; POSITION: absolute; TOP: 199px" runat="server"
Width="73px" Height="30px">Student ID</asp:label><br>
<asp:textbox id="TextBox1" style="Z-INDEX:
106; LEFT: 135px; POSITION: absolute; TOP: 197px"
<asp:button id="Button2" style="Z-INDEX:
107; LEFT: 326px; POSITION: absolute; TOP: 195px" runat="server"
<asp:label id="Label5" style="Z-INDEX: 108;
LEFT: 31px; POSITION: absolute; TOP: 250px" runat="server"
Width="98px" Height="15px">Student Name: </asp:label>
<asp:label id="Label8" style="Z-INDEX: 111;
LEFT: 137px; POSITION: absolute; TOP: 249px" runat="server"
Width="319px" Height="27px">Display name</asp:label><br>
<asp:label id="Label7" style="Z-INDEX: 110;
LEFT: 36px; POSITION: absolute; TOP: 288px" runat="server"
Width="103px" Height="22px">Course Name: </asp:label>
<asp:label id="Label9" style="Z-INDEX: 112;
LEFT: 136px; POSITION: absolute; TOP: 288px" runat="server"
Width="339px" Height="25px">Display course name</asp:label><br>
<asp:label id="Label6" style="Z-INDEX: 109;
LEFT: 39px; POSITION: absolute; TOP: 329px" runat="server"
Width="69px">Major : </asp:label>
<asp:label id="Label10" style="Z-INDEX: 113;
LEFT: 140px; POSITION: absolute; TOP: 329px" runat="server"
Width="331px" Height="26px">Display Major</asp:label><br>
<asp:label id="Label3" style="Z-INDEX: 104;
LEFT: 31px; POSITION: absolute; TOP: 152px" runat="server"
Width="301px" Height="25px" Font-Bold="True">Subject
<asp:label id="Label11" style="Z-INDEX: 114;
LEFT: 43px; POSITION: absolute; TOP: 412px" runat="server"
Width="69px">Subject 1 :</asp:label>
<asp:dropdownlist id="Select_sub1" style="Z-
INDEX: 118; LEFT: 130px; POSITION: absolute; TOP: 412px"
runat="server" Width="236px" Height="24px"></asp:dropdownlist><br>
<asp:label id="Label12" style="Z-INDEX: 115;
LEFT: 44px; POSITION: absolute; TOP: 448px" runat="server"
Width="69px">Subject 2:</asp:label>
<asp:dropdownlist id="Select_sub2" style="Z-
INDEX: 119; LEFT: 129px; POSITION: absolute; TOP: 449px"
runat="server" Width="236px" Height="24px"></asp:dropdownlist><br>
<asp:label id="Label13" style="Z-INDEX: 116;
LEFT: 43px; POSITION: absolute; TOP: 481px" runat="server"
Width="69px">Subject 3 :</asp:label>
<asp:dropdownlist id="Select_sub3" style="Z-
INDEX: 120; LEFT: 127px; POSITION: absolute; TOP: 483px"
runat="server" Width="236px" Height="24px"></asp:dropdownlist><br>
<asp:label id="Label14" style="Z-INDEX: 117;
LEFT: 42px; POSITION: absolute; TOP: 513px" runat="server"
Width="69px">Subject 4 :</asp:label>
<asp:dropdownlist id="Select_sub4" style="Z-
INDEX: 121; LEFT: 127px; POSITION: absolute; TOP: 519px"
runat="server" Width="236px" Height="24px"></asp:dropdownlist><br>
<asp:Button id="btnSubmit" style="Z-INDEX:
122; LEFT: 131px; POSITION: absolute; TOP: 575px" runat="server"
<asp:Button id="btnCancel" style="Z-INDEX:
123; LEFT: 241px; POSITION: absolute; TOP: 576px" runat="server"

Answer #3    Answered By: Angie Bennett     Answered On: Jan 11

Depending on when you installed iis  vs ASP.Net - -
It's possible that ASP.Net is not registered correctly
on your system.
Try running aspnet_regiis from the command prompt.

Here's the default location:

C:\WINNT\Microsoft.NET\Framework\<current version
#>\aspnet_regiis.exe -i

Answer #4    Answered By: Ray Lawrence     Answered On: Jan 11

I've tried doing that but it seems like nothing happened..???

I still can't get it... i've repaired the VS.net...

Answer #5    Answered By: Arnelle Schmidt     Answered On: Jan 11

I' m building a mail functionality where a registered user can post a message
to another registered user.I m storing all the values in a database  and when the
user enters into his inbox, the mails which are in his name will be displayed. i
ve done this using datagrid. Now i need to add a checkbox to each and every
message that is displayed and that checkbox shoul ve the messageid value also.


<%@ Page Language="C#" AutoEventWireup="true" CodeFile="inbox.aspx.cs"
Inherits="inbox" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
<form id="form1" runat="server">
<asp:GridView ID="DataList1" runat="server">

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
public partial class inbox : System.Web.UI.Page
protected void Page_Load(object sender, EventArgs e)
string user;
user = Session["User"].ToString();
SqlConnection con = new
string query = "select messageid,messagefrom,mailsubject,receivedtime from
mailsreceived where mailto='" + user + "'";
SqlCommand cmd = new SqlCommand(query, con);
SqlDataAdapter adap = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
adap.Fill(ds, "Mails");
DataList1.DataSource = ds.Tables["Mails"];

Answer #6    Answered By: Cleopatra Massri     Answered On: Jan 11

I've been studying dotnet from last 2 years but
couldn't start to build a singe ASP.net application. Whenever I try
to start lot of questions popup in mind and I give up always.

I made an application before in ASP and want to build the same in
ASP.net. What stops me is where and how to start. In my previous
application I had a main page  that was consisting of a menu and when
we click any of the links on that menu, if you are not logged than
it brings up a login page. Now it confuses me whether up use the
same ASP style text boxes and button for login page or use the login
web control. If I need to use login control then can I customize, if
yes then how and where I can get a good example.

Then the other question that pops up is about the menu that I had in
ASP, whether I have to make the same using html tables and
hyperlinks or use the new site navigation or menu control, again can
I customize them and how to insert dynamic information.

In one page in ASP I was having dynamic creation of html rows to
enter details. I was using JavaScript to create a new row for a html
table and that table columns was having text boxes so I used these
text boxes to enter the data. How to implement this in dotnet. Do I
have to use gridview or some other control and will I do have full
control on it.

Don't you think these questions will really make to stop  to do
ASP.net before starting and this is what makes me crazy? Kindly help
me with examples and a very big thank in advance.

Answer #7    Answered By: Muntasir Bashara     Answered On: Jan 11

ok see these links its give you a free templates and styles for your
applications . you can steal some ideas from these links
and here is a very good links for asp.net . read it carefuly and study it .

and here is another link . you can download videos about dotnet . they teach
you how to build your own website.

and i will give an advice , go simple in your code ;)
i hope that help you :)

Answer #8    Answered By: Cadencia Bernard     Answered On: Jan 11

send me some code Examples of ASP.NET C#
or useful Sides

Answer #9    Answered By: Patty Freeman     Answered On: Jan 11

it is difficult to send u some code !! maybe someone else will send you some
code .
but any way here is a link that enable you to convert VB code into C# code

Answer #10    Answered By: Johnathan Nelson     Answered On: Jan 11

One thing I noticed was when I was studying
dotnet most of the books and videos tell little about everything but
what I needed was more about anything. Like I just needed to know
everything about gridview, dataview and login controls. They
included less information on each and every control. By this I am in
a wrong perception that I know everyting in dotnet but not able to
do anything.

Answer #11    Answered By: Horia Ahmed     Answered On: Jan 11

For lot's of good info on gridview, go to http://www.gridviewguy.com.

Answer #12    Answered By: Sophie Williamson     Answered On: Jan 11

You can still do both things in asp.net, you can use literal controls to output
whatever you want in asp.net.
So that these things still remain possible.

You can use the controls supplied by asp.net, but you can also choose not to use
You could try doing things the way you know and then gradually try to find  a
better way or watch screencasts which show better ways.

Answer #13    Answered By: Hattie Howard     Answered On: Jan 11

I recommend the following resources to focus you on coding without
getting overwhelmed:

I choose these sites including the bite sized examples from Dave And
Al's site, and the complete CodeProject articles that are frequently
updated and focus on small to medium sized tasks rather than the
architecture centric "heavy" examples the Starter Kits and www.Asp.net
throw at you to drown you and overwhelm you. The book ASP.net
Unleashed is invaluable because they focus on a 1 page  at a time
approach needed by newbies yet "graduate" you to building whole sites
and they focus on the "whys" and the how and the whys really are the
stumbling blocks for most overwhelmed people.

What you used to do with Includes could be done with User Controls
(NOT server  controls) or in some cases Master Pages (making many pages
appear the same without includes) and they provide you a good sense
for how much cleaner things can be with encapsulation and flexibility
on the ASP.net side.
www.charlescarroll.com/chaz/site/4806/default.aspx - has some
User Control basic articles

The login control can be customized of course with themes. It is a
very mature feature. and tied with Forms Authentication can reduce
your workload quite a bit. All the Scott Mitchell articles on Form
Authentication are the next best thing to the Walther book if the
Quick Starts are too sketchy for you. Be sure and check out:
these articles really help you wrap your mind around the power and
ease of these authentication and profile features and why a little
more work  up front saves you a ton of work down the road.

MetaBuilders.com has some great FREE controls to simplify common tasks
and show you how such things should be done JUST DROP THE DLLS IN \BIN
directory and use them at first and wait until later to delve into the
source code till after you read the Walther ASP.net Unleashed chapters
on Server Control building.

Tackle this stuff after you have got a good practical knowledge of the
above and asked us a few dozen questions on the group about it all as
you convert your includes to UCs and Master Pages, and have your first
page through a dozen simple pages perpared with the resources above
and help from this group.

If you like User Controls (I luvvvvvvvv them) WebParts are UCs on
steroids and if you rewrite your UCs as WebParts your code is
SharePoint ready and you are way ahead of most "veterans" who ignored
the radical new paradigms WebParts allow see:

The SiteMap is one of the crudest features in ASP.net - great at the
basics but a LOT of work. I would tackle that last. LAST LAST LAST.
www.charlescarroll.com/chaz/site/4845/default.aspx will help
you find  some better articles when you get to that phase.

Didn't find what you were looking for? Find more on personal web server (W95) Or get search suggestion and latest updates.