Author: saburius | Posted on: 12/1/2009 6:28:23 PM | Views : 257

Hi,
How can I replace empty space in textbox with a dash (-) before form values are inserted?
protected void FormView1_ItemInserting(object sender, FormViewInsertEventArgs e) { TextBox txbPageName = FormView1.FindControl("txbPageName") as TextBox; txbPageName.Text = txbPageName.Text.Replace(" ", "-"); }

I also tried using the datasource's Inserting method but neither works.
Any ideas?
Thanks

...

Go to the complete details ...