Showing data in the format enterred (ASP JS Pages)

Hi All,
I'm building an ASP Javascipt website that stores the data in
an MS SQL database, where there is a requirement for a large amount
of text (like a news story) I'm using a text area field to enter
the the data, and a nvarchar field to store the data. The problem
that i have, is that when entering the data i can format it so that
you can differentiate between different paragraphs.
However when the data is returned in a webpage, it shows all
of the data in one paragraph, in otherwords instead of looking like
this question, the returned data looks like the data below, I would
be grateful if you could tell me how to format this so that the
data is displayed in the format entered -
Thanks
#Example#
Hi All, I'm building an ASP Javascipt website that stores the
data in an MS SQL database, where there is a requirement for a
large amount of text (like a news story) I'm using a text area
field to enter the the data, and a nvarchar field to store the
data. The problem that i have, is that when entering the data i can
format it so that you can differentiate between different
paragraphs. However when the data is returned in a webpage, it
shows all of the data in one paragraph, in otherwords instead of
looking like this question, the returned data looks like the data
below, I would be grateful if you could tell me how to format this
so that the data is displayed in the format entered -Thanks
#

<%=yourRS.Fields.Item("yourCol").Value.replace(/\n/g,"<br>")%>
"GTN1707" <[email protected]> wrote in
message
news:em3l2m$eqs$[email protected]..
> Hi All,
>
> I'm building an ASP Javascipt website that stores the
data in an MS SQL
> database, where there is a requirement for a large
amount of text (like a
> news
> story) I'm using a text area field to enter the the
data, and a nvarchar
> field
> to store the data. The problem that i have, is that when
entering the data
> i
> can format it so that you can differentiate between
different paragraphs.
>
> However when the data is returned in a webpage, it shows
all of the data
> in
> one paragraph, in otherwords instead of looking like
this question, the
> returned data looks like the data below, I would be
grateful if you could
> tell
> me how to format this so that the data is displayed in
the format
> entered -
>
> Thanks
>
> #Example#
>
> Hi All, I'm building an ASP Javascipt website that
stores the data in an
> MS
> SQL database, where there is a requirement for a large
amount of text
> (like a
> news story) I'm using a text area field to enter the the
data, and a
> nvarchar
> field to store the data. The problem that i have, is
that when entering
> the
> data i can format it so that you can differentiate
between different
> paragraphs. However when the data is returned in a
webpage, it shows all
> of the
> data in one paragraph, in otherwords instead of looking
like this
> question, the
> returned data looks like the data below, I would be
grateful if you could
> tell
> me how to format this so that the data is displayed in
the format entered
> -Thanks
>
> #
>

