Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
umbraco 4.11.5
if I go to the page with just "pages.aspx" then it doesn't not check if faser is empty
but if I go to the page "pages.aspx?faser" then it get it
so how do i get it to look at "faser" so I can check if it is empty?
@{ var faser = Request["faser"]; var strudeinde = Request["udeinde"]; var strfag = Request["fag"]; if(faser ==""){ faser = @Model.faser; } @faser }
Hi Brian,
For QueryString try something like
var faser = Request.QueryString["faser"];if(!String.IsNullOrEmpty(@faser)){ @faser}
I still get nothing and now I get nothing if I use pages.aspx?faser=
Try this
if (!string.IsNullOrEmpty(Request.QueryString["faser"])){@Model.faser}
I still get nothing
do you have something in your QueryString? pages.aspx?faser=something
no is empty
But here we are checking if its not empty!!
So you want to display something if empty?
if(!string.IsNullOrEmpty(Request.QueryString["faser"])){ @Model.faser}else{ @Model.faser}
yes i want to set "faser" to @model.faser if is empty and if not empty then faser = Request.QueryString["faser"]
Hi Fuji
SORRY my mistake I had "faser" 2 places so thas why it did not as I would :-)
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
check if it is empty
umbraco 4.11.5
if I go to the page with just "pages.aspx" then it doesn't not check if faser is empty
but if I go to the page "pages.aspx?faser" then it get it
so how do i get it to look at "faser" so I can check if it is empty?
Hi Brian,
For QueryString try something like
I still get nothing and now I get nothing if I use pages.aspx?faser=
Try this
I still get nothing
do you have something in your QueryString? pages.aspx?faser=something
no is empty
But here we are checking if its not empty!!
So you want to display something if empty?
yes i want to set "faser" to @model.faser if is empty and if not empty then faser = Request.QueryString["faser"]
Hi Fuji
SORRY my mistake I had "faser" 2 places so thas why it did not as I would :-)
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.