|
I mean about using .value in javascript. I think you've tried it before in other version. Do you have some idea about how it will be coded?
Can you give me a sample code for that?
hifiger2004
|
|
|
|
|
Well, the code below will popup an alert with the full path of the file selected - this is on a simple HTML file input box. For a server control (FileUpload) you'll need to add the onchange property in your code behind using the .Attributes.Add method of the control -eg, if your FileUpload control has id="FileUpload1 then you'd use:
FileUpload1.Attributes.Add("onchange", "checkPdf(this)")
should work....
Fred
<head >
<title></title>
<script language="javascript" type="text/javascript">
<!--
function checkPdf(what){
alert(what.value);
}
// -->
</script>
</head>
<body>
<form id="form1" name="form1" >
<div>
<input id="File1" type="file" onchange="checkPdf(this)" /></div>
</form>
</body>
</html>
|
|
|
|
|
|
hifiger2004 wrote: directory path by using the FileUpload control
But it is upto the web browser to send. We don't need that anyway. We just need the multipart content and the filename!
|
|
|
|
|
I know that Silverlight can access a web service, but what about a WCF service?
I'm currently evaluating Silverlight to see if it might be a good UI fit for our application. We have a WCF service running on a remote server that I need to access. Right now, we have a Windows Forms client that works, but the WCF binding information is specified in an app.config file. Is it possible to include a web.config file with this same information to be able to access the WCF service?
Thanks,
Scott.
|
|
|
|
|
Moving from C++ to JavaScript is a slightly painful experience. One thing that I dearly miss is the compile-time checking for typos...
JavaScript
We are creating a fairly great number of HTML/JavaScript-pages in Visual Studio. Now what tools can you good people recommend that will check for of typos? I looked at jslint but that only checks a single file at at time. We need something more advanced. Will maybe Orcas (next VS) be of help?
CSS
We have a lot of style information embedded from the pages we created in VS. Is there some kind of tool that would simplify the task of extracting ALL style information to separate CSS files?
Thanks A Million
_____________________________________
Action without thought is not action
Action without emotion is not life
|
|
|
|
|
When I am stepping through my code, when debugger cursor
reaches the last line "end sub" if I keep on hitting F11,
I am getting this message: " There is no source code
available for the current location." There's also an
option "Show disassembly information" which takes me to
what looks like compiler code. If I hit F5 from the last
line then it doesn't happen.
Why is it happening, how can I stop this. It's a big
inconvenience for me and slows me down.
Thank you for you help
Thanks & Regards,
Ravikiran.V
|
|
|
|
|
There's an interesting question: what debugs a debugger?
(No rude answers please!)
|
|
|
|
|
hi everybody,
can anybody help to retrive image from the database using ajax.
-diwa
|
|
|
|
|
Your real issue is, if the XML coming back from the database, through AJAX, contains the bytes of a bitmap, they will need to be encoded, how expensive will it be to decode them in javascript, and how do you display them ? A better approach is to have your images in your file system, the paths in your database, and have AJAX create IMG tags based on paths passed back.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
thanks for ur inputs...
i understood buddy,actually am having an xml file which contains the links of some 50 images.now i need to retrive the xml file by specifying the url using ajax through web browser.the images could be intially in thumbnails.
wat would be the better option to do this.?
|
|
|
|
|
Still what I said - build IMG tags in your javascript.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hello Guys,
Is anyone can find out the MIME type of MS Office 2007 word/xl documents ?
Actually i need to validate the extention as per MIME type of .docx file to upload.
Kind Regards,
mdhusudan
|
|
|
|
|
i am using asp in my WEBSITE.
basically i have one option list(papername)
options of this list is retrieved from the database table(papername,code).
i want When the paper name is selected its correponding code should be
filled in the code inputbox automatically.Can you please suggest me something.
|
|
|
|
|
I am having an arraylist with string values
stored in it.I want to access that arraylist
in javascript so that i can manipulate the
values stored in it.
jophin
|
|
|
|
|
That is impossible. The ArrayList exists in the server code, and Javascript is client code.
You can't share objects between server code and client code. There are two reasons for this, which each by themselves makes it impossible:
:: The server code and client code doesn't exist in the same place.
:: The server code and client code doesn't exist at the same time.
The server code runs on the server to create the web page. At this time the client code doesn't exist. The page is sent to the browser, and the client code is executed. At this time the server code is no longer running.
If you want to send data from the server code to the client code, you put the data in the web page that is created. For example by creating Javascript code that recreates the data, or putting it in hidden fields in a form on the page.
You can't send the data back to the server code that sent the data, as that code is no longer running. You have to make a new request to the server so that the execution of the code starts over. You have to send the manipulated data in the request, for example by putting it in hidden fields in a form and posting the form.
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi Guys,
I am using ASP.Net 2.0 with VB code-behind page. But I have a problem in displaying the data from excel. It says that - "The microsoft Jet database engine could not find 'A1'. Make sure the object exists and that you spell its name and path name correctly."
And as I check my xls file there is a column for "A1".
Did I missed something in the source code?
Please refer to the source code below
I hope you can help me solving this problem. Thanks
Source Code:
Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs)
' Create connection string variable. Modify the "Data Source"
' parameter as appropriate for your environment.
Dim sConnectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0;" _
& "Data Source=D:\sample\test.xls ;" _
& "Extended Properties=Excel 8.0;"
' Create connection object by using the preceding connection string.
Dim objConn As OleDbConnection = New OleDbConnection(sConnectionString)
' Open connection with the database.
objConn.Open()
' The code to follow uses a SQL SELECT command to display the data from the worksheet.
' Create new OleDbCommand to return data from worksheet.
Dim objCmdSelect As OleDbCommand = New OleDbCommand("Select * From A1", objConn)
' Create new OleDbDataAdapter that is used to build a DataSet
' based on the preceding SQL SELECT statement.
Dim objAdapter1 As OleDbDataAdapter = New OleDbDataAdapter()
' Pass the Select command to the adapter.
objAdapter1.SelectCommand = objCmdSelect
' Create new DataSet to hold information from the worksheet.
Dim objDataset1 As DataSet = New DataSet()
' Fill the DataSet with the information from the worksheet.
objAdapter1.Fill(objDataset1, "XLData")
Dim dr As DataRow
For Each dr In objDataset1.Tables("XLData").Rows
MsgBox(dr("A1"))
Next
objConn.Close()
End Sub
hifiger2004
|
|
|
|
|
Hello everybody,
I have a huge problem with WSE 2.0 on Visual Studio 2005 ... [http://www.microsoft.com/downloads/details.aspx?familyid=1ba1f631-c3e7-420a-bc1e-ef18bab66122&displaylang=en]
"WSE 2.0 SP3 is also supported on .NET Framework 2.0. WSE 2.0 SP3 does not have design time support with Visual Studio 2005 and hence is not supported when used with Visual Studio 2005. WSE 2.0 SP3 only has design time support with Visual Studio 2003."
...still how can I generate all this things? I can't migrate to WSE 3.0 because system requirements.
I can't get the myprojectWSE build without wse2.
it's like this problem:
[http://www.topxml.com/Webservices-Enhancements/rn-240107_WSE-2.0-in-Visual-Studio-2005.aspx]
thanks in advance for replying.
Ps: please help me >.<
ps2: sorry if this post should be in ASP.NET
thnx
thnx
|
|
|
|
|
anything?
thnx
|
|
|
|
|
can two dotnet applications can be hosted in the same host or not
please respond to me
thank u
|
|
|
|
|
Well, it depend on your host that you bought.
For example, your web application is required to have two different databases. so, you have to ask your host whether they allow you to create two databases. The same way for mapping domain name. You have to find out whether it's allowed to map multiple domain to your account.. The limitation are vary from one host to another.... so, we can't say exactly for your question.. We suggest you to contact with the your host.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Salam , how are you guys ? i hope everything is good
well , i'm new in web developement & i'm trying to find out some ASP tutorials or books but i can't cuz when i type ASP or traditional ASP in Google i get the results concerning the new ASP.Net 1.x or 2.0 but i want to try out the traditional one first to know basics then move to this latest versions , can some body help me please ?
thank you very much
try to be good if you can't be the best
|
|
|
|
|
|
In my opinion however, you won't really gain anything from learning ASP first. ASP and ASP.NET are very different animals.
Scott
|
|
|
|
|
Salam , yeh i know but if you can see the ASP.Net ust makes the task easy for ya , for example the authentication & autorization , when i was studiying ASP.Net 2.0 from the asp.net web site i didn't know what is happening bihind scenes , now i know that there is something called cooky & session variable ........ understand ?? this is why i want to start out with classic asp
i know a jewish website that gives great books for free but i don't remember the link !! so baaaad P
try to be good if you can't be the best
|
|
|
|