Last post Dec 29, 2008 12:10 PM by darkknight187
Oct 31, 2008 07:35 AM|kemnet|LINK
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.
text box check box
Dec 29, 2008 06:39 AM|joydeepsen|LINK
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.
Dec 29, 2008 12:10 PM|darkknight187|LINK
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?