I have only a textbox in a page. If I type something inside the textbox and click carriage return key (Enter), the page refreshes and the textbox becomes blank again.
What is actually happening here? Why the page refreshes? Is it the default property of asp.net?
I have an ASP.NET TextBox with TextMode = TextBoxMode.MultiLine that is used within an AJAX Update Panel. The .Text value has been pre-set to a value that has multiple lines.
When using Chrome(7.0.517.41) or Firefox(3.6.11) working with the controls posted back value on the server the carriage return is lost if the user hasn't edited the pre-set value.
I am creating an application in which I am using Live Id authentication. When the user tries to access an authenticated page, I am redirecting the user to Live Id sign in page. Is it possible to return the user to the previously asked page (from which he was redirected). Some thing like return URL.
Actually I want to pass some data in query string to webauth-handler.aspx page when the user successfully logs in. Can any body tell me how to pass query string to webauth-handler.aspx?
I have a tablecell where I import the text from a SQL database and this all works well, except that the carriage returns are not being displayed in the text.
I have done some googling and although I do not get any error messages, the carriage returns are not appearing in my table cell.
Here is the code:
[Code]....
I have also tried Environment.NewLine, etc. but all to no avail.
I have been adding different JQuery Carousels to AJAX Tabbed Panels - the first one displayed on the page always works. But any other tabs dont work when I select the tab. I have about a dozen different carousels.
Can anyone recommend one that works in AJAX Tabs or how I can go about rectifying this?
I have created an asp.net applications in which i am using jquery tabs to show say profile modifications information. I want user to see his profile info as well as he will be able to edit his details and save the information. for this purpose i have created an aspx page "MyProfile.aspx" and 3 ascx pages
say "page1", "page2" and "page3".
When i run "MyProfile.aspx" i can see all 3 tabs showing correct information. But problem is when i edit contents and try to save them back to the database. Contents on page1 are stored correctly. But page2 and page3 doest not fire any event. In all 3 pages I am using ajax n jquery to save data to database. and when i try to save contents of page2 and page3 nothing occurs.I am showing 3 tabs there of which first tab edits save the details but second and third tabs do not fire any event on button click.
I've got a text box on my page called txtNotes - multiline textbox.
When I add the text into the sql server database, the line feeds are not getting entered.
I have a function that replaces the line feeds with "<br>" and it's still all in one line. Also I don't see the normal square type entity after each line in the database, that is normally there for a line feed.
However, when I copy from the database and paste it to Notepad, it is formatted correctly
I have this following setup, a textarea named with some data in it that may have carriage returns and another textarea that has style='display:none' in order to make it hidden as follows:
I have an ASP.NET multiline textbox. I can hit return to create carriage returns on the screen but the text property of the textbox is ignoring the carriage returns and simply concatenating the lines without even a space in between. I am writing this text property to a database and I want to be able to retrieve the text exactly as it was typed with carriage returns included.
I'm new to .net, and I've noticed that when viewing my HTML source code generated by a .net application the carriage returns are removed from the head tag when it has runat="server" attribute on it.
I remove the runat="server" and the returns... return.
This really looks nasty when you have a few javascript and css files in your header because it ends up making the entire contents of the head tag 1 big line.
Just wondering if there's a way to control this or tell .net through configuration not to mangle the output?
I have an some code to export data form an SQL database to an Excel spread sheet. the data is entered via a web site and some of it contains multiple lines of information. I need to preserve the multiple lines but excel 2007 continues to put an [?] at the end of each line.Here's what I got so far
CellValue.ToString() // this returns [?][?] at the end of each line for excel 2007 // and a single [?] in excel 2010 CellValue.Replace("[//r]","") // this works correctly for 2010 but still leaves a [?] for 2007 Cellvalue.Replace(Environment.NewLine, "") // this removes all the line breaks.
what can I replace the Environment.NewLine with in order to still have line breaks in both excel 2007 and 2010 (with no [?]) ?
Does Ajax Tab support using sub tabs (or children tabs)?I have a project where I need to show several tabs like "Sales" "Production" "Revenue" and when I click on for example "Sales" I would like to see a new tab tab with "Currentales", "History", "Comparison" etc etc. and be able to click each one of these for further processing.
I would like to create two tabs called Info and place. However when the mouse is over the info tab, all the sub-tabs associated with it will show-up and in this case, the sub-tab will be report_1 and report_2 and also when the mouse is over the place tab, all the sub-tabs associated with place will show up and in this case, the sub-tab will be place_report_1 and place_report_2. how do I go about doing this?
I have an update function in my data layer which is defined as:
public int UpdateRBTable(parameters ...) This calls a SQL Server Stored Procedure to perform an update function on the database.
The process does its job for updating the table. However, the stored procedure has a return value (which indicates how many rows were updated), but this return value is not returned to the application. The application always shows that a zero was returned from the stored procedure.
I was woundering if i could be lead in the right direction.
I have three tabs on my page and on the first tab i have a txtbox which i supply with a name. On my tab 2. I have a ddl which i will include the value of the txt i was working on on tab1
Now i will like to post the value on the textbox in tab1 to the ddl in tab2(Searching through it and getting the right info)
The way i have it right now is just adding another value into the ddl and its not searching properly even thou i know there is a record in the db.
Is there a way to differentiate multiple tabs or windows in IE8? Using this information I want to uniquely identify tab/window where the web request is coming from.
Is there a way to set tab order on each ListItem within a RadioButtonList? The listitem does not have a TabIndex attribute, so can this somehow be done via javascript?
A similar thread indicates there is not a way to do this [URL], other than using individual RadioButtons instead of a RadioButtonList.
I have three websites A, B & C. Website A & B opens in new tab when a link is clicked from website C. I want to close all the tabs when logout button is clicked in website C.