What is a "Foreword" to a blog?
ASP web-programming
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What is interesting here?
• Duels
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Register!

QAIX > ASP web-programmingGo to page: « previous | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | next »

  Top users: 
  Recent blog posts: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Модератор:
Wednesday, 20 August 2008
RE: webparts and multiple updatepanels (ajax) Old Pedant 11:19:02
 This is the _ASP_ discussion group (ASP, the predecessor to ASP.NET...for old
fashioned people like me).

You should ask in an ASP.NET group, not here. I'd suggest the MSDN forums.

comment 1 answer | Add comment
Info on SOA, TOGAF, Virtualisation, SaaS etc. Anaz 10:12:14
 
Hi all,

I recently moved south to Bangalore and I am working for a large
software integrator. My project team is working on a project that
applies TOGAF to SOA. Are you able to point me to online and offline
resources/trainings­ that can help our team get up to speed with SOA
features and building blocks, the TOGAF architecture development
method, and how to use TOGAF to create SOAs. I am also in charge of
implementing virtualisation and/or SaaS in our company.


All the help that group members can provide in this regard is much
appreciated.

Thanks,
Anaz

comment 1 answer | Add comment
Get a month's days and merge with a table Nime 05:32:10
 I have a time table:

jobid | dayno | job
1 | 2 | Report finished tasks
2 | 4 | Check all forms
...

I want to create a days list of a month and merge it with my jobs table.
The result should be like this:

dayofmonth | jobid | dayno | job
1 | NULL | NULL | NULL
2 | 1 | 2 | Report finished tasks
3 | NULL | NULL | NULL
4 | 2 | 4 | Check all forms
5 | NULL | NULL | NULL
6 | NULL | NULL | NULL
...
30 | NULL | NULL | NULL

Is it possible to do that wihout a dummy days table of months?
I created a day table of month like below:

dayno
1
2
...
30
31





comment 5 answers | Add comment
IIS and Session Variables Eric 05:26:12
 What are the dangers of using session variables in IIS 6.0. My application
is servicing about 500 users each of which are authenticated separately and
have individual characteristics that are stored in cache and session
variables.

My concern is that memory could become an issue if concurrent user activity
is high. Is this a legitimate concern? Are their settings on the host server
that should be increased in order to prevent a memory issue?


comment 2 answer | Add comment
RE: #INCLUDE VIRTUAL Old Pedant 03:11:01
 

"Justin Doh" wrote:

What is difference between having ' / ' in front of the virtual directory
name or not having. For example:

/ means start at root of virtual directory try.
No slash means start from current directory.

They are only equivalent if the current directory *is* ths root directory.

Add comment
RE: Using the Web Version of the TreeView object Old Pedant 02:58:01
 This is the _ASP_ discussion group (you know, the predecessor to ASP.NET, for
all us old-fashioned fogeys), not the ASP.NET group.

You should try the ASP.NET groups for this. Probably, the MSDN forums for
ASP.NET are the best place to post.

Add comment
Tuesday, 19 August 2008
What to do when you can't retrieve content from a DB Thewinchester 10:36:33
 I've got something bugging me and as i'm not a hard core programmer
its got me beat - anyone who can point me in the right direction or
help me solve it would be my hero for at least the next five minutes.

Ok, here's the scenario - a corporate intranet, where selected pages
have parts of information that come from a database such as news
articles or an events calendar. Due to the geographic spread of the
organisation, the physical ASP pages are mirrored out to the remote
sites via DFS and the address for the intranet has a local alias which
accesses the copy from the local IIS server.

However, when the SQL server goes down or the sites lose their
internet connectivity, pages pulling dynamic content will return
errors. Ideally, when the page loads and it's unable to connect to the
DB, it would skip running the code, repeats, etc and instead return a
message in place such as "DB not available, try again later".

SQL connection strings for pages are available from both web.config
and an include file.

My questions:

1) How do I stop the SQL queries from running in the event that
communication with the SQL server is not possible.
2) How can the loss of connection be detected, so that the static
portions of the page display as normal and the dynamic data-driven
content displays an error message in place instead of trying to run
the code and causing SQL OLE DB provider errors?

And a bonus question:

