|
<script language="javascript"><br />
<!-- <br />
function checkEmail() { <br />
if (document.TheForm.Email.value != document.TheForm.EmailVerify.value) { <br />
alert ('The email addresses do not match. Please re-enter.') <br />
return false; <br />
} <br />
} <br />
<br />
Use the code and change the control anmes as required in your page, and then call the function on the click of the button.
|
|
|
|
|
You can use this:
function CompareValues()
{
var textBox1=document.GetElementById('ID_OF_TextBox1');
var textBox2=document.GetElementById('ID_OF_TextBox2');
if(textBox1.value!=textBox2.vale)
{
//do what you want
}
}
|
|
|
|
|
hi
while redirecting to a page in a web application i got this error
can any one help me to sort out this problem
Server Error in '/' Application.
--------------------------------------------------------------------------------
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30456: 'CreateResourceBasedLiteralControl' is not a member of 'ASP.masterpage_master'.
Source Error:
Line 1: <%@ Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="MasterPage" %>
Line 2:
Line 3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Source File: C:\Inetpub\vhosts\shieldpro.in\httpdocs\MasterPage.master Line: 1
|
|
|
|
|
Rename the namespace,
delete all the old dll's out of the bin folder
recompiled and hopefully it will work.
Get back if it dosent work. Gud Luck
|
|
|
|
|
hi
thanks for your reply
i did it but it is not working
is there any other process
|
|
|
|
|
hi
i could not find the bin folder
in webapplication
and how to compile the site
|
|
|
|
|
compile your application again
then try
One person's data is another person's program.
--J.Walia
|
|
|
|
|
Hi..
I m opening new window from my application and displaying acrobat file there like this
ClientScript.RegisterStartupScript(typeof(Page), "id1", "<script type=\"text/javascript\">window.open('AssFile.aspx', 'CustomPopUp', " + "'width=600, height=600, menubar=no, location=no, directories=no, status=no resizable=yes, scrollbars=yes');</script>");
///////////////////
Now, when i m doing it in my development machine everything works fine, but i have uploaded it to my development server and running through virtual directory.
what i observed is .. the acrobat file is displayed but in restored mode and i want to maximize this window but can not , because the maximize button is disabled. rest of the buttons are ok...
could u please guide me..
thanks,
hemant
By:
Hemant Thaker
|
|
|
|
|
Try:
maximize=yes
or
resizeable=1
|
|
|
|
|
|
Why dont you use Repeater to draw this.
Repeater can draw any html on the screen.
Use Nested Repeater to do this job.
|
|
|
|
|
thanks for your reply..
Though I dont have an idea on repeater, I will learn it and get back to you..
thanks again
-----------------------------
I am a beginner
|
|
|
|
|
Most welcome...
|
|
|
|
|
Hi to All,
Since, I am not so familiar with all controls, Could anyone please help me out, in choosing the appropriate controls for the requirements.
I am planning to create an richUI site with good speed(data retrival)...more or less a Social Network site....
Now, before I go ahead, I need to decide what controls to use and what not, for the main design (say a master page)....
So, in order to put all the links on the left side, and whatever data will be changing (say, something like scrapbooks or msges in orkut.com) on the main page.....what controls i need to use....For the left side links, i can use the accordian control...But what about my main contents (scrapbook/mails/something else, which will be changing according to the links on the accordian control) on the side??...should I put those in a Update Panel or an Update panel inside an ContentPlaceHolder?....
What about dividing the whole page into a table?....put accordian into left side, panels into the contentplaceHolder...?....Problem may occur when i resize the page...
Please advice me for the same...
-----------------------------
I am a beginner
|
|
|
|
|
Use of lots of complex control means lots of javascript load and site becomes slow. Avoid using complex control. Tables render slow in client, you can also use ul /li to generate tables if they are used in fixed size.
Compress your output stream using GZip compression always.
|
|
|
|
|
Hi,
Is anyone using Open Flash Chart 2 in ASP.net
I am facing a problem that I wish to make the X axis lables vertical.
Please help. A demo or a source code would be very helpful.
Thanks in advance.
|
|
|
|
|
|
Not much of help, already visited the links but...
But thanks for help.
If you have anything more then plz post the link.
|
|
|
|
|
hi bros ,
I got an answer for my question "How to detect JRE in a client machine".I want to share it with you all.Here is the solution.
debugger;
//alert("versioncheck " + deployJava.versionCheck('1.6.0_10+'));
if (deployJava.versionCheck('1.6.0_10+') == false) {
userInput = confirm("You need the latest Java(TM) Runtime Environment. Would you like to install now?");
if (userInput == true) {
deployJava.returnPage = location.href;
deployJava.installLatestJRE();
}
}
It is working fine with IE, Mozilla nd opera.But failed with Safari!!!! .Is there any way to make it work on Safari ?.Also I tried to debug Javascript in Safari...But degugging is not working there.I tried it again by changing its setting , but still I can not debug it in Safari.Is there any way to debug and make the above script work in Safari..
With Warm Regards
|
|
|
|
|
wow.. nice to hear this from you. It was unknown to me. I have seen the script... and it seems they did some code to work with safari as well..
Can you specify what error you are getting for safari. I think it should be working on safari as well.
|
|
|
|
|
There is nothing like error bro. deployJava.versionCheck('1.6.0_10+') returns true in safari..thats the problem
|
|
|
|
|
Subin Mavunkal wrote: deployJava.versionCheck('1.6.0_10+') returns true in safari
And you dont have JRE 1.6.0 installed ?
|
|
|
|
|
Yes ,
I dont have JRE in my VPC.It must be false..
|
|
|
|
|
hi..
I m using following function for mailing functionality.
using System.Net.Mail; // for mailing functionalities
private void SendMailToUser()
{
/* Sending Email To Users About Registration Confirmation --START*/
System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage();
string toMail = txtEmail.Text.Trim();
message.To.Add(toMail);
message.Subject = "bla_bla - Registration Confirmation";
message.From = new System.Net.Mail.MailAddress("bla.admin@gmail.com");
string MainBody = "Dear " + txtFName.Text.ToString() + "," + "\r\n";
MainBody = MainBody + "Thank you for registering in bla.com " + "\r\n<br/>";
MainBody = MainBody + "http://www.bla.com" + "\r\n<br/><br/><br/>";
message.BodyEncoding = System.Text.Encoding.GetEncoding("utf-8");
System.Net.Mail.AlternateView plainView = System.Net.Mail.AlternateView.CreateAlternateViewFromString
(System.Text.RegularExpressions.Regex.Replace(MainBody, @"<(.|\n)*?>", string.Empty), null, "text/plain");
System.Net.Mail.AlternateView htmlView = System.Net.Mail.AlternateView.CreateAlternateViewFromString(MainBody, null, "text/html");
message.AlternateViews.Add(plainView);
message.AlternateViews.Add(htmlView);
System.Net.NetworkCredential cred = new System.Net.NetworkCredential("bla.admin@gmail.com", "admin1234");
System.Net.Mail.SmtpClient smtp = new System.Net.Mail.SmtpClient("smtp.gmail.com");
smtp.UseDefaultCredentials = false;
smtp.EnableSsl = true;
smtp.Credentials = cred;
smtp.Port = 587;
message.Body = MainBody;
smtp.Send(message);
message.Priority = MailPriority.High;
/* Sending Email To Users About Confirmation --END*/
}
/////////////////////////////
Now this was ok when i m using gmail service for sending mail from my application,
But i want to use my domain's mail a/c for sending email, but it does not work, gives failure .
can u tell me what changes do i need to make... say my domain is bla.com.
And my email id is "customerservice@bla.com".
thanks
hemant
By:
Hemant Thaker
|
|
|
|
|
Hemant Thaker wrote: gives failure .
What is the error message?
Best wishes,
Navaneeth
|
|
|
|