News:

SQL Table To C# Entity Model ConverterEntity Model (Class Properties) to SQL Table ConverterIf you encounter any trouble visiting our site, please contact us.

Advertisement

Looking for job. Try JobLoader- First ever job search engine in Bangladesh. All open bd jobs now a single mouse click away.

;

01 namespace DevControls
02{
03public class Task : WebControl
04{
05 [DefaultValue("")]
06public string Title { ... }
08protected override void RenderContents(
HtmlTextWriter output)
09{
10output.Write(Title);
11}
12 }
13}
You need to ensure that adding a Task control from the Toolbox creates markup in the following format.
<Dev:Task ID="Task1" runat="server" Title="New Task" />
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

  1. Add the following code segment to the project's AssemblyInfo.cs file.
    [assembly: TagPrefix("DevControls", "Dev")]

  2. Replace line 05 with the following code segment.
    [DefaultValue("New Task")]

  3. Insert the following code segment immediately before line 03.
    [ToolboxData("<{0}:Task runat=\"server\" Title=\"New Task\" />")]

  4. Replace line 10 with the following code segment.
    output.Write("<Dev:Task runat=\"server\" Title=\"New Task\" />");

Answer: Answer is a, c
comments powered by Disqus
Advertisement

BCS Preparation now even more easy. ReadBD is the place where you can find all kind of resources to be successful in BCS,Bank,Islami Bank exam and interview.

Looking for job. Try JobLoader- First ever job search engine in Bangladesh. All open bd jobs now a single mouse click away.

;