3) What's the best way to mitigate for connection loss in this
environment? Should I be looking at caching the output of these parts
on a frequent basis and reading these in each time the page is loaded,
and what's the best method to do it.

Thanks in advance.
comment 2 answer | Add comment
how to download wmv file Gerald 02:48:42
 I want the user to be able to download WMV files. I get an error with the
following code.
Any suggestions appreciated

Gerald


MY CODE
<%
Response.ContentTyp­e = "application/xunkno­wn"
Response.AddHeader "content-dispositio­n","attachment;
filename=http://www­.facethewind.com/vid­eos/may29_01.mpg"
set adoStream = Server.CreateObject­("ADODB.Stream")
adoStream.Type = 1
vUrl = "URL=http://www.fac­ethewind.com/videos/­may29_01.mpg"
chunk = 2048
adoStream.Open vUrl, adModeRead
iSz = adoStream.Size
Response.AddHeader "Content-Length", iSz
For i = 1 To iSz\chunk
If Not Response.IsClientCo­nnected Then Exit For
Response.BinaryWrit­e adoStream.Read(chun­k)
Next
If iSz Mod chunk > 0 Then
If Response.IsClientCo­nnected Then
Response.BinaryWrit­e adoStream.Read(iSz Mod chunk)
End If
End If
Response.Flush
adoStream.Close
Set adoStream = Nothing
Response.End

%>

ERROR MESSAGE
Internet Explorer cannot download testdownload.asp from www.test.com
Internet Explorer was not able to open this Internet site. The requested
site is either unavailable or cannot be found.


comment 1 answer | Add comment
Pure ASP Upload - script unable to redirect for larger files Ll 01:11:32
 I'm working with 'pure ASP upload' script which is designed to
redirect to an alert/error message, should
a file larger than the set limit be attempted to be uploaded. The
problem is that, while smaller files do upload
successfully, the script does not catch the larger files and rather
than a specific error message in Firefox (and IE7), I just get the
following:
-------------------­-----------------
The connection was reset
The connection to the server was reset while the page was loading.
* The site could be temporarily unavailable or too busy. Try
again in a few
moments.
* If you are unable to load any pages, check your computer's
network
connection.
* If your computer or network is protected by a firewall or
proxy, make sure
that Firefox is permitted to access the Web.
-------------------­--------------
here's the script (below) for the database upload. Thanks for any
help or resources.
Kind Regards,
Louis

-------------------­--------------
'//////////////////­////////////////////­////////////////////­////////////////////­////////////////
'Simple upload to database.
'Suitable for small files - up to 20% of physical server memory
'This sample works with any connection - MDB (JetOLEDB, ODBC)
' MS SQL (MSDASQL/ODBC) etc.

'Server.ScriptTimeo­ut = 240
'Simple upload to database

Response.Write(Requ­est.QueryString("Cou­rseID"))
Dim Form: Set Form = New ASPForm %>
<!--#include virtual="/common/up­load/_upload.asp"-->­
<%

Server.ScriptTimeou­t = 1000
Form.SizeLimit = 1024*1024*10'10MB
MaxFileSize = Form.SizeLimit

'was the Form successfully received?
Const fsCompletted = 0

If Form.State = fsCompletted Then 'Completted

dim objConnection, RS
'Open connection to database
Set objConnection = GetConnection
Set RS = Server.CreateObject­("ADODB.Recordset")


'Open dynamic recordset, table Upload
RS.Open "AMS_ContentOvervie­wLecture", objConnection, 2, 2
RS.AddNew


'One-block assigning/AppendChu­nk is suitable for small files
'(<20% physical server memory). Plese see documentation to store
'10th megabytes or more in database.

'Add file from source field 'SourceFile' to table field 'Data'
'Store extra form info.
RS("CourseID") = Form("strCourseID")­
RS("WeekNum") = Form("strWeekNum")
RS("MainTopicNum") = Form("strMainTopicN­um")
'Add file from source field 'SourceFile' to table field 'Data'
RS("image_blob") = Form("SourceFile").­ByteArray
'Store technical informations
RS("ContentType") = Form("SourceFile").­ContentType
RS("filename") = Form("SourceFile").­FileName
strFileName=RS("fil­ename")

RS("filesize") = Form("SourceFile").­Length

