Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 111437
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T02:23:07+00:00 2026-05-11T02:23:07+00:00

I have a asp.net page I’m writing and I’m perplexed by this problem. I

  • 0

I have a asp.net page I’m writing and I’m perplexed by this problem. I have 3 DetailViews that I bind with LINQ. The binding works great. Now, I have a Skin file that I want to use to layout the DVs, and it looks like this.

<asp:DetailsView SkinID='blogViews' runat='server' Width='100%' CssClass='post'  AutoGenerateRows='False' GridLines='None' FooterStyle-CssClass='comments' FooterStyle-Height='50px'> <Fields>     <asp:BoundField DataField='blog_title' ShowHeader='False' ItemStyle-CssClass='title' ItemStyle-Font-Size='X-Large'/>     <asp:BoundField DataField='blog_content' HtmlEncode='False' ShowHeader='False' ItemStyle-CssClass='entry' /> </Fields> 

Now the problem is, I need to add a templateField to display some data, and I need it between the title and content fields. By using a template field, I need to do an:

Eval('blog_datetime') 

and a few others. Unfortunately, the Skin file doesn’t allow code blocks. I can’t add the template field to the aspx page itself, because it puts the templateField at the bottom of the DetailsView. I guess what I am asking is:

How can I work around the fact that I can’t put a code block in a skin file?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T02:23:07+00:00Added an answer on May 11, 2026 at 2:23 am

    I am wondering if you would be better off creating a custom control for laying out these details views?

    Skin files are for modifying styles more than behavior and binding.

    A custom control would allow you to do all of this and get the benefit of shared layout for the three data views.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a ASP.NET page with an asp:button that is not visible. I can't
I have an ASP.Net page that will be hosted on a couple different servers,
I have an asp.net page with a button. This button generates and inserts a
I have an ASP.NET page that uses a repeater nested within another repeater to
I have this serious: I have ASP.NET page, This page contents Update panel with
I have an ASP.NET page that contains two div's. Both have search fields and
I have an ASP.NET page that has three div s within the only form
I have an ASP.net page that is creating a service reference to a WCF
Novice question I guess: The Scenario: I have an asp.net page that contains 6
I have a asp.net page, and would like to know whether script1 is already

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.