default.aspx

G

Guest

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
 
S

SevDer

rodchar said:
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.
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top