|
Hi
I have a very wried prob... i have an aspx page with a text box and a button. On click of button i call a function CodeCheck() in javascript which does some validations and if the result is true opens a new page. i used window.location.href="my page" for opening the page.
I have also used onkeypress="if(event.keyCode==13){return CodeCheck();};" in the form so that if the user presses enter key it must have the same functionality as the button click.
Now the prob is when i click the button the page opens well but when i press the enter key it opens the existing page. i have no idea why this is happening.
If i use Window.Open() it works fine but i cannot use it since it opens in a new page.And i want my page to open in the existing one only... Can someone please help
Thanks
Baishali
|
|
|
|
|
Set window.location.href = "http://www.google.com/" and try if it opens the google correctly then there may be something wrong with your url.
|
|
|
|
|
There is nothing wrong with URL. "keypress" is an event that can be cancelled and can bubble. So you have to pay attention to what value you return from your event handler. I am assuming that you are not returning anything from "CodeCheck()" function.
Try this..
function CodeCheck() {
window.location.href = "http://www.byteblocks.com";
return false;
}
You will need to some more work in keypress even handling to decide cancellation of event.
|
|
|
|
|
Hi all,
Has anyone integrated a chat application into a website? If so can you -
- recommend your preferred application
- advise on ones to avoid
- give any advice on platform dependence PHP, ASP, jscript, HTML... does it matter?
Thanks for your help!
Andy
|
|
|
|
|
|
Do anyone know how to hide few properties of any form from Google indexing.
|
|
|
|
|
|
Hi there,
when we rewrite url for example,
http://mysite.com/default.aspx?page=hello-world
to something like this -
http://mysite.com/default/page/hello-world
My concern is when somebody bookmarks or directly hits the rewritten URL (http://mysite.com/default/page/hello-world), does that work?
Any help is appreciated!
Thank you!
Aditya
|
|
|
|
|
|
|
I use UrlRewritingNet.UrlRewriter.dll
Following rule workin in IIS 5, Visual Studio Development Server. But not workin IIS 7.
<add name="MyRule1"
virtualUrl="^~/(.*)/Book.aspx"
rewriteUrlParameter="ExcludeFromClientQueryString"
destinationUrl="~/abc.aspx?KitapId=$1"
ignoreCase="true" />
|
|
|
|
|
Oops, but i am using PHP for hosting.
Can you or anyone provide me the htaccess rule please?
Aditya
|
|
|
|
|
thanks for the reply anyway!
Aditya
|
|
|
|
|
hi all,
I am creating online registration form application for an event .i have completed my registration process.
now when candidate click on submit button,an email should send to that candidate's email id...it should have his/her reg no. how cani do that,plz help me.
|
|
|
|
|
|
i m using c# as a language .And yes from the database i want to send the reg.no which will be of 4digits.
thank you for quick response
MJPM
|
|
|
|
|
Use this as a guide for sending email from your ASP.net application (VB.net syntax):
First in your web.config you would need something like this:
<system.net>
<mailSettings>
<smtp>
<network host="yourmailserver@domain.com" port="25" userName="" password=""/>
</smtp>
</mailSettings>
</system.net>
Then use this code in your code-behind:
Imports System.Net.Mail
Dim mm As New MailMessage("FromGuy@me.com", "ToGuy@me.com")
mm.Subject = "This is a test"
mm.Body = msgbody
mm.IsBodyHtml = True
Dim smtp As New SmtpClient
' Send the MailMessage (will use the Web.config settings)
smtp.Send(mm)
|
|
|
|
|
But i am using c# as a language .And yes from the database i want to send the reg.no which will be of 4digits.
thank you for quick response
MJPM
|
|
|
|
|
Hi,
I am using crystal report and report viewer in asp.net. I always display the report as default format. But i want to limit the displaying records in per pages. How to increase and decrease the displaying records in crystal report in asp.net. Please any one can help me,
Thanks in advance
Regards,
Manogaran
|
|
|
|
|
Is it necessary to use 'Visual Web Development' or can I achieve the same
using Visual Studio.
Is using Cassini service the same as using IIS while developing a tool?
|
|
|
|
|
In asp.net C#, How to programatically save an .aspx page as PDF?
|
|
|
|
|
Just for curiosity but why you want to save the .aspx page as PDF?
|
|
|
|
|
I have an aspx page that queries the database and displays a report....and there needs to be an option to view the report as pdf.. any better ideas to viewing it as pdf?
|
|
|
|
|
|