Jump to content

I lose my master page

- - - - -

  • Please log in to reply
3 replies to this topic

#1
wim DC

wim DC

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,083 posts
  • Programming Language:Java, JavaScript, PL/SQL
  • Learning:Java
Hello,
I have my .master file in the root folder. On all my webpages i use: MasterPageFile="~/Site.master" .

This works fine with for example:
"http://localhost:53841/WebSite/frm/user/frmUsers.aspx"

But when i put a slash behind that it drops the master page
"http://localhost:53841/WebSite/frm/user/frmUsers.aspx/"

I need the slash at the end when i give a parameter from 1 page to another like
"http://localhost:53841/WebSite/frm/user/frmUsers.aspx/?id=2"
And then it uses no master page anymore :confused:
My images on the imagebuttons are also not working (red cross as image) even though i used the ~ symbol to access those.
(i was following this tutorial: Tutorial 9: Master/Detail Filtering Across Two Pages) but i don't think they do anything for the masterpage.

I have also added users/roles to the website allready if that may be something important, as i had some issues with the css to get that working.
Any ideas?

#2
zeroradius

zeroradius

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,406 posts
I don't think the slash goes there. I glanced at the tutorial and it shows no slash before the ? by putting th slash you are saying that whatever is before it is a directory not a page. you can pass the paramaters between the page just by putting ? after the page name. so putting http://localhost:538...Users.aspx?id=2 will pass the paramater 2 for id to frmUsers.aspx
Posted Image

#3
wim DC

wim DC

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,083 posts
  • Programming Language:Java, JavaScript, PL/SQL
  • Learning:Java
... okay, i feel stupid now. But thanks a lot! :thumbup1:

#4
gokuajmes

gokuajmes

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 518 posts
zero Radius is a Pokemon Lover !!:) i watch Pokemon too when i am free :mad:




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users