Author: James_Williams | Posted on: 7/31/2009 4:37:40 AM | Views : 511

Hi all,

I'm having a problem with trying to submit HTML tags into a database (setup as a text field)

I dont think the query gets as far as the script to submit it to the database.

Basicly i have a form within an updatepannel. When the button is clicked it submits the data from a text box to the database. It works fine with any standard text. But if i try and add any html tags to it wont submit to the database and all update pannels freeze.

Code to submit to database:


protected void Submit_Comment(object sender, CommandEventArgs e) { foreach (Control c in PlaceHolder1.Controls) { if (c.ID == "commentsUpdatepannel" + e.CommandName) { UpdatePanel upd = new UpdatePanel(); upd = (UpdatePanel)c; foreach (Control c1 in upd.ContentTemplateContainer.Controls) ...

Go to the complete details ...