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
0
votes
1 answer

How to loop through only the Selected items value in a Placeholder dropdown list-Code Behind

aspx DLL ddColumns.DataSource = AvailableColumns ddColumns.DataTextField =…
Linta Sheelkumar
  • 195
  • 1
  • 5
  • 21
0
votes
3 answers

skipping rows from table while fetching data from database asp. net C#

fees_structure has 24 "A" Category rows. But when I try to fetch them and print, it only displays 20 or (21 rows sometimes) Here is my code: string catA = "SELECT id,fees_name,amount,fee_category FROM fees_structure where fee_category='A' ORDER BY…
0
votes
0 answers

Placeholder control that includes an item gets index out of range

I have a Placeholder where a table is dynamically added on page load (everything loads fine and I can see control[0] when debugging without a problem. When button is clicked to reset the form, I try to access that table at control[0] and get "index…
deebs
  • 1,390
  • 10
  • 23
0
votes
1 answer

take placeholder from resources with html tags

There is simple string in my resource file "Good Day,Sir
Have a nice day.".This string must be a placeholder on TextArea.But html tags don't work.I'm trying to use Html.Raw but it doesn't help.what should i do? @Html.TextAreaFor(model =>…
Anton Kozlovsky
  • 203
  • 1
  • 15
0
votes
1 answer

Add a single control to multiple placeholders

There are two placeholders in my page.aspx: // Other tags I've created one HtmlGenericControl in…
Muhamad Jafarnejad
  • 2,521
  • 4
  • 21
  • 34
0
votes
1 answer

Placeholder in MVC 4 model or view

I am trying to set place holder to textbox or multi line text box in MVC 4. So far it is not working. [Display(Name = "Location", Prompt = "Enter info related to Location")] public string LocationDesc { get; set; } And the View as…
user2739418
  • 1,623
  • 5
  • 29
  • 51
0
votes
1 answer

Dynamic Controls in PlaceHolder were lost after an action is performed

I have a PlaceHolder in a webform with Master page with the code
Dhinesh
  • 181
  • 2
  • 5
  • 20
0
votes
2 answers

Replace User Control Inside PlaceHolder ASP.NET

Ok, I've been searching for a couple hours on this topic now and nothing seems to look like a solution or even the same problem. I have an aspx page with two content areas: a menu and a "MainContent" area which contains an UpdatePanel and a…
Rein
  • 215
  • 1
  • 2
  • 12
0
votes
2 answers

Infinite loop that will run based on a time

I am fairly new to programming so any help will be taken on board, I am trying to get my CreateTable to run every 2 seconds however when I click my button to execute InitLoop nothing happens, I have tried various different things but haven't been…
Jack Holmes
  • 122
  • 6
0
votes
1 answer

How view hmlTable in asp.net mvc?

Can I use HtmlTable class in asp.net MVC? I created HtmlTable object in Controller class: var Table1 = new HtmlTable(); How to view it in the web page? When I use: PlaceHolder1.Controls.Add(Table1); in Controller class and
Olena
  • 293
  • 3
  • 6
  • 12
0
votes
2 answers

Dynamically adding images using UpdatePanel

I'm trying to dynamically create images in a table but it seems like the UpdatePanel is not updating. I have the following code in my .aspx page. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="ViewTile.aspx.cs" Inherits="ViewTile"…
Jason King
  • 265
  • 1
  • 4
  • 19
0
votes
2 answers

How to add html form to asp:PlaceHolder (missing form tag)

I have to add simple form to a asp:PlaceHolder In PageLoad() I added: data = "
1110
  • 7,829
  • 55
  • 176
  • 334
0
votes
2 answers

How can I trace a placeholder to find its controller?

I'm trying to clean up a registration form. The precursors made it easy to adjust most sections of this form, but when I get to the Address portion of the template I uncovered this strange artifact:
NominalAeon
  • 593
  • 5
  • 23
0
votes
1 answer

Add buttons with css & eventhandlers in Page_Load

Im trying to add buttons to a placeholder, each with an eventhandler to the same method. if (!this.IsPostBack) { foreach (Entry ent in results) { HtmlButton btn = new…
mdc
  • 1,161
  • 6
  • 22
  • 37