|
Hello,
i did a forum aplication for my website. i do have a error sounds -
METADATA tag contains a TypeLibrary specification that does not match any registry entry.
Do i have to change the line to any other???
Im using a PWS on a windows98 platform.
error 'ASP0223' TypeLib Not Found.
Thanx A Lot.
amalan simon
|
|
|
|
|
I want to set some initial text in the textbox of the <input type=file> element. How to do? Thanks.
|
|
|
|
|
<INPUT TYPE="file" NAME="oFile1" value="file.html"/>
<hr><h5><italic>Work hard, Work effectively and a bit of luck is the key to success. </h5></italic>
|
|
|
|
|
I used the same. It is not working. My requirement is the text "file.html" should come in the Textbox of the file browse control in browser.
Thanks
|
|
|
|
|
I have a asp page that get the html string from a 3rd-webserver by using ASPTear component.
The problem is: it perform on server-side (my webserver), so my server is hard-loaded.
How could I transfer the process load html string from 3rd-webserver to the client side, not server side.
Thanks.
|
|
|
|
|
hi this is code in my program for sending message , followed by the session
void sendMessage()
{
Properties properties=new Properties();
properties.put("mail.smtp.host",mailhost);
properties.put("mail.smtp.auth","true");
properties.put("mail.from",source.getText());
MyAuthenticator auth=new MyAuthenticator();
Session session=Session.getDefaultInstance(properties,auth);
session.setDebug(true);
try{
MimeMessage message=new MimeMessage(session);
InternetAddress[] addresses=InternetAddress.parse(dest.getText());
message.setRecipients(Message.RecipientType.TO,addresses);
message.setSubject(subject.getText());
//check if there are attachments,create a "multipart" message
//else create a "text/plain" message
// create and fill the first message part i.e content
MimeBodyPart mbp1 = new MimeBodyPart();
//mbp1.setContent(content.getText(),"text/plain");
FileWriter fw=new FileWriter("content.html");
MinimalHTMLWriter out = new MinimalHTMLWriter(fw, content.getStyledDocument());
out.write();
fw.close();
mbp1.setDataHandler(new DataHandler(new FileDataSource("content.html")));
mbp1.setDisposition("Part.INLINE");
//mbp1.setContentType("text/html");
// create the Multipart and add first message part
Multipart mp = new MimeMultipart();
mp.addBodyPart(mbp1);
if(list.getItemCount()!=0)
{
for(i=0;i<list.getitemcount();i++)
{=""
="" get="" the="" file="" to="" be="" attached
="" filedatasource="" fds="new" filedatasource(list.getitem(i));
="" create="" message="" parts,attach="" multipart="" message
="" mimebodypart="" mbp2="new" mimebodypart();
="" mbp2.setdatahandler(new="" datahandler(fds));
="" mbp2.setdisposition("part.attachment");
="" mbp2.setfilename(fds.getname());
="" add="" remaining="" parts
="" mp.addbodypart(mbp2);
="" }
="" message.setcontent(mp);
="" set="" date:="" header
="" message.setsentdate(new="" date());
="" transport="" transport.addconnectionlistener(new="" connectionhandler());="" transport.addtransportlistener(new="" transporthandler());
="" message.savechanges();
="" transport.connect(mailhost,25,emailid,passw);
="" transport.sendmessage(message,message.getallrecipients());
="" transport.close();
="" catch="" (exception="" ex)="" {
="" ex.printstacktrace();
="" }=""
debug:="" setdebug:="" javamail="" version="" 1.3.2ea
debug:="" getprovider()="" returning="" javax.mail.provider[transport,smtp,com.sun.mail.s
mtp.smtptransport,sun="" microsystems,="" inc]
vipulthakur26u8998u
debug="" smtp:="" useehlo="" true,="" useauth="" true
debug="" trying="" connect="" host="" "smtp.gmail.com",="" port="" 587,="" isssl="" false
220="" mx.gmail.com="" esmtp="" h19sm743564rnb
debug="" connected="" port:="" 587
ehlo="" vipul-kbykg320p
250-mx.gmail.com="" at="" your="" service
250-size="" 20971520
250-8bitmime
250-starttls
250="" enhancedstatuscodes
debug="" found="" extension="" "size",="" arg="" "20971520"
debug="" "8bitmime",="" ""
debug="" "starttls",="" "enhancedstatuscodes",="" use8bit="" false
mail="" from:<vipulthakur26@gmail.com="">530 5.7.0 Must issue a STARTTLS command first
javax.mail.MessagingException: 530 5.7.0 Must issue a STARTTLS command first
at com.sun.mail.smtp.SMTPTransport.issueCommand(SMTPTransport.java:1189)
at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:842)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:491)
at Mail.MailClient.sendMessage(MailClient.java:410)
at Mail.MailClient$MyActionlistener.actionPerformed(MailClient.java:515)
|
|
|
|
|
Hi,
When I open a child window from the parent window, is there a way from the child to know if the parent window has fully loaded or not?
Thanks
Hitesh
|
|
|
|
|
Hi Hitesh:
1) In Parent window, you can have a global JavaScript variable and set its value to a defined one, from its window.onLoad event.
2) In Child window, you can query this value. If it does not match or is 'undefined' or null, then it means, parent has not loaded completely. Else, it means, the parent has completely loaded.
Did this help you?
Deepak Kumar Vasudevan
Personal Web: http://vdeepakkumar.netfirms.com/
I Blog At: http://deepak.blogdrive.com/
|
|
|
|
|
I am using
window.showModalDialog(...
to open a modal dialog window. Does anyone know how I can hide the titlebar.
Thanks in advance
Ami
|
|
|
|
|
When I click a button on an ASP page, I want to open a new popup window and submit the parent ASP page to itself. Once this ASP page is reloaded, I want to close the popup window.
How do I do this?
Hitesh
|
|
|
|
|
|
I am trying to write a simple batch file to get a project from source safe, build it using the vs.net cmd line and then deploy it somewhere.
I am using the following line to get the project from vss:
ss get $/MyProjects/MyProject1 -R -I- -NL
–R -> recursive
-I- ->don’t ask for input
-NL -> use long names (alternatively –NS for short names)
However, this is an asp.net project, all the filenames are being trimmed when getting from vss, and this results in files being copied over. I have searched the documentation and on the web and cant find my answer, can anyone help?
Thanks,
Rob
|
|
|
|
|
> Hello,
> I would like to know how can I download html files from the
> internet and save them programmatically. I want to perform
> the task in VBA. Currently I am using Microsoft Internet Controls shipped
> with Internet Explorer and the ExecWB method supported.
> I was able to invoke the saveas dialog using the same, but I would like
that
> to happen automatically without user intervention.
> Example :
> ie.ExecWB OLECMDID_SAVEAS, OLECMDEXECOPT_DONTPROMPTUSER,
> "C:\Temp\Testing.htm"
>
> Another problem is that the resources embedded in the HTML are not
> downloaded using this mechanism.
> I would want a functionality similar to IE SaveAs Option.
> Any guidance would be helpful.
>
> Thanks,
> Abhishek.
|
|
|
|
|
Hi All!!
I am using classic ASP and I am having the following error:
· Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch: 'Session'
//global.asa, line 15
· Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
· Page:
GET /nederburg/admin/updateBids.asp
And this how I have it in my global.asa file:
Sub Session_OnStart
Session("SafeTrack") = ""
Application.Lock
Application("Sessions") = Application("Sessions") + 1
Application.UnLock
' Brendans addition
'----------------------------------------------------------------
' Store database connection string - MS ACCESS
'----------------------------------------------------------------
Application("ConnectionString") = "Provider=Microsoft.Jet.OLEDB.4.0;User ID=;Password=;Data Source=" + Server.MapPath("/db/db.mdb")
End Sub
Line 15 refers to Session("SafeTrack") = ""
I don't understand the error. When does global.asa get loaded? Does it only get loaded through a default.asp in the root directory?
I would appreciate any help.
Thanks
Brendan
|
|
|
|
|
If you are using Session to store varchar values then you have to initialize with some values such as Session("SafeTrack")="none", or
If you are using Session to store integer or float values then you have to initialize with some values such as Session("SafeTrack")=0
Session("SafeTrack") = "" does not specify data type you are storing in session. hence it leads to Type Mismatch
Hope this helps,
AnandG
|
|
|
|
|
I am creating a web app that has several UserControls loaded. What I want to do is when the user clicks the Datalist Item that has a Controls corresponding value, it sets the UserControl to being visible. All the other UserControls are set to hidden.
I know how to set Textboxes etc to hidden and visible using Javascript, but how do I set the UserControl to hidden and visible when the correct item in the datalist is selected.
Any help would be greatly appreciated.
Graeme
|
|
|
|
|
|
Thanks Deepak I will try that and let you know how it goes.
Graeme
|
|
|
|
|
Excellent that worked brilliantly. Just have to set the height and width and visibility, as I was having a problem that the rest of the items below the ascx page (static data/GUI) do not move down when you set the visibility to visible.
It seems to place is over the top of the items currently on the page, instead of moving them down.
We will have to set the height depending on the size of the DIV that we set up for each control.
Is there any way of getting the height of the DIV tag as a variable and just increasing the height based on the height of the div that should be visible. IE: can you get the div's height value at run time from the client side script, and when setting the visibility, setting the height also?
Thanks for the help
|
|
|
|
|
Dear CPians,
Has anyone ever come up with any problems related to Sessions in IIS or with Macromedia Communication Server when the client accessing the website uses toolbar addin such as the Google bar or the MSN Toolbar?
I think that there is an issue with Macromedia Communication server and I am wondering wether there is a problem with IIS too.
My experince shows that when using MSN Toolbar or Google Bar and accessing a Flash that communicates with the communication server, the connection on server will never close even when the browser is closed and the pc rebooted. This does not happen when the toolbar addin is disabled.
Today, I noticed some abnormal session handling by IIS on another website and thought that it could be the same problem as the one above.
What I am asking is if anyone has noticed any problems like this. It might be my code, but so far I have been through alot of debuging and haven't found the flaw, so I started wondering if there is a more general problem. I have googled the problem but no related links came up.
Any hint, help, idea is wellcomed!
Thanking you in advance.
theJazzyBrain
Excellence is not an act, but a habit! Aristotle
|
|
|
|
|
Any one with a piece of code to validate the email address like @ sign and the .
-oam-
|
|
|
|
|
The code i was looking for is here[^]
-oam-
|
|
|
|
|
Here's my scenario:
I want to run some sort of game engine on a server so that clients can:
- get a list of the games already running on the server
- join one of these games
- interact with the game
The idea is for the games to be multi-player and operate on asp.net pages. If a user refreshes his client, he can see the changes to the game caused by other players. I've already designed the necessary classes for game play, but I'm a little unsure how to have the games running constantly on the server. Would I use a WebService? Should I take the remoting route to solve this? I doubt I can run a console app on the server, since I will not be hosting this on my own server.
I don't consider myself a .NET newbie, but I think I'm missing a few key ideals that it takes to implement such a project.
Thanks for any constructive advice!
|
|
|
|
|
Hi M,
I had a same kind of issue when i was writing a chat application. I ended up using iframe and javascript as i was not refreshing iframe with any parameters. In your case you can use iframe or use webservices from javascript and it should fine.
Thanks
Manoj
|
|
|
|
|
Thanks for your response Manoj...
Refreshing the page isn't really my problem though; it's bigger than that.
I need to know how to keep some sort of application running on the server that instantiates some objects and is able to share those objects with clients.
|
|
|
|