|
With ASPUpload, the .Form collection does not get populated until AFTER the .Save method has been called. So trying to reference it before will not return any results.
|
|
|
|
|
Correct. Considering the error message that the OP is getting, though, it appears that he either is not using ASPUpload, or has already called the Save method.
With ASPUpload, the data is available through Request.Form before the Save method is called. Of course, if the data is read using Request.Form, the Save method can't be used after that.
Some upload components handle the data automatically when they are created, other, like ASPUpload, handles the data upon a method call.
---
b { font-weight: normal; }
|
|
|
|
|
I would agree, but accoring to the previously posted script
(excerpt:
response.buffer = true 'in my tests, this seems to increase speed a bit
set oUpload = server.createobject("ASPUpLoad.clsUpload")
)
It looks like he is using ASPUpload. But noticing the comment right before
"--- this script below i downloaded from google site -------", I might have been assuming too much.
|
|
|
|
|
Current versions (3.x) of the AspUpload[^] component uses the progid "Persits.Upload". Perhaps he is using an old version (1.x?) of AspUpload?
---
b { font-weight: normal; }
|
|
|
|
|
Hello all,
I'm using a vb.net function to write some javascript to a literal control. That part works just fine. However, the javascript I'm writing is supposed to write the return value of a confirmation dialogue to a hidden input to reference later. I can reference the hidden input fine, but it always contains the default value - it seems that the javascript never writes to it.
Here's my hidden field and literal control:
<script type="text/javascript">
<asp:Literal id="ltAlert" runat="server" EnableViewState="false" />
</script>
<input id="hdnbox" type="hidden" value="hello!" runat="server" />
Here's my vb function:
Function GetConfirmation(ByVal strVerb As String) As Sring
ltAlert.Text = "document.getElementById('hdnbox').value = window.confirm('Are you sure you want to " & strVerb & " these requests?');"
Return hdnbox.Value.ToString()
End Function
It always returns "hello!", instead of the true or false that one would expect. It has to be something really tiny and stupid that I'm looking right over. Note I've also tried variations along the lines of
var answer = window.confirm("blah");
document.getElementById('hdnbox') = answer;
to no avail. Also worthy of note it seems to be returning the value before the user has had the chance to interact with the dialogue.
Any ideas? Thanks in advance!
-------------------
abort, retry, fail?
|
|
|
|
|
Both of these seem to have errors, have you tried debugging through them:
Or try these:
document.getElementById('hdnbox').value = window.confirm('Are you sure you want to " & strVerb & " these requests?');"
or
var answer = window.confirm("blah");
document.getElementById('hdnbox').value = answer;
-- modified at 4:07 Tuesday 25th July, 2006
|
|
|
|
|
Do you expect the VB function to return anything other than the string "hello!"? That will never happen.
It's not something really tiny you have overlooked. You are apparently confused on the whole concept of how a web page is created on the server and handled in the browser.
First the source code for the page is created on the server. At this point the javascript code is just treated as text by the server. When the page is complete, the server code ends, and the pave is sent to the browser. The browser will then show the page and run the javascript.
Consider these two rules:
1. The server side code and the client side code never exist in the same place.
2. The server side code and the client side code never exist at the same time.
If you want to send anything back to the server, you have to send it in a new request, so that the server code is started again.
---
b { font-weight: normal; }
|
|
|
|
|
I am familiar with how to build and use web services using .NET. I recently saw some information on MSDN on how to get Data binding information from WSDL. Here is the URL for the article:
http://msdn.microsoft.com/vstudio/tour/vs2005_guided_tour/VS2005pro/Smart_Client/DisplayWebServiceData.htm
The website mentioned in Step 4 is not working, so I am unable to investigate this further. I have tried these steps on a web service that I created, and I cannot get the Data binding information in the Data Source in VS 2005.
Can someone explain how to get the binding information from the WSDL?
Thank you,
Tom
|
|
|
|
|
Hi
i am developing a website using JSP. I want to get system date. Can please anyone tell me how can i do this? Can i get date in saperate components like day, month and year.
Thanks
We Believe in Excellence
www.aqueelmirza.cjb.net
|
|
|
|
|
How to archieve in implemented toolbar in mozilla ?
I am willing to archive the page by implementing on customised toolbar.
Does XUL will solve the purpose or I have to use XPCOM ?
The major problem is to get top frame ,rest things can be done.
So can anyone tell me how to get handle of top frame.
|| ART OF LIVING ||
|
|
|
|
|
Hi All,
I tried to create an html template in TYPO3 and I can't import template auto_parser from Extension Manager . I am not seeing any results when I am importing auto_parser. Can anyone help me to create a template from html using TYPO3 Version 4.
Please Help me
Thanks in Advance
George K Jolly
|
|
|
|
|
i made a simple an almost autocomplete
the aim is almost like an auto complete (typing in tin no text box)
when tin exists in db
it automatically loads the name of establishment in text box
of establishment and make it readonly else allow input.
in add mode i don't have a problem since the tin no textbox
initially has no value but when i am in
edit mode where i retrieved from the db the tin no to
tin no text box. what happens is when i type like another
existing tin no it works but when i use last tin no that was
retrieved from db that's when the error occurs
the text box of establishment returns the html codes of
the postback by ajax
the error returns potencial malicious blah blah
since it detects it as a potencial malicious blah blah
my alternative solution was if the postback value has more than
50 chars since establishment text box has maximum of 50 chars
i use a session variable instead
anybody has a solution to make it work on edit mode?
(when tin no text box is populated first at page load)
u may refer to this link which i posted at
http://www.codeproject.com/script/comments/forums.asp?forumid=1640&fr=26&select=1581253#xx1581253xx[^]
thx
-- modified at 11:05 Saturday 22nd July, 2006
|
|
|
|
|
I don't quite understand what your whole problem is.
Perhaps if you write a more concise question you can get a better answer.
Regarding the "potential malicious" problem, ASP.Net by default checks that any user input does not contain HTML or scripts that may be dangerous.
To turn this off, you need to set ValidateRequest="false" on the <% Page %> attribute in your aspx file.
Hopefully this solves your problem.
"Democracy is two wolves and a sheep voting on what to have for dinner" - Ross
Edbert
Sydney, Australia
|
|
|
|
|
there is no question regarding the "potential malicious" problem
there is no question on the real use of the true autocomplete
which comprises itself (one textbox)
i already implemented to others pages
except for this particular business rule
when implement like an autocomplete
where i nid to also display its corresponding description
to another text box control or label control
the problem is when i populated the first textbox (where u type) in
page load (like edit mode) the potential blah blah occurs at text box
of description, if label control its javascript error
in add mode or when textbox initially is blank its ok
the text box of the description is loaded
is this really the case with ajax, that i can't implement it
coz populating the value initially already a potential malicious etc.
currently, im just using the regular autopostback (without ajax)
wanted to use ajax, so i can minimize autopostback
what the autopostback does is when u input the first and the postback
fires, i populate the description
i also have a dialog lookup
the code was actually based on part 1 only "Ajax was here - part 1:
client side framework", article by Bill Pierce
already implemented his part3 which only required autocomplete
sory im new in ajax,
thx
-- modified at 15:24 Monday 24th July, 2006
|
|
|
|
|
Heyho Guys,
I'm looking for some good Tutorials for Ajax and ASP. Till now I programmed everything web-based in PHP but somehow ASP and Ajax seem to be pretty interesting. So I want to learn them. Do you know any good tutorials ?
|
|
|
|
|
Heyho,
i am for my self not the Webdevelopment expert, but if you want to learn Asp.net it was good learning a Microsoft .Net language, like C# or VB.Net. You should download the Expressversion from the Visual Studio (look here for it http://asp.net/downloads/essential.aspx?tabid=62 ). On ASP.Net are also some tutorials, but you should also google a littel bit.
Iam not sure about Ayax, i think it is only a Javascript think... You Sending HTML requests per javascript back to the server, sure you need server software who can allow to hande it. If you want only Ajax you can also do it with PHP, look here : http://developer.mozilla.org/de/docs/AJAX:Getting_Started
For a general overwiev:
http://en.wikipedia.org/wiki/Ajax_%28programming%29
|
|
|
|
|
Hello!
I'm trying to use the Autocomplete for the AjaxPro.dll from:
http://munich.schwarz-interactive.de/autocomplete.aspx
I keep getting "Object Expected" in my javascript on my .js include file along with that in the HTML body.
I've added this to my web.config file:
<httpHandlers>
<add verb="POST,GET" path="ajaxpro/*.ashx" type="AjaxPro.AjaxHandlerFactory, AjaxPro"/>
</httpHandlers>
</system.web>
**********
**********
My code behind is trying to return names from my table (for starters) so I can see the names with the autosuggest:
<AjaxPro.AjaxMethod()> _
Public Function SearchAdvanced(ByVal orderNumber As String, ByVal customerID As Integer, ByVal count As Integer) As DataTable
Dim ds As DataSet = New DataSet
Dim sCon1 As New SqlConnection
sCon1.ConnectionString = Session("DBDDL")
Dim cmd As New SqlCommand("SELECT Authority FROM Signature_Authority_Names WHERE Authority like @CustomerID") '+
'"AND OrderNumber LIKE @OrderNumber " +
'"ORDER BY OrderNumber, PartNumber, JobNumber", conn)
cmd.Parameters.Add("@CustomerID", customerID)
'cmd.Parameters.Add("@OrderNumber", orderNumber + "%")
Try
sCon1.Open()
Try
Dim da As SqlDataAdapter = New SqlDataAdapter(cmd)
da.Fill(ds)
Finally
sCon1.Close()
End Try
Catch
Return Nothing
End Try
'Return ds.Tables
Return ds.Tables(0)
End Function
**********
**********
My HTML is:
<body>
<script type="text/javascript" src="scripts/autocomplete.js"></script>
<script type="text/javascript">
//Code for Autocomplete
function init() {
var x = new MS.Web.AutoCompleteDataTable("searchCustomerID", 10);
x.getDisplay = function(item) {
return (item != null ? item.Authority : "");
}
x.getValue = function(item) {
return (item != null ? item.Authority.toString().trimRight() : "");
}
x.getData = function() {
Namespace.ClassName.AjaxMethod(this.ele.value, this.count, this.callback.bind(this));
}
}
addEvent(window, "load", init); //error received on this line
//End Code for Autocomplete
</script>
<form id="Form1" method="post" runat="server">
<TABLE id="Table1">
<TR>
<TD><INPUT id="searchCustomerID" type="text" size="62">
</TD>
</TR>
</TABLE>
</form>
....I get an error on the line for addEvent(window, "load", init); saying "Object Expected"
**********
**********
My first error, "object expected" is received in this .js file on line one:
addNamespace("MS.Web.AutoComplete");
MS.Web.AutoComplete = Class.create();
Object.extend(MS.Web.AutoComplete.prototype, {
timer: null,
count: 10,
pos: -1,
waitAfterInput: 230,
minChars: 0,
children: null,
I'm using IE6 Sp2
|
|
|
|
|
A pretty basic question.
Well I am running XP home and I think its set up with a Localhost.
How do I find the physical directories it goes to ?
Like I just installed oracle express and before that ms sql.
the web browser address look like this
http://127.0.0.1:8080/apex/f?p=4500:1000:4433621472321981:::::
well thats what its doing when I am going through admin duties with Oracle.
thx for your patience !
|
|
|
|
|
XP Home won't run IIS (not without some major registry hacks, etc) so I'm guessing Oracle has it's own server. I would check Oracle's documentation.
|
|
|
|
|
It does - installs Apache on port 8080 - hence the URL..
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
Hi, I have a flash graphic in my header on home page, but when the page loads you get that thick border around it when the mouse hovers over it, and a message saying "Click to activate and use this control". How do i prevent that?
Thanx
Regards,
Tintin
|
|
|
|
|
|
Hi, I have a problem when redirecting through links. As soon as a page in say directory products is opened ie. /products/p1.html, the menu links on the header don't work right! Lets say you click home (index.html) then it tries to redirect you to /products/index.html instead of /index.html.
Is there a type of absolute path syntax?
Please help.
Regards,
Tintin
|
|
|
|
|
What you need here is "../index.html", which will take you up one directory level. If you are using response.redirect in asp.net on the server side, then you can use ~/index.html and ~/products/p1.html to build paths from the root.
|
|
|
|
|
Hi
I'm Making a Web Application in Asp.Net 1.1
My Designer has given me HTML for the Admin part.He has used "style="removed: url(images/tab2.gif)" tag for background image.but what i found that Asp.net 1.1 does not support style.
it eliminate this automatically and background images got disappear.
is there any other alternative for it or any appropriate solution for this problem.thanx
|
|
|
|