strFolderPath = strFolderPath&strFi­leName
RS("FolderPath") = strFolderPath


RS.Update
RS.Close

objConnection.Close­


ElseIf Form.State > 10 then
Const fsSizeLimit = &HD
Select case Form.State
case fsSizeLimit: response.status = "413 Request Entity Too Large"
response.write "<script type=""text/javascr­ipt"">alert (""Source
form size (" & Form.TotalBytes & "B) exceeds form limit (" &
Form.SizeLimit & "B) (10MB) \n The file was NOT uploaded"")</script­>"
Response.End()
'Server.Transfer(Re­quest.ServerVariable­s("PATH_INFO") & "?" &
Request.ServerVaria­bles("Query_String")­)
case else response.write "<br><Font Color=red>Some form error.</
Font><br>"
end Select
End If
Add comment
Sunday, 17 August 2008
Calling an ASP.NET page from ASP? Toni 00:17:37
 Is there a recommended way for a .ASP page to call a .ASPX page? I've got a function in
an ASPX page that I need to call from an ASP page. The web site is quite busy, so I'd be
happy to find the most EFFICIENT way to do this?

Right now, I'm looking at using XMLHTTP to call the ASPX page. I'm confident that this
will work, and will return the value I want - but I'm curious if anyone feels that there
is a more efficient way to do this?

Thanks lots!!!

Toni


comment 4 answer | Add comment
Thursday, 14 August 2008
Two submit buttons within one <form> Mike P 17:10:16
 Can you have 2 submit buttons in one <form> element? I have a form with
a few dropdowns and textboxes that has a submit button to write the data
to a database, but I also need a submit button next to one of the
dropdowns to respond to whatever has been selected in the dropdown,
which will then populate one of the text boxes. How can I do this?


*** Sent via Developersdex http://www.develope­rsdex.com ***
comment 2 answer | Add comment
Wednesday, 13 August 2008
help IIS6 error 800a0046 permission denied wscript cmd.exe ftp Stevewa 08:36:27
 Microsoft VBScript runtime error '800a0046'

Permission denied
===================­====
Trying to find the solution is driving me crazy.

Using IIS6 on Server2003 SBS
Default website localhost
IE7 browser running under administrator xp account login

trying to use WScript.Shell to call cmd.exe to start ftp session from
classic asp webscript using vbscript

I've searched for solutions, here is what I've done so far... (sorry this is
long, trying to explain it all in first post for best advice)

IIS Default Website > Properties > Home Directory > Execute Permissions:
Scripts and Executables

IIS Default Website > Permissions : Full Control to IIS_WPG, IUSR_srvr,
IWAM_srvr


Used Windows Explorer to set security Access Control Lists ACL for above
user accounts to Full Control on:
C:\Windows\System32­\cmd.exe
C:\Windows\System32­\wscript.exe
C:\Windows\System32­\wshom.ocx
C:\Inetpub\wwwroot (the location of the webscript causing the error and the
ftp commands stored in a text file)

Restarted the website under IIS, restarted IIS


Still have the same error.

Here is the script portion:

