|
ok, Well in that case the only way I know how to solve such an issue
is to create a file called default.html and have it auto redirect to default.htm
that way whenever a user types either name both goes to default.htm
|
|
|
|
|
thank you...
well actually it was not just for one page.. i wanted it for whole site.. i have heard of the mod rewrite.. but i am not sure about the regular expression and the syntax that needs to be there for rewriting the URLs automatically for any page within the site.
Anyway thanks for your efforts!!!
cheers,
Aditya
|
|
|
|
|
HI...
I am developing in asp.net with mysql database.
Someway or the other I am unable to connect to database, and gives me the error..as follows
"ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified"
I am using Vista operating system
I also installed odbc connector version 3.51 for mysql , but getting same error message..
Please guide me to resolve the problem....
Thanks.
Hemant thaker
By:
Hemant Thaker
|
|
|
|
|
Hi,
can you connect to the database by using the "Test"-button on the ODBC-Administration form?
Regards
Sebastian
P.S.: Maybe you could post the code you are using to connect to the db.
|
|
|
|
|
hi...
thanks ....
It's a web application in asp.net and using mysql with that..
The thing is that i am able run the application in different machine there I get the connection.
And its not working in other system where all the modules are installed like mysql connector 3.51 and all that.
is there any problem relating to port ????
By:
Hemant Thaker
|
|
|
|
|
Give us some code, and the connection strings. Then we might be able to help, as of right now, there are about a million reasons as to why this isn't working.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
plz, help
I need a Javascript for Hijri calendar.
|
|
|
|
|
|
Hi all,
we are calling a swf inside a asp.net page(.aspx), when I click the print button(in flash) it's not detecting the printer, it shows the message Detecting Printer...., but nothing happens. But if i call the same page inside a html page it's working fine. There is some reason to call the swf inside the aspx page.
I am not a flash action script programmer, am a .Net developer, the developer who done this work not here now. They askd me to fix this.
Suggest me how to fix this.
Thank you all.
Know is Drop, Unknown is Ocean
|
|
|
|
|
I am not sure either, but since it is working on the html page, you could IFrame it on a simple html page, set the border to 0 and you won't even know it is there.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
Hi..
I have one gridview and displaying records on that. When the pagging indexes appear and i click on next index i get the following error
The GridView 'grdPosts' fired event PageIndexChanging which wasn't handled
could u tell me how to handle this problem....
By:
Hemant Thaker
|
|
|
|
|
You need to have some code that handles the grid view PageIndexChanging event, much like the error says. Google for it...
|
|
|
|
|
Here is a simple question for everyone but me.
The purpose of this code is to send a feedback message to me, the webmaster.
The visual basic code is written on a code behind page for the page which has the blanks to fill in to send the webmaster feedback.
The code sends the message. However, it's ina loop. The Protected Sub Button1_click procedure starts, it does the SendMail procedure with no trouble, Does the end sub and then goes back to its beginning of Protected Sub Button1_click to send the message again. How do I get out of this loop?
Thank you for your help.
Imports System.Web.UI
Imports System
Imports System.Net
Imports System.Net.Mail
Imports System.Web.TraceContext
Partial Class Feedback
Inherits Page
Protected Sub Button1_click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim SenderName As String = TxtName.Text
Dim SendersEmail As String = TxtEmail.Text
Dim Subject As String = TextSubject.Text
Dim Message As String = TxtMessage.Text
SendMail(SenderName, SendersEmail, Subject, Message)
End Sub
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
End Sub
Sub SendMail(ByVal SenderName As String, ByVal SendersEmail As String, ByVal Subject As String, ByVal Message As String)
|
|
|
|
|
There's no loop in the code you posted. What does the sendmail function do?
|
|
|
|
|
Ok, there is no loop in the code in the Basic programing technical sense. On the other hand why, after doing the End Sub of the Protected Sub Button1_click, does it go back to the first statement of the Protected Sub Button1_click procedure and proceed to do it all over again?
Here is a copy of the entire code behind page Page/History.aspx.vb. When I step through, statement by statement, it jumps over the Catch statements and does Finally and its statements and then End Try and then End Sub and then jumps to Protected Sub Button1_click, does the Dims and starts the Send Mail all over again.
I use ASP 3.5, Visual Web Developer Express 2008. The four Dims are there so I could be sure I picked up the four variables from the Display page. Once I know things are working correctly,
Much thanks for your help.
Imports System.Web.UI
Imports System
Imports System.Net
Imports System.Net.Mail
Imports System.Web.TraceContext
Partial Class Feedback
Inherits Page
Protected Sub Button1_click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim SenderName As String = TxtName.Text
Dim SendersEmail As String = TxtEmail.Text
Dim Subject As String = TextSubject.Text
Dim Message As String = TxtMessage.Text
SendMail(SenderName, SendersEmail, Subject, Message)
End Sub
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
End Sub
Sub SendMail(ByVal SenderName As String, ByVal SendersEmail As String, ByVal Subject As String, ByVal Message As String)
Dim NetMail As New MailMessage
Dim MailClient As New SmtpClient
Dim ThisHost As String = "MAILSERVER"
Dim ThisPort As Integer = 25
Dim TheseCredentials As New NetworkCredential("USERNAME", "PASSWORD")
' Dim ThisSender As String = "SENDERNAME <RECIPIENTMAIL>"
Dim ThisSender As String = SenderName
' Dim ThisRecipient As String = "RECIPEINT MAIL <RECIPIENTMAIL>"
Dim ThisRecipient As String = "mhh112@hotmail.com"
' Dim ThisSilentRecipient As String = String.Empty
Try
' NetMail.From = New MailAddress(ThisRecipient)
NetMail.ReplyTo = New MailAddress(ThisRecipient)
NetMail.To.Add(New MailAddress(ThisRecipient))
' If Not ThisSilentRecipient = "" Then
' NetMail.Bcc.Add(New MailAddress(ThisSilentRecipient))
' End If
NetMail.DeliveryNotificationOptions = DeliveryNotificationOptions.OnFailure
NetMail.IsBodyHtml = False
NetMail.Priority = MailPriority.Normal
' NetMail.Subject = "Test Subject" & DateTime.Now.ToLongTimeString()
NetMail.Subject = Subject & " " & DateTime.Now.ToLongTimeString()
' NetMail.Body = "Test Body " & DateTime.Now.ToLongTimeString()
NetMail.Body = DateTime.Now.ToLongTimeString() & " " & Message
MailClient.DeliveryMethod = SmtpDeliveryMethod.Network
' MailClient.Host = ThisHost
MailClient.Port = ThisPort
MailClient.UseDefaultCredentials = False
MailClient.Credentials = TheseCredentials
MailClient.Send(NetMail)
Catch EXC As Exception
Trace.Warn(EXC.Message)
Finally
NetMail.Dispose()
NetMail = Nothing
MailClient = Nothing
End Try
End Sub
Protected Sub TxtName_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs)
End Sub
End Class
|
|
|
|
|
You don't, by any chance, have an onclick="" defined for the button in the aspx page, as well as the handles statement in the code behind?
|
|
|
|
|
Yes, I have both statements. I have experimented taking one out and then the other but removing one or the other gets me "do you want to continue or do you want to see what the error is.
Taking one or the other out doesn't seem to get me down to the <asp:panel id="panelMailSent" ....="" xmlns:asp="#unknown"> statement. I've added a text box to see if I am really back from the <asp:button....> statement. I can type in the text box and when I hit the return, I'm back doing the Button1_click procedure. And that is with the handles statement saying quite obviously that the procedure is tor the Button1.Click procedure.
I had this working with system.web.mail but constantly got messages that it was an old way to do things. So I changed to the System.net.mail namespace and can't make it work. Like all programming errors, when I finally get it to work, it will be a minor change.
By the way. I appreciate your help. Eventually, it will work. Everyone but me can send mail with System.net.mail.
One other thing. I am sending the email comment to hotmail. Microsoft says, well here is a copy of the message:
Reporting-MTA: dns;hkram
Received-From-MTA: dns;hkram
Arrival-Date: Wed, 17 Dec 2008 15:18:44 -0500
Final-Recipient: rfc822;mhh112@hotmail.com
Action: failed
Status: 5.0.0
Diagnostic-Code: smtp;550 DY-001 Mail rejected by Windows Live Hotmail for policy reasons. We generally do not accept email from dynamic IP's as they are not typically used to deliver unauthenticated SMTP e-mail to an Internet mail server. http://www.spamhaus.org maintains lists of dynamic and residential IP addresses. If you are not an email/network admin please contact your E-mail/Internet Service Provider for help. Email/network admins, please visit http://postmaster.live.com for email delivery information and support
What is an ordinary Tom,Dick or Jane supposed to do with a message like that? Why can't the message say it's getting certain fields filled out so the server looks like a dynamic server. If you change a field to this value, we will accept your message. Why is that so difficult?
Again, thank you for your help. It's nice to have someone to complain to. Although you are not the proper person to complain to.
Mark H.
|
|
|
|
|
Hi,
I am facing a strange problem theses days with my websites.
Like, the database is currently saved in English Language ant display by the UI is as 'Ȅ૪eC,eCnC૪ilpi૪ʨ9 ૪pe9nC૪hSCpiC ૪K9e૪o9S૪1C૪i9૪'
Even now if some one saves the data in DB, the Junk Chars will be saved.
Now i changed the web.config and add <glbalization> tag, but the error is not resolved.
I got error when i edited the web.config and added a globalization tag:
'Parser Error Message: Recursive fallback not allowed for character \u003F'
Is this a problem with DB charset or ASP.NET settings. I am using .net 2.0 and SQL 2005
Also, i am not specifying any charset in Meta Tag.
Please help.
Aman Bhullar
modified on Sunday, December 14, 2008 4:30 AM
|
|
|
|
|
I am also getting this problem, did anyone get any solution for this? My ASP.NET website works fine on my local machine, but I get the same error when uploading to the host. The site was working fine and then I updated some text on ONE of the pages, now I get this error on ALL the pages. My site is in English and hosted in the UK so I don't think its a language problem for me.
Any suggestions appreciated!
|
|
|
|
|
hi,
The problem is not in your code. The problem is with the webserver. I don't know what is the problem, but i had a long fight with my host. According to them they have fixed it, but it is there occasionally.
The best way is to report the host regarding this at time when same is displayed on screen, only then they can diagnose. But they will never tell nature of issue.
|
|
|
|
|
Hi, You are right - when I reported it to the host they did fix it and just said it was a 'server issue'. So although I'm not much wiser, at least its working! Thanks for your reply.
|
|
|
|
|
Hi Friends,
I tried to insert Chinese into a html file in Apache-Tomcat server, and whenever i refresh it and check this page online through URL, it doesn't show Chinese but some unrecognized characters.
Can anyone tell me what the problems might be? Server side problem or my setting issue? Many Thanks...
|
|
|
|
|
What format did you save your HTML file in - it'll need to be saved in a Unicode format.
|
|
|
|
|
Hi
I am not sure if this is the right place to post my question.
I have a web application. When i run the application data provided by the user should go and settle in their corresponding outlook calander.
I got example from following link
http://www.codeproject.com/KB/office/OutlookDemo.aspx
but am not able to download the source code.
Could somebody provide me code for this.
Thanks in advance
naina
|
|
|
|
|
nainakarri wrote: I got example from following link
http://www.codeproject.com/KB/office/OutlookDemo.aspx
but am not able to download the source code.
Why ? If you are a registered user then you should able to download that.
What was the problem to downlad that ?
|
|
|
|