Link to home
Start Free TrialLog in
Avatar of Webboy2008
Webboy2008

asked on

asp.net / servervariable

<obout:Grid runat="server" ID="grid1" AutoGenerateColumns="false" PageSize="5" Width="950"
                DataSourceID="sds1"
            FolderStyle="http://localhost:15275/eServices/UIStyleControls/Obout/Grid/styles/style_2"
            AllowAddingRecords="false"
            >

About the code. how can i write iike

FolderStyle='http://" + servervariable('host") + "/eservice...."?

I just want to pick up the host from the url and land inline asp.net code on aspx
Avatar of JustAndrei
JustAndrei
Flag of Belarus image

There is a better way of addressing pages from your application. Simply start the URL with ~, what is the root of your application. For example, if your app's path is "http://localhost:15275/eServices/", then set FolderStyle="~/UIStyleControls/Obout/Grid/styles/style_2"
Avatar of Webboy2008
Webboy2008

ASKER

i tried and it does not work
Avatar of Ravi Vaddadi
Use &Lt% eval(" ") %ft&
Use &Lt% eval(" ") %ft& ?
ASKER CERTIFIED SOLUTION
Avatar of Vikram Singh Saini
Vikram Singh Saini
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial