.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan
Post New Web Links

Refresh a multiline text box

Posted By:      Posted Date: October 10, 2010    Points: 0   Category :ASP.Net
 

I have developed a chat application but when i try to open two browser windows n log in with two different names post send by  one user is not displayed in multiline textbox until that page is refreshed...... although that textbox is in ajax update panel


plz help me  




View Complete Post


More Related Resource Links

How to display multiline text in ECT formview?

  
Hello, with SPD i created External Content Type from MSSQL database. How to customize SharePoint:FormField in dispform.aspx to display multiline text from database? I tried use NoteField insted, but it trows excepion. BR  

Multiline text field in document library and item update from Word trouble

  
Hi I have faced a bit of odd problem. Here is the scenario: I have document library with text columns (multiple lines of text) that are set to unlimited length. I have a workflow that runs with Word documents (.docx) that stores information in XML to this field. Everything works perfectly until document is edited in Word and saved back to document library. After Word saves my document in document library, the multiline text field is "cutted", only 7 rows of text is saved to my field. I have tried hiding my text field, making it sealed or readonly, but still Word breaks my field. Funniest thing is that when editing document in Word, this field should not have any changes (meaning that I dont show my "long text field" in document information panel back in Word). I have tried also creating event handler to handle itemupdating event in document library where I switch spweb.parserenabled property to false and in itemupdated event I switch it back on. Also I have tried to remove all line changes from XML with no luck. This XML saving to long text field works perfectly with many other places but in this one environment this does not seem to work :( I am looking forward to any suggestions what to try next. I have been wondering about using the eventhandlers and trying to "protect" my text field with some logic but that is still just a thought.   T

Dynamically added text boxes disappears after page refresh

  

Dim objDatabase As New database
        objDatabase.OpenSQLConnection()
        Dim objAdapter As SqlDataAdapter
        Dim objDataset As New DataSet
        Dim objAdapter1 As SqlDataAdapter
        Dim objDataset1 As New DataSet
        Dim objAdapter2 As SqlDataAdapter
        Dim objDataset2 As New DataSet



        objAdapter = New SqlDataAdapter("SELECT first_name + ' ' + last_name as [Name],father_mobile_no as [Father Mob No],mother_mobile_no as [Mother Mob No] FROM student_data WHERE class='" & cmb_class.SelectedValue & "' and division = '" & cmb_division.SelectedValue & "' and school_id='" & Session("school_id") & "'", objDatabase.con)
        objAdapter.Fill(objDataset, 0)
        If objDataset.Tables(0).Rows.Count > 0 Then


            Dim dt_table As DataTable
  

InfoPath 2010 Web forms in IE and Firefox regarding the Multiline text box

  

Could someone please confirm if this is a bug.

I created an InfoPath form in 2010. As an Infopath form, the multiline textbox grows, as a user enters text, automatically as expected.

The very same form as a web form:

In IE 7 and IE 8 the box expands at every 20 or so chharacters instead of at the end of a line.

In Firefox (3.xxx) the box does not expand unless you press enter at the end of every line.

In IE 7 and IE 8 if you open a form that was created with FireFox, the boxes end up expanding as if it had been entered in IE instead of FireFox. FireFox seems to be the most compatable but how do I explain to user that they can use IE for everything but forms?

The question is this: Is it a bug because I would think the box should be dynamic as the user eneters data and should not require the user to press enter. When will this be fixed. It is holding us up as to ever being able to use InfoPath Web based forms which is a requirement because InfoPath based forms are not supported on any OS other than Windows. Web Based forms should operate and be available regardless of the browser type. Please advise.


Greg McAllister

how to refresh display label.text under for loop condition

  

Dear All,

I have a for loop condition as below coding for looping to change word on label.text, but as a result, it just only display the last value.

pls help me how can I do to display each value for a looping.

i want the result is the label1.text to show 1 then 2, then 3, then 4.......finally is 10.

for i as integer = 0 to 10

   label1.text = i

next

thx all

 

 


What is the max limit for number of characters in multiline text in Sharepoint?

  

Hi,

In Sharepoint list, i have a column define as multiline text.  I want to know, what is the max character limit in multiline text, and how can I increase it to unlimited text?

Thanks any help.

Abhijit Sil

Multiline Text allowed characters or tags

  

So before I write a custom field to replace the use of the OOTB multiline text field could anyone tell me a couple things?

First, could someone better explain the reason that script and iframe tags were allowed in content editor web parts but not in the multiline text RTE?

Second, is there a way to enable the use of unsafe tags within the multiline text field without having to create a custom field?

 


Multiline Gridview and Formatting with Long Text SQL ASP

  

Hi,

 

I have a long text in SQL and passing it to a gridview. I am trying to make the gridview result display in a multiline scroll. I have tried the following code but to no avail. Can someone please assist? Additionally, the text in the gridview result is not in the same format as where it came from, eg. Word. That is the format such as bullet points and multiple spaces are removed. So what is left is a lenghty long string. Please help.

 

Thanks,

Nijojo

 

<asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
            AutoGenerateColumns="False" DataSourceID="SqlDataSource1">
            <Columns>
                <asp:TemplateField HeaderText="description" SortExpression="description">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("description") %>' TextMode="MultiLine" ></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("description") %>' TextMode="

InfoPath - How to show multiline text box in print view with entire text i.e. text exceeds more than

  
I have created an Infopath form with a multiline text box, at times, there is more information entered into the text box, cause a user to scroll. 
That feature is ok but when a user prints the form, only the information displayed on the screen is printed, and not the entire contents of the text box.  How can I print the entire contents of the text box?
also i dont want to create an another view as we have around 100 from and each can be change time to time causing print view need to be changed.

AutoCompleteStringCollection for text box in DataGridView 2.0

  
I have been searching for a way to have autocomplete in a DataGridTextBox
object. There does not appear to be an obvious way to do this like you would
for a TextBox outside of a grid using the AutoCompleteCustomSource. Any
thoughts on how I can add this collection? :)

Built-in Functions - Text and Image Functions in SQL Server

  
Text and image functions operate on TEXT, NTEXT and IMAGE data types. These data types are deprecated with SQL Server 2005 and should be replaced by VARCHAR(MAX), NVARCHAR(MAX) and VARBINARY(MAX) when possible. Alternatively you can also consider storing large string values using XML data type. Text and image functions are nondeterministic.

Future versions of SQL Server will not support TEXT, NTEXT and IMAGE data types. Columns with TEXT / NTEXT data type do not support commonly used string functions such as LEN, LEFT, RIGHT, etc. Furthermore, due to the large size of TEXT data you''re likely to see performance issues if you store such data in the database. However, at times you can''t help but use the TEXT / NTEXT / IMAGE data types (for example when supporting 3rd party databases when you cannot change the schema) - this is when text and image functions come in handy.

Built-in Functions - Text and Image Functions

  
Text and image functions operate on TEXT, NTEXT and IMAGE data types. These data types are deprecated with SQL Server 2005 and should be replaced by VARCHAR(MAX), NVARCHAR(MAX) and VARBINARY(MAX) when possible. Alternatively you can also consider storing large string values using XML data type. Text and image functions are nondeterministic.

Conversion of text files from ANSI to UTF-8

  
reading and writing text files in ANSI format and
writing html-files in Charset ISO-8859-1 (Western Europe).

Text to Voice

  
Text to Voice and Voice to Text convert

Voice to Text conversion:-
http://www.programmersheaven.com/mb/VBNET/416861/416861/voice-recognition-using-ms-visual-studio-2005-and-ms-speech-sdk/

reference from menubuttons to text parts in article on the same page

  

Hi, I'm searching now for hours but couldn't find it.Cry

In my menu i have several buttons which (by a <a href..) should go the a part of an article that is in the same form.

Menu button : What is a database should go to the page default.aspx and in there is an article published.
A part of this article is having a piece of text about "what is a database"

Menu button: how to make a query should go to this same article in the same page but then to the part that is have the piece about the query. The next could be an example of what i'm doing:

<ul>
    <li><a href="default.aspx ?????>what is a database</a></li>
    <li><a href="default.aspx ?????>what is a query</a></li>

Where my question marks are, there should be a connection to that particular piece of text.
In each article part there is an ID="text1" and the second part id="text2"

How shoudl i do that, Should i use a question mark.
Please give me some guidance how to structure the <li> statement or a pointer where I can read about it.

th

text editor

  

 I format lines in a .aspx file (source view) the way I can use them, and if I switch to design view or view in browser or debug, the many lines get reformatted to flow all onto one line.

I can't seem to find the correct setting to keep this from happening.

Any suggestions?

 


Unique text value in databse column

  

Hi Everyone!

I know this is probably a very basic question but how do I keep a column's text values unique in SQL server (ie for a unique username)?  The column is not an integer it's varchar(50), and it's not the primary key but I could make it the primary key if recommended.

The front end could handle it;  where the user would enter text, it's validated, then a query is done to see if that username is available.  If so, then user can decide to choose it and an insert is done, if not they pick a new username and process repeats.  With this approach, the responsibility of keeping the value unique solely rests on the front end, nothing on the database side.

Is this the correct way to handle this? 

Thank you!

 


Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend