Want to used Standard Control instead of HTML control


is someone can tell me how i can replace the following :

Response.Write("<Image id=" & h & BBLOCK(j) & BID(j) & h & " src=" & h & GLOBAL_IMG_URL & BCONTENT(j) & h & "/><br/>")

by the same in standard control (using Image). I've try to done it without succes.


1/20/2006 8:31:35 PM
asp.net.web-forms 93655 articles. 6 followers. Follow

1 Replies

Similar Articles

[PageSpeed] 33
Get it on Google Play
Get it on Apple App Store

You'd probably have to define the image in your code-behind (or script if you're using inline code):

Dim myImage As New Image()

myImage.ID = whateverTheIDisSupposedToBe

myImage.ImageURL = whateverTheURLIsSupposedToBe

' Then you need to put the image control in the right spot, usually by

'adding it to the controls collection of a parent control



That's the basic idea, anyway...

Peter Brunone
Founder, EasyListBox.com
Do the impossible, and go home early.
1/23/2006 4:56:13 PM

Similar Artilces:

Who uses Web Controls/HTML Controls?
I'm currently making the migration from ColdFusion to asp.net and I have a few questions. 1. Does anybody really use the Web/HTML Controls? CF has something similar <cfform> but I never use it because I'm a believer in separating html from application logic/control. And I like being in control of what goes on in my apps. However, I find the Web/HTML Controls interesting. 2. Is there a standard framework that people use to organize their code? I like using MVC (Model, View, Controller) to create true N-tier applications. Just wondering what others use. 3. Is anybody using Flash...

When to use web control and Html control
I am designing a web application in which onclick a form becomes visible containing set of text boxes and other fields. How shoud I design it. I am not able to figure out difference between web form controls and html controls. Shrinivas...

Modifing javascript to use server controls instead of using html controls
Hi, I use a Javascript to create a textbox that converts English to Hindi text. I am using it in my aspx pages. I use another javascript to access the Text of this HTML textbox.  Everything is fine when I use Single TextBox on a page. But the complexities go out of my control when i need to use 5 such textboxes on the same aspx page. Moreover I encounter issues of ID of ASP.NET controls that get changed as there are ContentPlaceHolders, TabPanels etc. I don't know the javascript things so deeply that I can comprehend the code that generates the custom Textbox. Now I ne...

Web form Controls vs HTML controls
Hi, can anyone explain me the difference between Web Form Controls and HTML controls? What is their usability and disadvantages? Can i write code behind HTML controls?    Thanx in advance. Yes, you just have add "runat=server", in your HTML control. The Web Server Control, have more funtionality that the HTML controls. With Web Server Control, you can work easy with Data. Too, you have controls as AdRotator, WebCalendar and more... : http://samples.gotdotnet.com/quickstart/MCP Sergio Tarrillo Here are the Recommendations from Microsoft ....when to use 1 over the other...

HTML Controls vs Web Form Controls
Hi, I have a page with both controls (HTML and Web Form Controls). I am trying to use an html Calendar control and then get the date selected by the user and put into a Web form input field control. When I try to run this the HTML control cannot talk to the Web form control. Any ideas? Thanks. Can't you put some javascript in the HTML-control with which you assign the value to the ASP.NET Server control? Please post some code so I can help u. Kind Regards,ThaYoung1! Hi here is the Code. Also I added a web form text input control and an html text control and created a fu...

Use Web Control In a Web Control
Is this possible?I am working with an aspx page that consists of many different web controls.One of the web controls contains search criteria.  One of the criteria is a date range where I am trying to add a popup calendar --> which is another web controlCan I register the popupcaledar control on the questionaire control?  I have tried, but nothing seems to be registered.Any ideas will GREATLY help.Relax and have some Home Brew!Prosecute the Owner - Don't PERSECUTE the Breed!Breed Specific Legislation targets the WRONG end of the LEASH! Without seeing your code we can'...

