|
One of the ways i can think you can solve the issue is using web services as you can share some global variables between your webapp and webservices
|
|
|
|
|
Does anyone know how to code a text field in classic ASP to auto insert a dash when some types in a phone number or a date. Thanks.
|
|
|
|
|
|
|
I'm not sure if this is the right forum, but my question covers many areas. Firstly I am VERY new to C#, ASP.NET, so please tell me if I am going about this the wrong way!
I am having to develop an intranet site for the College where I work. This has to be done quickly so I have used FrontPage to get me going - ok, so far so good. We have to have a lot of reports (currently paper-based) available on the intranet, either as HTML pages or in Snapshop format. These reports come from Access and Oracle Discoverer. Additionally, I have some C# routines which are invoked from the relevant intranet pages producing information which could not necessarily be produced in a straight report - these are ok.
The problem I have is that I want users to be able to click a report title on the intranet page so that it does NOT just display the report content that we may have previously saved in html format, but actually invokes Access to run the report there and then.
I have managed to write a Console Application in C# which fires up Access, supplies it with the data base path and the name of the report to run. This works well from a command line interface. The BIG question is now, "How can I get the same thing to happen from HTML?" Probably because of my lack of experience, I cannot see how I can invoke the C# Console application, passing it parameters, from the html page.
Can anyone put me out of my misery?
Many thanks
Keith
|
|
|
|
|
I have a couple of webservicees that we deploy on various servers. They work fine on everything but 2003. I have had to give the ASP.NET user permissions to the install directories in order for log files to be read and written, but other than that, they seem to work fine. Well, on the 2003 install it gave us a 401 permission denied error, along with some errors about trying to read and write log files, once again, permission errors. We attempted to give ASP.NET and the iis_wpg rights to the folders and still no luck. Any help would be greatly appreciated.
Thanks so much,
Ryan
|
|
|
|
|
Hello
I want to ask if there is a way to change the source of <embed /> tag in html throught
java script. I have added sound to a web page and after clicking on an image I need
to change the playing track (wav or mp3) but I don't want to use <object> tag because of
compatibility with other browsers.
I just need a sample function and I don't know how correctly define the object's 'name' or 'id'
f.e.:
<embed name="audio1" src="sound/01.wav" ...="" />
or
<embed id="audio1" src="sound/01.wav" ...="" />
?
So how can I access this object in a function?
thanx a lot
|
|
|
|
|
Is there a function in ASP to extract a substring from a string.
|
|
|
|
|
|
Hi,
I am using your DateSelector control i donwloaded from Code Project.
I have included the source in my project.
But for some reason the arrows to select month etc are not showing.
I copied the "cal" folder to of my app root folder and put this in the =
imgDir variable.
var imgDir = "cal/"
But it is not showing them. Do you know why??????/
Thanks
rotsey
|
|
|
|
|
What the heck is it...and how do I make one???
I have the following code:
$headers_client .= "Content-Type: multipart/mixed; boundary=\"{".$mime_boundary."}\"\n\n";
But the variable $mime_boundary has been left un-initialized and is never set anywhere in code?
What does this variable do...actually what the heck is mime_boundary ???
It's frustrating being a genius and living the life of a moron!!!
|
|
|
|
|
I don't know, but it looks like boundaries are used to mark parts of message for User Agent...
check Sample MIME Message[^].
I think these are here for compatibility or something. To answer your question how to make one.. hmm try it like they do it on MSDN...
maybe like
Content-Type: multipart/mixed;
boundary="boundary text"
and then
$mime_boundary = "--boundary text"
?
hope it helps.
David
Never forget: "Stay kul and happy" (I.A.)
David's thoughts / dnhsoftware.org / MyHTMLTidy
|
|
|
|
|
hi all,
can we change the INPUT tag 'type' attribute at run time using JavaScript.
for example i have the follong tag in my HTML page
<INPUT type="password" id="pswd">
can we change the type="password" attribute to type="text" attribute using javascript.
thank you all in advance
cheers
raju
|
|
|
|
|
Apparently not (just tried IE6).
You can just replace it with a new element:
function evolve()
{
var obj = document.getElementById("MyInput");
var newObj;
newObj = document.createElement("input");
newObj.type = "text";
newObj.id = "MyInput";
obj.parentNode.replaceChild(newObj,obj);
}
From a coding design point of view, it is probably better to just put 2 input controls on the page and hide/show the one you need. It can introduce errors if some code is expecting one type of input control, but receives another because it has morphed into something else.
|
|
|
|
|
How to get the input text field value by the form name? I am trying to call a function which calculates by taking the input text value times some value. I tried to get the input text value by form.the field name * 100 .
But when i run the program i have javascript error saying form.the input field value is null and not an object.
Can anyone let me know how should i get the value of the input text field?
Thanks,
angel
|
|
|
|
|
It looks like you are pointing to the input text object and not its value. Try something like document.formname.textboxname.value where formname and textbox name are the names of your form and text box. The value keyword points to the data typed in the box.
|
|
|
|
|
Hi there,
i'm again in trouble. Great trouble.
I have a WebUserControl written by me, in which all control rendered are dynamically generated on page_Load. It works well, so I've decided to extend it with another WebUserControl.
Public class ExtendedUserControl:MyUserControl
This mean that in this second page_load, a just-generated control is added in a collection before one of the inheriteds. It seems to work, but here begin my trouble.
I've done my WebForm for test, and the control extended is well-rendered. The problem is with the PostBack and ViewState : first it shows to me a message of Invalid_Viewstate.
I've tried to manage it by overloading SavePageStateToPersistenceMedium and LoadPageStateFromPersistenceMedium and make the __ViewState variable to be divided in packages lesser then 1024byte.
It then shows me an error of Invalid Cast in the private System.Web.UI.Page.LoadPageViewState() where I cannot either debug or do some.
It is clear the problem is with the viewState because making those methods to do nothing, the problem disappears. But the state, obviously, also was lost.
I need state functionality (as always in web form) and I don't like to go the ancient way to manage myself the state-infos. I think I don't know state-lore enought to understand what is really at work here. Should I have designed in another manner my WebUserControls? You know i don't go the common way to have the tags in aspx and the code in aspx.cs: I choose to make all in the .aspx.cs file so I can inherit from.
Are there some triks I wasn't able to find in the web? Or perhaps there are some requirement i don't know, and so don't meet?
Any help is quite appretiated and very welcome.
Parsiphal
|
|
|
|
|
I have a mail script but don't know how to catch any errors so that it will display email address that failed to send. Here is my code...
<br />
Dim mail<br />
Set mail = Server.CreateObject("CDO.Message")<br />
mail.From = "from@mail.com"<br />
mail.Bcc = "bcc@mail.com, bcc2@mail.com"<br />
mail.To = "to@mail.com"<br />
mail.Subject = "This is the subject of the email"<br />
mail.HTMLBody = "I am the message that will be displayed in the body"<br />
mail.Send()<br />
Set mail = Nothing<br />
How can I display a message that says that there's an error with sending the mail?
Thanks in advance
|
|
|
|
|
Hey all,
I have a quick question, i have a form that has several buttons, when the form loads, i set my "Save" button to have focus (using document.frmEdit.btnSave.focus();) However, when i my text boxes get focus (ie when i'm typing in them) the "Add" button recieves focus. Thus if i hit return, it doesn't have the desired effect. Is there anyway that I can have the "Save" button keep focus the entire time the form is loaded?
Thanks
Brian Van Beek
|
|
|
|
|
hi there,
I am a java/jsp/servlet programmer, trying to write something which you might call a WebTracker or WebMonitor.
My problem is:
"I want to create a kind of a web proxy so that
EACH url requested by a user passes through my
web application, and that I am able to save that
url somewhere."
What I have done is:
"I provide my users with a textbox in my jsp page, and
allow him/her to write a url and press "SUBMIT".Then I request that
url on the user's behalf just like a proxy server. Meanwhile, I parse
the HTML and JAVASCRIPT of the requested page and insert the url
of my webapp at the beginning. The example explains:
-- user requested: http://www.somewebsite.com
-- The request comes to my servlet, and I use an HTMLClient library to
request the url.
-- HTMLClient provides me with the HTML/Javascript/Text (whatever) stream
of the requested url.
-- Let us suppose there were links like /image_1.jpeg, http://www.url.com
and checkitout/mypage.jsp etc in stream of http://www.somewebsite.com
-- I change these links to:
** http://www.myurl.com/myservlet/http:/www.somewebsite.com/image_1.jpeg
** http://www.myurl.com/myservlet/http:/www.url.com
** http://www.myurl.com/myservlet/http:/www.somewebsite.com/checkitout/mypage.jsp"
Doing so doesn't cover all the cases. For example I can't
post data for the users and there are other problems of the like.
The web is SO heterogenous.
I think you have got the problem.
What my doubt is:
"There are so many anonymous proxy servers on the web which are completely
web-based and allow almost any kind of activity like submitting web-forms, images retreival
and all kinds of stuff. Check out the following:
--- http://www.the-cloak.com
--- https://proxify.com
--- https://www.megaproxy.com/freesurf/
I doubt there must be some kind of configuration possible in Apache Tomcat (which is my
web-server) which will allow me to track my users. I don't think that anonymous proxy
servers parse and alter HTML streams. There must be something which I don't know."
do you have a solution of any kind.. any ideas? Please help
Thanx in advance.
|
|
|
|
|
i have designed a client in JAVA to send and receive mail ,now the problem is , it(the software) is allowing only one email addr which @yahoo.co.in
(we connected client to smtp.mail.yahoo.com) for other email addrs it gives 507 authentication problem.(FOR MTNL CONNECTION)
SECONDLY it gives following err for every email id when connected to CABLE NET:
Mail.MailClient
DEBUG: setDebug: JavaMail version 1.3.2ea
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.s
mtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: trying to connect to host "smtp.mail.yahoo.com", port 25, isSSL fals
e
220 manage.24online ESMTP Sendmail 8.9.3/8.9.3; Sun, 27 Mar 2005 20:48:53 +0530
DEBUG SMTP: connected to host "smtp.mail.yahoo.com", port: 25
EHLO vipul-10od2y6fv
250-manage.24online Hello [172.16.51.5], pleased to meet you
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-ONEX
250-ETRN
250-XUSR
250 HELP
DEBUG SMTP: Found extension "EXPN", arg ""
DEBUG SMTP: Found extension "VERB", arg ""
DEBUG SMTP: Found extension "8BITMIME", arg ""
DEBUG SMTP: Found extension "SIZE", arg ""
DEBUG SMTP: Found extension "DSN", arg ""
DEBUG SMTP: Found extension "ONEX", arg ""
DEBUG SMTP: Found extension "ETRN", arg ""
DEBUG SMTP: Found extension "XUSR", arg ""
DEBUG SMTP: Found extension "HELP", arg ""
DEBUG SMTP: use8bit false
MAIL FROM:<vipulthakur2004@yahoo.co.in>
250 <vipulthakur2004@yahoo.co.in>... Sender ok
RCPT TO:<vipulthakur2004@yahoo.co.in>
550 <vipulthakur2004@yahoo.co.in>... Relaying denied
DEBUG SMTP: Invalid Addresses
DEBUG SMTP: vipulthakur2004@yahoo.co.in
DEBUG SMTP: Sending failed because of invalid destination addresses
RSET
250 Reset state
javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
class com.sun.mail.smtp.SMTPSendFailedException: 550 <vipulthakur2004@ya
hoo.co.in>... Relaying denied
at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1072)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:492)
at Mail.MailClient.sendMessage(MailClient.java:410)
at Mail.MailClient$MyActionlistener.actionPerformed(MailClient.java:518)
|
|
|
|
|
I've got a website with a couple of Google ads on it. It works great, except, of course, when Internet Explorer blocks active content; in that case they simply don't show up.
I've seen a multitude of websites around with google ads that display fine, even if IE is set to block active content. I can't manage to figure out how this is done, though. Anybody know?
tantiboh
|
|
|
|
|
are you viewing your site locally or viewed off of a web server? IE will block more stuff if it is viewed locally, so if that is the case, try it off of a server as well to see if you get different results.
If you are looking at it off a web server, it must be in your code. post some of your javascript so we can compare it to other sites.
|
|
|
|
|
I have a console based C# program that calls web service proxy methods. I want to extract and insert the xml embedded in the SOAP body area. How is this done? I know that in Java setSOAPBody(...) and getSOAPBody(...) can do this, but how is this done in C#.
The main reason why I need to do this is that when I got a wsdl from a customer the .NET code generators produces web methods with classes as parameters. I would rather like to pass the xml text string instead of populating these self-generated classes. Is there a way to by pass this?
Thank you for your help...
|
|
|
|
|
Hi Guys:
I have an IFrame that is sitting on a page. The iframe is under another domain than the web page. It goes off and has a script that interacts with a server side piece of code (I believe that this is JSP). When it is done, I want the iframe to have a piece of code that updates the main page but I dont know how to do this when the two pages are on different domains.
To put the whole thing into context, the main page is in essence a static page and the other page is just hiding and showing things, it is is essence inviseble. It makes the main page look dynamic but it is not really.
Does anyone have any good suggestions for this?
Cheers,
Jim
Did I post well? Rate it! Did I post badly? Rate that too!
|
|
|
|