generating random numbers in texbox and then submit to database. code should check if the generated number already exist in database before submiting to database.
I want when I enter text in textbox and select Words from textbox and click on BtnBold it Bold selected word and when I click on BtnInsert it insert Textbox's Text in database with that format..I want do something Like Ckeditor
protected void Button2_Click(object sender, EventArgs e) { foreach (Control ctl in Dynamic.Controls) { if (ctl is TextBox) { TextBox tb = (TextBox)ctl; using (SqlConnection con = new SqlConnection(_connStr)) {
i have a multiline textbox. for example when i write to text box something like this," it is an example for my question " i'am getting the textbox.text and save it to databese, but when i get the same value from databese and show it on page it seems like this, "it is an example for my question", without skipping line, consecutive.
how can i save and get from database as written in textbox?
// for stringprivate string name = ""; //for date private date = DateTime.MinValue; I am not sure, how to declare this. For my insert, is inserted the current date regardless of I chppsing any date. I am not sure why?
Actually i have Textbox in Repeater, while entering value to the textbox and comes out from the textbox, the data which entered in textbox should stored in database.
How to display data from textarea the way it is been typed as ineg. hiiihello what are u doing I want to display the data typed in textarea shown above inside the panel the way it is typed.
one button i use to save form entity.and other is to navigate to next pagwhen i click on save button i use jquery to save form entity in database. and form remains as it is
In my code i would like, to show in a textbox a text from a file, then let the user change anything they want then when they click the save button, i would like the changes to be saved on that file. I wrote all the needed code, but there is something not working, the saving part, the problem i'm having is, it always save the original text, it has no idea about the changes made, so the text file data is always the same.... I think I should use some "New Instance" to fix this problem ... but i don't know where/how.
What I want to happen is, I will populate or load the patient Name into TextBox. If the patient are 20, the page will dynamically create 20 textboxes to display the patient name..And when I click save, Changes will be save base on the input on textbox..
I have set up a tinyMCE textBox on an emtpy form. I will now save some written text to a .txt file. When I press the button, I receive an error page and the .txt file is not created. However if I dont write anything in the textBox and press the button, then the .txt file is created and the messageBox is shown.
In asp I have a multiline texbox for message but when user write his message in that texbox it save online one line message in the table. I want to save full message in the table which user post.
i have d design for dynamic textbox control ..but now i want to save the data values from the dynamic textbox...refer my following codings for design and based on that suggest me the codings for saving the data...