473,386 Members | 1,679 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

default.aspx

Hey all,

I have an asp.net page called default.aspx. when I visit this site i type in
http://myDirectory/ because I know that the name default.aspx will be
assumed. However, when i goto this particular site and select an item from my
drop down box nothing happens except that the address bar automatically
appends the Default.aspx to the url (http://myDirectory/Default.aspx). And
then when I select from the drop down box it works. Any ideas why the
behavior?

thanks,
rodchar
Nov 18 '05 #1
2 2428
rodchar wrote:
Hey all,

I have an asp.net page called default.aspx. when I visit this site i type in
http://myDirectory/ because I know that the name default.aspx will be
assumed. However, when i goto this particular site and select an item from my
drop down box nothing happens except that the address bar automatically
appends the Default.aspx to the url (http://myDirectory/Default.aspx). And
then when I select from the drop down box it works. Any ideas why the
behavior?

thanks,
rodchar


Hi rodchar,

When you select from selectbox, asp.net automatically makes a postback
which results in seeing the default.asxp (this is a default behaviour of
postback, and I don't think this is a problem).

However why you don't get the result that you are looking for is, most
probably, your page does not set something that is required for the
response. But after the first postback, I guess this specific something
is supplied and you get your response.

If you can more details, I will be glad to help.

--

SevDer
http://www.sevder.com
Nov 18 '05 #2
when i type http://mysite
it pulls up the page fine, goes thru the page load properly. At this point
i'm guessing any that happens at this point will be a postback.

I just stepped thru it and it looks like when I select an item in the drop
down list
it first goes thru the page load and there i'm testing for postback and it
is false.

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
If IsPostBack = True Then
cs = Session("BusinessObject")
Else
cs.RtvAllCodes()
Session("BusinessObject") = cs
End If
Literal1.Text = Now
End Sub

"SevDer" wrote:
rodchar wrote:
Hey all,

I have an asp.net page called default.aspx. when I visit this site i type in
http://myDirectory/ because I know that the name default.aspx will be
assumed. However, when i goto this particular site and select an item from my
drop down box nothing happens except that the address bar automatically
appends the Default.aspx to the url (http://myDirectory/Default.aspx). And
then when I select from the drop down box it works. Any ideas why the
behavior?

thanks,
rodchar


Hi rodchar,

When you select from selectbox, asp.net automatically makes a postback
which results in seeing the default.asxp (this is a default behaviour of
postback, and I don't think this is a problem).

However why you don't get the result that you are looking for is, most
probably, your page does not set something that is required for the
response. But after the first postback, I guess this specific something
is supplied and you get your response.

If you can more details, I will be glad to help.

--

SevDer
http://www.sevder.com

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Michael McGuire | last post by:
I have a very strange problem occurring on a couple of servers I have an ASP.NET application written in C# running on IIS 5.0 with Windows 2000 Server. This is the first ASP.NET application...
5
by: Ted Apollo | last post by:
When I develop my ASP.NET 1.1 application locally, the default form is always "WebForm1.aspx." However, when I post the same application to a web server, the default becomes "default.aspx." Why...
2
by: zino | last post by:
Hi, in asp.net , I set the start page to "myStartingPage.html" when user get authenticated and the cookie is created, the following statement is supposed to redirect him to the original requested...
2
by: Goober | last post by:
I have the following default.aspx page that works properly. However, what I want to do is to link the graphics within it (that are hard coded now in the default web page) to our corporate...
7
by: Frankie | last post by:
I just acquired a new customer who had an existing ASP classic Web site. When I took over, I transferred all content to ASPX pages that have different page names than the prior Web site had. I kept...
3
by: vijay_kerji | last post by:
Dear All, I have a ASP web application running with CS2000. It has Default page as default.asp It also contains .NET ASPX pages, which will be called from ASP pages. Can I convert the default...
3
by: Gaetan | last post by:
I have setup 2 servers (Windows 2003 Server SP1, latest hotfix) with IIS and .Net Framework 1.1 and 2.0. None of the 2 servers have default.aspx listed as a default content document even when there...
10
by: Eirik Eldorsen | last post by:
How can I 301 redirect www.example.com/default.aspx to www.example.com without using ISAPI filters?
10
by: =?Utf-8?B?SmFtZXMgV29uZw==?= | last post by:
Hi everybody, I'm trying to use the new VB 2008 right now and I want to know how to preset the company name and copyright informtion in Assembly Information. In my current VB 2005, company name...
8
by: AAaron123 | last post by:
I created a home page and moved to the isp. it contains 3 files: Default.aspv Default.aspx.vb web.config and the folder App.Data Using IE to point to my home page folder it displays the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.