Set oScript = Server.CreateObject­("WSCRIPT.SHELL")
Call oScript.Run("cmd.ex­e ftp.exe
-s:C:\inetpub\wwwro­ot\ftp_commands.txt"­),0,True)

Error occurs on the last line shown above.

I tried using other cmd.exe arguments, such as ver and dir, with same
permissions problem

I ran SysInternals FileMon, and here is the log snippet:

387 12:37:46 AM w3wp.exe:1900 QUERY INFORMATION
C:\WINDOWS\system32­\cmd.exe SUCCESS Attributes: A

so it appears to me that the permissions on cmd.exe are set correctly to
allow iusr_srvr to execute it...


Again, sorry this is so long, but I am really stumped and need some expert
advice on what to troubleshoot. thank you in advance.

Add comment
asp.net webservice Paul 05:06:49
 Hi, i need help accessing a webservice the return values of a
webservice created in vb.net. The webservice accepts a string
studentid and returns a class containg the info of the student. im am
able to send the parameter using
Server.CreateObject­("Msxml2.ServerXMLHT­TP"). How do i retrieve the
values back passed from server?

this is part of the web servce..

POST /ws/service.asmx HTTP/1.1
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://w­ww.w3.org/2001/XMLSc­hema-instance"
xmlns:xsd="http://w­ww.w3.org/2001/XMLSc­hema" xmlns:soap="http://­
schemas.xmlsoap.org­/soap/envelope/">
<soap:Body>
......
</mtdSendData>
</soap:Body>
</soap:Envelope>


HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://w­ww.w3.org/2001/XMLSc­hema-
instance"
....
<ConfirmResult>
<ReturnGrade>string­</ReturnGrade>
<ReturnPass>string<­/ReturnPass>
<ReturnSection>stri­ng</ReturnSection>
<ConfirmResult>
Add comment
listbox with 2 columns and a vertical bar - how to create it in HTML? Zalek 02:55:40
 Maybe someone can show me an example of a listbox with 2 columns and a
vertical bar created by HTML (JavaScript is OK).

Thanks,

Zalek
comment 2 answer | Add comment
Monday, 11 August 2008
Issue with retrieving large data over web using Stored Procedure Justin Doh 22:04:45
 Hello.
I moved my stored procedure and tables from SQL 2000 to SQL 2005.
I am having an issue to retrieve a large amount of data using previous
stored procedure (sp) over web (ASP page).
Other sp works fine, but one sp that retrieves large amount of data does not
even get executed over ASP page.

First,
I tried to increase the server timeout by doing this way.
<% server.ScriptTimeou­t = 40000 %>

Second,
I also included ConnectionTimeout and CommandTimeout to see if it would help
any such as..

With rsReport
.ConnectionString = ConnOLAP
.ConnectionTimeout = 4800
.CommandTimeout = 4800
.Load(strSQL)
End With

When I executed sp at SQL Server 2005 level, I got the data fine (after long
period of process), but when it gets executed over web (ASP), no data gets
retrieved.

Is there any suggestions to fix this problem?

I would appreciate for any help.

Thanks.
comment 1 answer | Add comment
Sunday, 10 August 2008
Word automation Joe Lalor 03:13:43
 I am trying to automatically open a word document in an asp application. It
works fine on the local host, but when I deploy on a W2003 server, the
winword process starts ( I can see it in the task manager on the server), but
the document doesn't open on the client. If I define the document as the
target of a hyperlink on my asp page, it opens fine when I click on it. I've
tried using :

System.Diagnostics.­Process.Start("c:\te­st.DOC")

(System.Diagnostics­.Process.Start("note­pad.exe") also doesn't work)

and

Batch.appWord = New Word.Application

Batch.docWord = Batch.appWord.Docum­ents.Open("c:\test.d­oc")

What am I doing wrong?

Thanks

comment 2 answer | Add comment
Saturday, 9 August 2008
HTML HREF link in ASP Requeth@Gmail.Com 21:07:25
 I'm trying to do the following, but when I have the code in for hte
HREF link I get a runtime error. How do I pass the link to the end
user?

<%
Dim a as string
Dim b as string
a = request.browser.bro­wser
b = "IE"
if a <> b then
response.write( "You are using " & a & " to view this page. Please
use
Internet Explorer.")
else


<a href="http://exampl­e.com/index.aspx">
<img src="./button.jpg" border="0">
</a>


end if
%>


comment 6 answers | Add comment
IIS7 ASP Response object incompatible with MSXML transformNodeToObje­ct Anthony Jones 21:03:51
 People,

Anyone else got an IIS7 server out there that they can test this little ASP
file:-

<%
Set xml = Server.CreateObject­("MSXML2.DOMDocument­.3.0")
xml.loadXML "<root />"

Set xsl = Server.CreateObject­("MSXML2.DOMDocument­.3.0")
xsl.loadXML "<xsl:stylesheet
xmlns:xsl=""http://­www.w3.org/1999/XSL/­Transform"" version=""1.0"">" & _
"<xsl:output method=""xml"" encoding=""UTF-8"" />" & _
"<xsl:template match=""root""><ok /></xsl:template>" & _
"</xsl:stylesheet>"­

Response.ContentTyp­e = "text/xml"
Response.CharSet = "UTF-8"
xml.documentElement­.transformNodeToObje­ct xsl, Response

%>

The above works fine on IIS6 and below. On IIS7 however it fails with
0x80004001 Not Implemented on the transformNodeToObje­ct.

It seems something has changed in either MSXML or ASP that breaks this code.

Varitions attempted:-

Use MSXML6: Still Fails
Set Response.CodePage = 65001: Still fails
Set encoding in output element to "Windows-1252": Still fails
Set method to html: Still fails

Pass a different object that implements IStream: Succeeds.

Has Response stop implementing IStream use DOMDocument.Save and pass in the
Response object. That succeeds also so Response still implements IStream.

I note the MSXML3.dll is SP10 on the 2008 server whereas my MSXML3.dll on
the 2003 server is SP9.

Can't find any info on changes though.

Does anyone have any light to shed or can confirm the problem?

--
Anthony Jones - MVP ASP/ASP.NET


comment 5 answers | Add comment
File not found error using #include virtual with UNC path Chris Peoples 01:05:42
 I have a virtual directory, lets say it exists at www.server-a.com/vi­rtual-dir/
virtual-dir points to another directory on another server using the
unc path: \\server-b\main-dir­

I have a file at www.server-a.com/vi­rtual-dir/some_scrip­t.asp, using
the following include:
<!--#include file="some_include.­asp"--->

Going to www.server-a.com/vi­rtual-dir/some_scrip­t.asp works perfectly
fine

HOWEVER

If I have another asp file at www.server-a.com/my­_script.asp, which
uses the following include:
<!--#include virtual="/virtual-d­ir/some_script.asp"-­-->
it produces this error:

Active Server Pages error 'ASP 0126'

Include file not found

/virtual-dir/some_s­cript.asp, line 2

The include file 'some_include.asp' was not found.

Anybody have any clues as to why it would say file not found, even
though the file clearly exists?
comment 5 answers | Add comment
Friday, 8 August 2008
Pages, applications, etc. (was: Re: transparent redirection) Neil Gould 21:00:58
 Anthony Jones wrote:
"Neil Gould" <neil@myplaceofwork­.com> wrote in message
[...]
In the example that I've been using, "members.asp" is active until
the user logs out, but dozens of ASP scripts can execute during that
session, even if only a few HTML pages are rendered. It's confusing
and not very useful to think that there is only one "page" called
"members.asp", though that seems to be the way that some are using
the term. I could see "members.asp" as a "meta-script", and have
instead called it an "application", as that is what it would be in
other programming contexts. ;-)­
What do you by ' "members.asp" is active" ??
That it is awaiting user action.

Once a request is complete the script context is reset. Apart from
the values stored in the application and session objects there is no
script that remains 'active'.
Since a While/Wend or some other on-going background activity of a script
appears to provide exceptions to the above statement, your usage seems to be
a distinction without a difference. Could you clarify?

Are you saying that multiple requests from the same client to
members.asp can result in various different responses?
Yes.

Would this
variation be a result of FORM posts or various values on the
querystring?
Could be. From my perspective, "members.asp" is in a sense a form (though
not an HTML FORM), as it presents options to the user that determine which
ASP files or VB/JScript Functions will be run.

--
Neil


comment 4 answer | Add comment

Add new topic:

How:  Register )
 
Login:   Password:   
Comments by: Premoderation:
Topic:
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или законы РФ. Ваш ip-адрес записывается.


QAIX > ASP web-programmingGo to page: « previous | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | next »

see also:
[feature] comment.module patch (Drupal…
Bug#242572: drupal: Tries to load…
[task] let admins mass delete nodes
pass tests:
see also:
china sell wholesale versace t shirt…
wholesale prada boot just cavalli t…
wholesale versace t shirt akademisk…

  Copyright © 2001—2010 QAIX
Идея: Монашёв Михаил.
Авторами текстов, изображений и видео, размещённых на этой странице, являются пользователи сайта.
See Help and FAQ in the community support.qaix.com.
Write in the community about the bugs you have noticedbugs.qaix.com.
Write your offers and comments in the communities suggest.qaix.com.
Information for parents.
Пишите нам на .
If you would like to report an abuse of our service, such as a spam message, please .
Если Вы хотите пожаловаться на содержимое этой страницы, пожалуйста .