Adding text box & check box to input ad form RRS feed

  • Question

  • User-891577769 posted

    Im trying to add a text box and check box  to the input ads form, but always get some kind of failure message. 

    Could someone please guide me to it or give me a explination on how it should be done. Thanks!

    Which files I sould be change and how, for expamle how add text box and check box  in  AppCode/BLL/Ads.cs file, code behind file or stored procedure.

    Friday, October 31, 2008 7:35 AM

All replies

  • User1580727775 posted


    If i am not wrong you are trying to dynamically adding a control to your page.

    But i could not get your point clearly.

    You mentioned that you wan to add the controls in  the file App_Code/BAL/Ads.cs.

    So,is Ads.cs is only a .cs file ?

    Then how can you add a control to a cs file?It is not possible.

    What you have to do is ,you need to add controls in some web form.

    So in the web form code behind you can add code like this,

    protected vois Page_Load(object sender,EventArgs e)


       TextBox txt=new TextBox();

    txt.Text="Happy New Year";



    The above code will dynamically add the control to the page.

    Hope to hear from you.


    Plz mark as answer if you have got your sollution.

    Monday, December 29, 2008 6:39 AM
  • User730446648 posted

    I gave a step by step on another post.


    Where are you getting stuck?

    What's the error?

    Did you remember to set the checkbox type to bit in the database?

    Monday, December 29, 2008 12:10 PM