Questions tagged [asp.net-placeholder]

The ASP.NET Placeholder control is used to provide a location in a Master page where content pages will fill in page-specific content.

34 questions
11
votes
2 answers

PlaceHolder vs Literal for adding HTML markup generated at runtime

This question points out Literal vs Label while this question points out Panel VS. PlaceHolder but just today I was debating with my colleague on using PlacHolder vs Literal for adding HTML markup which is generated at runtime. Both controls do not…
Ahmed Atia
  • 17,848
  • 25
  • 91
  • 133
4
votes
1 answer

Placeholder not working in chrome

I'm using razor view page and in date time field i want to display placeholder, its showing in Firefox but not showing in chrome its show - mm/dd/yyyy. Hers is my code - @Html.EditorFor(model => model.Date, new { htmlAttributes = new { @class =…
Ashvin
  • 211
  • 2
  • 11
3
votes
1 answer

How can I get the content of an asp:placeholder into a variable that I can apply an xml transform on?

How can I get the content of an asp:placeholder into a variable that I can apply an xml transform on? Background I am trying to customise the layout of a .NET web application. It's an enterprise product that allows me to add/remove blocks of…
kkuilla
  • 2,226
  • 3
  • 34
  • 37
2
votes
2 answers

Get the values of the textboxes which are in dynamically generated in placeholder

I have used an expandable list view in my code. I have used a placeholder in my .aspx file and using the code in .aspx.cs file load dynamic textboxes. I have give unique ID for generating textbox but i do not know how to get the value entered in…
1
vote
1 answer

How to use mathjax in placeholder of textbox in asp.net?

I recently added MathJax to my webform, I'm able to do everything except figure out how to use MathJax as a placeholder inside a TextBox. example: My placeholder doesn't want to use…
justinpees
  • 420
  • 5
  • 20
1
vote
1 answer

Usercontrol that dynamically generates a list of controls on postback

I want to create a reusable user control that allows the user to create and remove tags. It should have a textbox where the user can enter a tag name, and a button to submit the tag. After sumbitting the tag, it should dynamically create a label…
Vittorio Romeo
  • 90,666
  • 33
  • 258
  • 416
1
vote
1 answer

Render PlaceHolder within li tags

I've got the next situation: within an ITemplate object I'm rendering a Repeater with
  • elements inside, normally it's done like this: Dim literalControl as new LiteralControl literalControl = "
  • blah…
  • K. Weber
    • 2,643
    • 5
    • 45
    • 77
    1
    vote
    1 answer

    How to find index of a control in a placeholder

    I have the following code : Label docsLabel = new Label(); docsLabel = (Label)tasksPlaceholder.FindControl("taskdocs_" + taskId); int index = tasksPlaceholder.Controls.IndexOf(docsLabel); The label is found within the placeholder, but…
    Andre J
    • 227
    • 4
    • 18
    1
    vote
    1 answer

    asp.net PlaceHolder - loading content into

    Given the following code below. How might I display another web page or content within the placeholder via a server onClick event in C# code; similar to now defunct iframe. I perfer to handle all events via sever side code (C#, asp.net…
    BJC
    • 58
    • 7
    1
    vote
    1 answer

    Using a user control as a row inside a placeholder

    I have an asp placeholder in my page, and I dynamically insert "rows" into it, where each row is a user control. If the request is a GET request, I load the data from the database and populate as many user controls as needed. I also add the control…
    user2320724
    • 666
    • 3
    • 10
    • 18
    1
    vote
    1 answer

    Why is the content inside the invisible asp:PlaceHolder rendered?

    Why is the content inside the placeholder rendered? This code results in: "Object reference not set to an instance of an object." For the MainGuard object! How should one handle this situation?
    Morten Holmgaard
    • 7,484
    • 8
    • 63
    • 85
    1
    vote
    1 answer

    Hide/Show Placeholder using Jquery

    I have a placeholder and want to show it using JQuery. Now in placeholder I cannot have style="Visibility:hidden" so I have to set the Visible Property to False, hence Jquery not able to find it. My question is how do I set the visibility on JQuery…
    Zaki
    • 5,540
    • 7
    • 54
    • 91
    0
    votes
    1 answer

    Convert a string value into PlaceHolder id

    As a newbie I have tried several Google searches and have found a few confusing answers. What I am trying to achieve is: click on a button (one of many), extract that button's text value, then use that value to make the relevant placeholder…
    BigGeoff
    • 11
    • 1
    0
    votes
    1 answer

    Unable to update database table from placeholder textboxes

    I would like to update database table using placeholder textboxes but say it is 2 textboxes and the user edits one of the textboxes, I'm sure how to update the table to know which one the user edited. as well as i need to keep track of the number…
    user9356917
    0
    votes
    1 answer

    Dynamic added textbox control value is not updated

    I have a placeholder on a page which is populated with a dynamic table which has dynamic added textboxes (which is filled with language dependent data). The placeholder is filled with data on each page.load but with different data depending on which…
    MTplus
    • 2,077
    • 4
    • 34
    • 51
    1
    2 3