ShowModalDialog Problem When String Too Long - Any Alternatives ?

I am displaying a modal dialog in JScript using window.showModalDialog
passing a long string as URL - i.e. it contains variables values just
like a Get request. Problem is that string is now tool long and
showModalDialog fails. I'm aware of the DialogArguments and passing an
object to receiver but this is no good for me as the receiver needs to
access the long string in server side code and so would not know
anything about the dialogArguments class. Can anyone suggest a way for
me to show the dialog as modal and at same time get the long string into
the dialog and have the string accessable from both server side code and
client side within the dialog recever file ?

View Replies


ADVERTISEMENT

Splitting A VERY Long String

I have a very long string statement that needs spltting down into smaller sections and segments. I know how to use the split() function, and it splits the string down into smaller sections, however when I try and split one of these smaller sections into segments it throws an error out. Firstly is it possible to keep splitting the same string again and again to break it down? If not does anybody know how I would go about breaking down the string?

View Replies View Related

Pass Long String Variable

Is there any way to pass session variables between two websites ( diff domains) ?

I've two websites and I want to integrate them.

I used to use the querystring but there is a limit to length of the querystring.

I've tried ASP-TEAR but I doubt it can work.

Is there any other way to pass any variable to another website.

View Replies View Related

Dfisplaying Long String Without Massing Up Formatting

i am stuck while trying to display a long string, its not just one string though, itsa field from a database that has a problem solution in it, most data is just how to stuff like:

"do this, install this and then restart and install the new stuff... etc."

but some of the solutions have long links to (for example) servers and there is then maybe 150 characters all in a line and no breaks to make the line break - this makes my table (390 pixels wide) get streched to hell on one side.

i have tried going through the code, counting the characters and then taking a "left" of code depending on how many groups of 50 there are but that breaks words in half and thats looks nearly as bad.

View Replies View Related

How To Pass A Long Parameter String To A ASP Page Via Post Parameters

I have the following test.asp page which needs one parameter querystr
but my querystr is a very long string value. When I send a long value
the query string is getting truncated after some characters.

Can you please kindly share the code segment to workaround how to pass
such a long string value to a asp page. This is how I invoke the test
page:

http://localhost/?querystr=select ............ from xxxxx

'test.asp
<html>
<body>

<%

response.write("Hello World!")
w=request.querystring("querystr")

response.write "<td><p></td>" & w
%>

</body>
</html>

but part of my query string never gets passed to the asp page appears
asp as a limitation on max string length can you please provide me a
workaround how I can overcome and pass the right string to asp.

View Replies View Related

Alternatives To IIS

I've gone through similar threads, but I'm thinking maybe the process of time has reaped a solution. Basically, is there anything besides IIS that will run on windows 2000 desktop.? Pws wont work, webmatrix is for asp.net (not classic asps). So does anyone have a solution? I can't use IIS.

View Replies View Related

Session Alternatives?

I was wondering if anyone had a good alternative to Session variables.

Background: Basically, I'm coding a personals site for someone, and obviously, there's member and non-member areas. For development, I'm doing the member tracking with a Session variable, but was wondering if there were alternatives for the non-cookie user.