Similar Messages

  • F.81 reverse postings error 00 065: Enter date in the format __.__.____

    Hi When we run F.81 in some cases we get the error:
    00 065: Enter date in the format __.__.____
    In the header from the document I don't see difference with the working one's
    How we can solve this?

    Hi,
    Did you have an upgrade sometime back.
    During upgrade to 604, a field is activated, in the active screen variant. T-code OLMRLIST with following input:
    Transaction "****"
    Screen variant ******
    Program "*******"
    Screen "****"
    Then deactivating the "with contents" checkbox on "reference date"-field.....and problem was solved
    This what I've done when I encountered teh same problem sometime back.
    Good Luck,
    Raghu

  • To display "modified" by and "modifed date" and the end of every sharepoint page

    Hi there,
    I want to display
    "modified" by and "modifed date" and the end of every sharepoint page and I have as many as 2000 pages
    I have the code for it as below which I have placed in my master page
    <SharePointWebControls:DateTimeField FieldName="Modified" EnableViewState="true" Visible="true" runat="server" ControlMode="Display"/>by
    <SharePointWebControls:UserField FieldName="Modified By" Visible="true" runat="server" ControlMode="Display"/>
    The problem is I am not understanding under which div should I place it to be able to see it at the end of the page.
    Please suggest.

    Hi,
    According to your description, my understanding is that you want to insert the two fields at the end of the page by inserting the corresponding controls into the master
    page.
    The figure below will show how to insert code into master page:
    At the end of the page, it will be:
    Thanks,
    Dean Wang

  • How do i change the format of a single page in pages 09?

    How do i change the format of a single page in pages 09?
    I want a page to be landscape within a portrait-format doc.

    Question asked and answered many times !
    Yvan KOENIG (VALLAURIS, France) jeudi 19 janvier 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My Box account  is : http://www.box.com/s/00qnssoyeq2xvc22ra4k
    My iDisk is : http://public.me.com/koenigyvan
    Please :
    Search for questions similar to your own
    before submitting them to the community

  • Validating a text field that has date in the format mm/dd/yyyy

    How can I validate a text field such that it should be in the format mm/dd/yyyy and it should not be greater that a particular date.
    for example the date I enter should not be greater than 01/01/2007

    What you can do is use the SimpleDateFormat class to try and parse the text date into a Date object like this:
    SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yyyy");
    Date mydate = sdf.parse(textdate);if that fails than the date has the wrong format (you'll get a ParseException if I'm not mistaken).
    The next step is to create a Date for 1/1/2007 and then do a date compare between your two dates. You can create a date yourself using the Calendar class.

  • Discoverer Plus 10gR2 not show data when the script of view have package

    Hi my friends.
    I have a problem with discoverer plus, I don't know is a problem or I'm doing something wrong.
    I have a four views, the views containg in the SELECT stament and WHERE clause packages, example:
    SELECT d.price,
    d.total,
    d.min,
    d.mx,
    TO_CHAR (SYSDATE, 'q') quarter,
    d.fid,
    k_xdcd_qry.f_xdc_obt_price (d.prod, d.id) --> package
    k_xpxpd_qry.f_xpeds_salary_ca_u (
    d.prod,
    d.id) xp --> package
    FROM px_prices_proc c,
    xp_sla_max d,
    xmp_sla_puc b
    WHERE a.prod = b.prod
    AND a.id = b.id
    AND a.prod = k_xps_tools.f_obt_prod --> package
    When I used the views on discoverer plus for construct the report, when execute the query not show data.
    Appreciate it if you could help or tell me I'm doing wrong or does not support Discoverer Plus package execution.

    Hi Tux,
    This appears to be a grant issue. Apparently, you have granted execute with respect to this package to the EUL owner or the view would not have compiled. If you have not given EUL owner the grant option, I would recommend doing this as well.
    This appears to be an Oracle APPS EUL (tell me if I am wrong). If this is the case, it goes without saying that APPS will need to be granted the execute privilege.
    Also, by default, a stored package executes with the privileges of its owner. If your custom package was designed this way, are the objects which it references received the appropriate grant? I assume you tested this, but I am concerned that the line, a.prod = k_xps_tools.f_obt_prod, in the where clause could be resulting in the Null set being returned.
    Patrick

  • How to get pixel data in the format I want

    I'm writing a format plug-in and am having some difficulty getting the pixel data from photoshop in the format I want. From what I gather from the documentation in the SDK I need to specify the following to tell photoshop what format to deliver my pixels in:
    theRect
    loPlane
    hiPlane
    data
    colBytes
    rowBytes
    planeBytes
    planeMap
    I specify all of these appropriately for a 32 bit rgba8888 uncompresssed image and it works just fine... but ONLY if the image I load in the first place matches the format I am requesting. If the image I load is some other format, like a 256 color image with a palette, gFormatRecord->advanceState() just fails with a nebulous -30500 error code (formatBadParameters) instead of delivering pixel data.
    So my big question is this: Is Photoshop capable of doing the conversion and delivering the pixels to my format plug-in in my requested format? If it CAN do it, what might I be doing wrong? Please help! Thanks!!

    You noticed you can use the planeMap[] array to permute the channels. It's not so obvious that Photoshop should offer generalised bit depth/colour space/palette processing. It can be argued that's the role of the plugin itself: to mediate between Photoshop's native image data (which it does offer conveniently) and whatever arbitrary image format the user requires. At least, that's what most of
    my plugins do.
    Sure, there are a few obvious conversions, but you have to stop somewhere... Sooner or later you'll be implementing stuff on the Photoshop side that
    should be in a plugin. I don't have a big problem with the line drawn in the current API.

  • How to convert internal date to the format of user default setting

    In the BDC program, I need to convert the date, such as the sy-datum 20070427, to the format of user default that is defined in T-code SU01, such as YYYY-MM-DD or YYYY.MM.DD, and so on.
    The user format has 6 six kinds, and it is not good idea to write the code to process. So I look for the functions or CLASS method to process. I can use the function 'ITS_GET_USER_DEFAULTS' to get the user default setting of the Date format and Decimal notation.The problem is that I can not find the function or CLASS method to convert the internal date to user's date format.
    The function: CONVERT_DATE_TO_INTERNAL can not do it.
    The CLASS method: cl_abap_datfm=>conv_date_int_to_ext may be do it. But I do know how exchange the parameters, and fail to make it work finely.
    Is there the functions or CLASS method to process it?
    Thanks a lot!

    Hi John,
    create a veriable :
    data: v_date type char10.
    then after getting the date in YYYYMMDD format, write the following statement.
    WRITE SY-DATUM TO V_DATE.
    this might solve your problem.
    Regards,
    Hemant.

  • Regarding Date data in the format of WEEKLY , MONTHLY , QUARTERLY , YEARLY

    hai
    i have one Infoobject(ZDATE) which is created based on the Reference Characteristic(ocalday) and contains data in the YYYYMMDD format.
    I want same date data in weekly , monthly , quarterly and yearly.
    So for this one i need to created ZWEEK , ZMONTH, ZQUARTER and ZYEAR infoobjects by using Reference Characteristics 0calweek , 0calmonth , 0calquarter , 0calyear and i need to write the formula for these InfoObjects for converting & getting data from the ZDATE.
    So please give the formulas for each InfoObject.
    I will assign the points
    bye
    rizwan

    Hi ,
    Try this for month and year in Transfer structure .
    zyear = zdate+0(4).
    zmonth = zdate+4(2).
    For quarter since it will be depend of what kind of fiscal period you are using.. say for ex april - march.
    For Week... whether you want find it based on calender year or fiscal period.
    Regards
    Balaji

  • My custom fields now show dates. Can't enter names etc.

    I just migrated my Address Book from a Powerbook running Tiger into a MacBook Pro running Leopard. All went smoothly except my custom fields that I used to enter info into now have dates as the only entry option. I cannot find a way to change this and I don't use dates. Can someone tell me how to fix this? Thank you SO much!

    The Custom Fields are set up in Preferences/Template. I would add the new fields to Address Book before importing data with custom fields.

  • I have Chinese Characters showing up on the top of my Firefox page.

    The Chinese Characters have been showing up for a couple of months. I have tried using various Virus Detecting programs such as MalewareBites but they don't seem to fix the problem. These Chinese Characters show up on the initial Firefox Search Screen as well as my ANZ Bank and Ancestry.com.au webpages just to name a few. How can I get rid of them. These Chinese Characters don't appear on Google or Internet Explore. If this can't be fixed I may have to stop using Firefox and use Google or Internet Explorer. I have tried attaching an image of this problem but it appears I am unable to.

    Hi, this is a known problem with McAfee Site Adviser, so if you are using it, that could be the cause. [https://community.mcafee.com/thread/76071?tstart=0 Here's a link to their forum], and [http://service.mcafee.com/faqdocument.aspx?id=TS100162 here's instructions] for removing it - should you wish to.
    Hope that helps.

  • Add WHERE criterias in addition to what the user enters on search page

    Hi,
    This may be a simple problem, but I have not been able to solve it.....Is there a way for me to code another search criteria in addition to what the user enters?
    I'm trying to create a simple search page. Basically, user logs on, i get his acoount number and save it in a variable. Then whatever the user's search criterias are , I want to add "AND ACCOUNT = ???."
    I've tried:
    In the processRequest, retrieve his account number using a VO, stored account number in variavle x and then call a initQuery(x) for the VO to get only the rows that he should be able to see. Problem A: I get 'SQLStmtException' when I test the page by trying to do a Simple Search. So to fix that, in the VOImpl, I added these two calls -- setWhereClauseParams(null); setWhereClause(null); -- after the executeQuery(). After I did this, ran into Problem B: the user could search any record that wasn't associated with his account.
    I also tried to dynamically create the vo using createViewObjectFromQueryStmt("Select * from table where account = " + x) but was not successful. The page didn't render and I received a ClassCastException similar to this thread -- Re: How to Create OAViewObject programatically
    I'm new to OAF and would appreciate any pointers on how to implement this.
    Thanks,
    LL

    Hi,
    I assume that you haven't tried the following steps..if you have and still get an error, give us the SQL statement error that is coming up. If I misunderstood your requirement, could you elaborate.
    I assume that when the user logs in you get the account number automatically.
    You could define the VO to have the following where condition 'WHERE ACCOUNT=:1'.
    Then you set the account id from the user using setWhereClauseParams(0,accountid) and call executeQuery. This would limit the result to that user.
    This will work in addition to any other search fields that might have been used in the query.
    For e.g with just the account id the sql that will be fired is
    Select attribute1, attribute2....from Tablexxx where account = :1
    Any other user search criteria given in the page will result in a ssql query like the following
    select * from (Select attribute1, attribute2 ...from Tablexx where accoount = :1) where newattribute like `%xx`
    Hope this helps. Let us know if you still have issues.
    Thank you,
    Arun

  • Changing the formate provided by netui:pager tag

    Hi,
    i m using <netui:pager> tag. by default it provides the format:
    Prev Page A of B Next format.
    I want to change it to something like: Prev 1 2 3...Next ..
    how do i do this
    thanks
    akash

    Akash--
    Unfortunately, this feature isn't available with the 8.1 grid.
    Depending on what you're using the grid for, you might consider using a repeater and implementing
    your own pager whose format you've got more control over. See the
    weblogic.developer.interest.workshop newsgroup for more information.
    Apologies for the limitation...
    Eddie
    Akash wrote:
    Hi,
    i m using <netui:pager> tag. by default it provides the format:
    Prev Page A of B Next format.
    I want to change it to something like: Prev 1 2 3...Next ..
    how do i do this
    thanks
    akash

  • How to convert substring(date) as the format i need...

    Hi to everyone...
    actually i got a field (datetime) in this format: yyyy/mm/dd
    throught a function, i turned it in ex: 16/12/2012 (italian).
    the issue comes when i have to concat 2 dates as:
    min(date) || max (date)
    (range of the week)
    to do that, i have to use a CAST function as char (to allow me to use the Substring function)...
    but when i do that, format change automatically in dd/MMM...
    WHY??????
    10/DEC - 16/DEC
    (weeks n° 50)
    how can i turn the month DEC in DIC?or more simple in number as --> 10/12 - 16/12???
    at the beginning, i thought to the replace function, but i should to make a Replace nasted... or some kind of case when...
    have u a way more fast to figure out from this problem????
    many thanks guy!!!
    PS. OBIEE 11g
    Edited by: Barticchia on 17-dic-2012 5.52
    Edited by: Barticchia on 17-dic-2012 5.55
    Edited by: Barticchia on 17-dic-2012 5.57

    Can you try using Concat()?

  • How to convert LRAW data into the Format of JPEG TIF

    Hi All,
    I am getting data in LRAW from the table DRAO i want to change it into Binary for display,
    I want to display the content into JPEG TIF
    I am getting error when display that format is not suitable.
    Thanks,

    Hello Shilpi,
    you can use SCMS_XSTRING_TO_BINARY to convert the RAW data to Binary.
    BR, Saravanan

Maybe you are looking for

  • How can I access revisions of a document using OpenXML sdk library?

    How can I access revisions of a document using OpenXML sdk library? Thanks in advance. Regards, Akanksha.

  • Better Cooling for STOCK Intel i7 930

    The Intel i7 930 comes with cooling http://www.newegg.com/Product/Product.aspx?Item=N82E16819115225 which is probably OK But, even though I am NOT going to overclock, I am going to use PPro CS5 which is CPU intensive for AVCHD, so want better cooling

  • How to DEREF a nested Table of REFs?

    Can someone provide an example of how to deference, DEREF, a nested table of refs? (i.e. in order to access the attributes of the objects whose references appear in the nested table) I'm creating object views based on relational tables. One of my obj

  • How to fetch env. variable from OC4J instance

    At the launch of my application I want to fetch a variable value we have created on the iAS server at the application's OC4J instance level and under "Server Properties". I am unable to fetch anything using getHttpServletRequest() method. Does anyone

  • How to Remove Master CS6 on Mac?

    Hi, as tite stated I can't found a way to remove automatically the entire Master CS6. I can't found any "uninstaller" or "remove" app. Any help will be appreciated. Thanks.