using a .Net Control as activex control in VCL form
Hi , We have a to integrate a simple .Dot CSharp control which needs to be integrated into bcb2010 VCL form as a control. We will place the control on the VCL form along with other VCL controls's. I tried creating a simple .net control using a lable+textbox and trying to use in vcl form. I have made the assembly comvisible and generated tlb files and .bpl for the component. I could see the component in "ActiveX" tool palette. But when I drag the object onto VCL form and try to access its attributes I run into problems. I am not able to see .net control on the vcl at runti...

When to use aspx controls vs standard html controls
Could someone please discuss when to use the new aspx controls as in <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> as opposed to the standard <input type=text> etc. This is especially puzzleing with things like labels, tables, buttons where databinding is not an issue. If a label is static and doesn't ever change, is there still a reason to use the newer version?   Thanks  Hi...Please read the following. The following sections cover HTML and Web server controls. Frequently, the questionarises: which one should I use? Here is ...

Using scripts with Web Controls vs. HTML Controls
When using <SELECT> I can use the onchange event to execute some javascript code at the top of my document. However, it appears that when I use <asp:dropdownlist> and the OnSelectedIndexChanged event that I have to post back to the server to execute any code.  Is it possible to have javascript code execute on the client side when my asp:dropdownlist is changed or do I have to use a <SELECT> statement to accomplish this?...

Web Form Server Controls Vs. HTML controls
Hi1. What is the difference between Web Form Server controls and HTML controls with runat="server" attribute.e.g. <input type="text" id="mytext" runat="server"> Vs. <asp:TextBox id="mytext" />2. Why we should not use the normal HTML control instead of Server Controls since HTML controls are rendered on client side the performance in using them will be much better that using Web form server controls. Pls. can somebody explain this.- Anand one thing i know. there are much more options for the web controls. and web controls are easier to use than the http controls. for exampl...

superreview requested: [Bug 175279] Use nsITheme with HTML form controls on Mac OS X ( native-style form controls)
Josh Aas <joshmoz@gmail.com> has asked Robert O'Callahan <roc@ocallahan.org> for superreview: Bug 175279: Use nsITheme with HTML form controls on Mac OS X (native-style form controls) https://bugzilla.mozilla.org/show_bug.cgi?id=175279 Attachment 265638: fix v1.0 https://bugzilla.mozilla.org/attachment.cgi?id=265638&action=edit ------- Additional Comments from Josh Aas <joshmoz@gmail.com> When we have approval for Mac OS X native form controls in Gecko 1.9 (a5 major changes window is over), this will enable them. ...

superreview granted: [Bug 175279] Use nsITheme with HTML form controls on Mac OS X ( native-style form controls)
Robert O'Callahan <roc@ocallahan.org> has granted Josh Aas <joshmoz@gmail.com>'s request for superreview: Bug 175279: Use nsITheme with HTML form controls on Mac OS X (native-style form controls) https://bugzilla.mozilla.org/show_bug.cgi?id=175279 Attachment 265638: fix v1.0 https://bugzilla.mozilla.org/attachment.cgi?id=265638&action=edit ...

Controlling web control instances on Web Form
I have created a composite control, extending functionality of the Hidden Control. However, I would like to prevent the user from adding this control to the page multiple times. I only want one instance of the control on the Web Form. What setting in my project to I adjust to enable this functionality? I can not find it in any of the books that I have referenced. Is this a setting or is this code that has to be added to the inheriting class. Looks like there is no standard apporach. But I'd consider using static field to count number of created objects and throw exception if second object ...

Is there any web form control that can work as IFRAME html control?????
in html pages, we can use iframe control in which we can load another pages and/or folder explorer. now, i'm developing a web page in which i like to show the folder explorer when user clicks a link. as a prototype, i developed an html page like below: <html> <head><title>Using iFrame to browse a folder</title> </head> <body bgcolor=cyan> <table left=5px top=5px id=tabMain width=90% height=90% border=1 cellspacing=1 cellpadding=1> <tr height=100%> <td width=20% align=center valign=middle> <INPUT TYPE="Butto...