The only other idea I came up with is in my IsLoggedIn function (the one that looks for a Session object and redirects to the login page if it doesn't exist or times out), was to log the user's IP address/timestamp in a DB table, then do a read comparison on their IP address, compare the timestamp to Now() and update the log table with the current time. The problem is, that's one extra search, read, and write for every page the member visits, and I'm concerned about this extra overhead slowing the site down.

I'm also hesitant to create a GUID and pass it in the URL string as these can be faked, plus get messy with respect to pass-through data, etc.

SSL is also out of the question, as the owner doesn't want to buy a certificate, plus this can slow a site down worse than the IP method illustrated above. The site is hosted on Win2K Advanced Server and SQL Server 7 backend.

View Replies View Related

&nbsp Alternatives

Are there alternaives to using the &nbsp tag for spacing out text within the same line?

View Replies View Related

Sessions Unreliable - Alternatives?

I have shared hosting at GoDaddy. Every 12 hours they reset IIS in my application pool. This means that anyone logged in when this happens has to log in again. Also, if they submit information after the restart happens they lose all the information.

Are there any alternatives to sessions that won't be affected in case of an IIS reboot? Code:

View Replies View Related

Alternatives - Can't Use Dynamic Includes

I'm well aware that you can't use dynamic includes (eg: <!--# include file="path/<%=strPath %>"-->) due to process order in ASP, but I really need to find a work-around.

I can't use TextStream because the files will need to execute.

Server.Execute causes a "Type Mismatch" in the script it executes that functions fine under normal circumstances so I don't know why - though admittedly I'd rather not use this method (it's well documented to be not a very good idea anyway!) so I haven't tried too hard to fix that issue...

All I want to do is say "If a file exists, execute it - if not, do nothing!" Here's my (broken) code - this represents what I would like to achieve though obviously this example will never work because of the required dynamic include. Anyone got any genious ideas to achieve the same results as this script would if it worked? Code:

View Replies View Related

Too Long To Insert

I want to insert a new row in my db but it says that the "identifier is too long"...

ORA-00972: identifier is too long

to be more precised... I googled it but I can't seem to pinpoint how to work around this

View Replies View Related

Long Emails

When sending long emails a mysterious space-character is added after a
certain number of characters. Any idea why that happens?
I am using a Dundas Mailer control (if that matters) called from an asp
script.

View Replies View Related

Long Posts

I have a database-driven site and it is possible for users to leave comments, which get written to the database. How do I make it so large comments can be added?I am getting this error message:

Microsoft JET Database Engine error'80040e21'

The field is too small to accept the amount of data you attempted to add. Try inserting or pasting less data.

/wall2.asp, line 37

I have set the default field type in the database to be 'memo'and set the default text field size to 255 (the maximum allowed)

View Replies View Related

Long Numbers

How do i make this number shorter?like 65.3846153846154%.how to make it like.let's say 65.39?

View Replies View Related

Long URLs

Is anyone aware of any sort of asp coding to deal with long URLs? I have a few asp that pull URLs from fields within a MS db, which then display on a width-limited table. Is there any way to wrap these long URLs such that my table doesn't get widened? e.g. wrapping at "/" or something similar?

View Replies View Related

Too Long Mailto: Link?

ok I have a page that displays all of the 3000+ records of people, phone numbers, and email addresses. on this page I have added a link that combines all of the e-mail addresses into one mailto: link so that we can mass notify these people of upcoming projects. the problem is that i think the link is too big for the browser to handle. the view source shows that everything is there but i cannot click the link. i have tried both IE and FireFox to no avail. The code is below just in case i have a typo or something...

sql = "Select * from people WHERE (IsNull(m_idstatus) OR m_idstatus <> 'id2') AND (m_email Like '%@%')"
...

y = 0
do while not rs.eof
If (rs("m_email") = "" OR IsNull(rs("m_email"))) Then
e_email = e_email
Else
e_email = e_email & rs("m_first_name") & "&nbsp;" & rs("m_last_name") & "(" & rs("m_email") & "); "
y = y + 1
End If
rs.movenext
loop
...

<a href="mailto:?bcc=<%= e_email %>">E-MAIL ALL</a>&nbsp;&nbsp;|&nbsp;&nbsp;

I have also tried changing the format of the link by adding test@test.com before the ?bcc= but get the same results on both browsers. Like I said in the beginning I assume that the link is just too big for the browser; does anyone have any ideas besides making a mail form in the page? I would prefer to stick with a mailto link so that we can keep internal Outlook features.

View Replies View Related

Command Text Too Long?

I'm currently working on an ASP site that connects to a MySQL database I've built a form that allows users to insert press releases. They add the date and title and then the text of the release.

The problem that I'm having is that every so often when the user submits the form they get an error message saying "Command text too long" The record isn't added to the database after this

I use a longtext field for holding the main text of the press release Code:

View Replies View Related

ServerXMLHTTP Uses 100% CPU For A Long Time

I'm trying to use ServerXMLHTTP on an ASP (not ASP.NET) page to retrieve
large binary data from a remote server. When the request is large (more than
a few megabytes), the ServerXMLHTTP page jumps to nearly 100% CPU utilization
for an unusually long time. The remote server needs a few seconds to prepare
the request, during which time the CPU seems OK. It seems that as soon as
the data is ready to retrieve, the CPU usage jumps and remains that way until
the data has all been copied to the requesting server. That takes way too
long - about 35 seconds when requesting a 12 MB file over a gigabit Ethernet.

I use ServerXMLHTTP hundreds of thousands of times daily on this same system
on the same network, with absolutely no problem - but for smaller requests.
There's something about the size of the request that makes it blow up.

I saw some reports of older systems with this problem (Windows 2000), but
I'm running IIS 6 on Windows Server 2003, SP1.

View Replies View Related

Long Response Times

I am trying to simply print to screen all the data in a colum from a .mdb file. Later I will do more advanced things but for now this would be good.

What I have WORKS, but takes a LONG time to retrieve the first record, if I tell it to retrieve more than one row it will time out. I was hoping to connect to the file directly and not have to create an ODBC connection. The code seems simple enough and the server is no dud (p4 2.4ghz) so do I need to setup a DSN and connect to it that way? Code:

View Replies View Related

Message For Long Queries

give me a sample code to display a "please wait"
message while retrieving results from the database in ASP.

View Replies View Related

Long Select Statement

I have a sql statement that contains many fields. I am having problems with the way I am writing the sql statement. Here is an example:Code:

filePath = server.MapPath("directory/dbName.mdb")
Set conn = Sever.CreateObject("ADPDB./Connection")
conn.Provider = "Microsoft.Jet.OLEDB.4.0"
conn.Open filePath

mysql = "SELECT field1,
field2,
field3,

I get an error at the comma on the line "SELECT field1,
What is the proper syntax for line continuation?

View Replies View Related

My Query Is To Long To Fit On One Line

I am trying to return a recordset of data. The problem is my SQL query does not fit on 1 row. What do I need to do to start a new row. I tested the asp when I trimmed my query down to 1 row and it worked.

View Replies View Related

Long Running Process

I'm developing an intranet application using W2k server and IE5.5 - 6.x
clients. I've got one particular function that calls a stored procedure to
update a number of records, depending on user input. The problem we have
run into is that this procedure can take a few minutes to complete in
certain circumstances, and of course IIS times out.

I've been doing some searching for a solution, but most of the answers I've
found relate to showing a 'Please wait' message while processing the page,
which doesn't help in this situation. The others I've found relate to using
MSMQ, which would probably help, but leads to a load of testing issues that
I'm not prepared to deal with at the moment.

Are there any other 'common' ways to handle this at the ASP level?

View Replies View Related

Long Text In Variable

I am using some code like the one below to work with a text file, modifying
its lines one by one:

Set objFS = Server.CreateObject("Scripting.FileSystemObject")

Set objF = objFS.OpenTextFile("MyText.txt", 1)

Do While objF.Line <= 26 ' --- I am reading only certain lines

'--- get entire line
strTemp = objF.ReadLine
'--- do some other stuff here

Code:

View Replies View Related

Divide Long Web Page

I want to divide long HTML page (paging) into smaller pages.I know how to do it if I use recordset but in my project, I dont need to read from a Database, I'm reading a file system wich is a folder and list all files insid it.

View Replies View Related

Long Text Insert

I was performing some testing on my forms and in the comments section of the form, I copied and pasted a large amount of text. All of the text appeared on my confirmation page that I have that shows all of the submitted information. Once I hit submit on the confirm page so that the INSERT will occur, only about 1/4 of the text that was entered shows up on my "Submission Confirmation" page.

The text insert appears in the database, but only the 1/4 of the text that was entered. I'm using the "text" datatype and the length is set to 16. Can anyone think of why only a portion of my text is being displayed and then inserted into the table?

View Replies View Related

Long Hyperlink Into Database

I'm trying to put a long hyperlink into my database table which works fine. I used longtext as the field type. My records insert just fine. But when I try to retrieve the records on the asp page all the other data shows up but the hyperlink data. Here's an example of my link.

INSERT INTO products
(manufaturer, prod_category, prod_link)
VALUES ('Xtra','Irons','<a href="http://www.kqzyfj.com/click-1692223-10304326?url=http%3A%2F%2Fwww.golfsmith.com%2Fppage.php%3Fstynum%3DCL1480%26tcode%3Dcj" target="_top" >CG1 Irons w/ Steel - 3-PW Iron Set<br>$799.99</a><img src="http://www.afcyhf.com/image-1692223-10304326" height="1" width="1" border="0">');

What am I doing wrong.

View Replies View Related

Cutting Long Numbers

anyone got an idea on how to cut the output of a number? coz i made a computation and the output was this

81.5740740740741

and i want to make it 81.57

anyone got an idea?

View Replies View Related

Partitioning Long Numbers

I'd like to get a number, and every third character from the right add a comma (aka 10000 becomes 10,000). How can this be done in ASP please?

View Replies View Related

Displaying Long Raw Field

I have an Oracle database which has a field LONG RAW type to store text files. I'm trying to display the output of this field in ASP but I'm having problems. I've gone through many different approaches but they either do nothing or do the following;

I've tried doing response.binarywrite(rs("data_object")) and I get
somethinglike below ....

View Replies View Related

Content Page Too Long

If the content of a db field is too long, (like when the web page ends up being 3 A4 page lengths due to alot of content in the db field), is there a way of say, creating a 'next page', thus splitting the data content over 2 pages?

View Replies View Related

Code Taking Long To Run

I have a recordset that has 12 records in it, and about 25 columns. Unfortunately, I have to write the records out as columns in an ASP page, and the columns as rows. So, what I have done is a Do Until myRS.EOF and write all the records in <td></td> tags. I then do a myRS.MoveFirst before going to the next line.

I have one page that is identical in code, just using a different recordset, that is taking about 7 seconds to write per line. The other 2 pages are taking less than a second per line. Has anyone seen anything like this before? Anyone have any suggestions? Below is an example of a loop that is taking so long to run.

do until myRS.EO

Response.Write("<td bgcolor=#eeeeee>" & myRS("OutstandingInCompliance") & "</td>" & vbcrlf
iTotal = iTotal + cdbl(myRS("OutstandingInCompliance")
myRS.MoveNex
loo

View Replies View Related

Long Forms Repaint

Whenever an ASP.NET server-side control is processed, the client form is repainted from the top forcing users to scroll back to where they were on long forms. How can I work around this issue?

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved