We help IT Professionals succeed at work.

asp.net / servervariable

Webboy2008
Webboy2008 asked
on
<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
Comment
Watch Question

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"

Author

Commented:
i tried and it does not work
BRONZE EXPERT

Commented:
Use &Lt% eval(" ") %ft&

Author

Commented:
Use &Lt% eval(" ") %ft& ?
Software Engineer cum AD Developer
BRONZE EXPERT
Commented:
Check out link:

Concatenate string in .aspx page

The link let you know how to concatenate string.

Explore More ContentExplore courses, solutions, and other research materials related to this topic.