|
I have a registration form with a captach image.
Below the picture, I have included a javascript link to reload the page if the image is not clear. Nonetheless, when clicking on reload, all datas filled in the forms are lost.
What should I do to reload the page (and reload a new captcha picture) without loosing data in the forms?
I know it can't be done in javascript because it is a client-side script (and the captcha is a server-side script) but I though it could be possible to store data in javascript when the user click reload().
regards
saravanan
|
|
|
|
|
hi sarvanan
u can use the postback property...
like this
if not ispostback
displing ur data...
endif
happy programming
|
|
|
|
|
hi
it is not working
regards
saravanan
|
|
|
|
|
Hi
I have a problem in getting the value of selected date from a calendar.
My logic is something like this.....
I have a TextBox and a Button in the page.
When the Button is clicked a calendar object is created and calender is displayed on the page.
After that when I select a date from the Calendar it should display on the TextBox.
I am successful in getting the Calendar on the page but I am unable to get the SelectedDate on the TextBox.
Help me out.....
Thank u
Chandu
|
|
|
|
|
protected void Calendar1_SelectionChanged(object sender, EventArgs e)
{
TextBox1.Text = Calendar1.SelectedDate.ToString();
}
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
Thank u.
But I created Calendar1 on Button_Click event.
I wrote something like this.....
protected void Button_Click(object sender, EventArgs e)
{
Calendar calendar1 = new Calendar();
form1.Controls.Add(calender1);
}
In this their is no protected void Calendar1_SelectionChanged(object sender, EventArgs e) event.
What I have to dooooo.....
Thank u
Chandu
|
|
|
|
|
your approach is wrong.
Place the calendar control in design time
In page load just set the visible property as false -(ie hiding the calender)
when you click on button just change the visible property as true.
then my old code will work
Try it out
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
What is required to host asp.net pages that makes use of AJAX controls
t.aransiola
|
|
|
|
|
if it ASP.net 2.0 you need the dlls and the config setting in web.config file
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
If your talking about the Microsoft ASP.NET Ajax Extensions then they must be installed on the web server. Unless you can give your web app full trust, just having the DLLs in the bin folder won't work. If you mean another Ajax solution that isn't ASP.NET dependent then you don't need anything special, its just javascript files.
|
|
|
|
|
Hi,
i am having one website in which i am uploading images from file control and string the image in sql server 2000.
Now i want to diaplay that image on my webform how it is possible can u pls send me the code for this.
GIRISH
|
|
|
|
|
Hi,
We are not here to provide code but to resolve errors and problems in the code.
If u have written any code for this and is not working properly then paste your code we will help you to solve that.
By the way the following links may help you to have an idea to implement your functionality.
Link1[^]
Link2[^]
Link3[^]
Link4[^]
Link5[^]
Good Luck.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
Hi,
I think this link may help you
http://www.asp.net/downloads/starterkits/default.aspx?tabid=62
In it check the following two templates for code samples ...
1. Personal Web Site Starter Kit,
2. Club Web Site Starter Kit
~JJ
|
|
|
|
|
Hi,
I have a aspx page which contains two datagrids and this is working fine with IE but when I am runing this page on Mozilla the lower datagrid overlaps to the upper datagrid.
Can anyone suggest a solution for this.
Thanks in Advance
Alok....
|
|
|
|
|
set the location properly in CSS file for both controls without overlapping
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
Thanx Sylvester 4 ur kind help.
Alok...
|
|
|
|
|
I have a table of data in the aspx web page. I am
printing it in landscape paper (11 X 8.5 inches). If
the table has more columns which cannot fit in the
page, then last few columns will not be printed. Is
there any trick or workaround to print all the columns
in IE 6?
If it is not possible to fit all the columns
in one page width, then it should print the remaining
columns in another page.
any one plz help me plzzzzzzz...
Pradeep Reddy
|
|
|
|
|
hi pradeep reddy
u can do one thing set the table width to 100% so at the clients place the table will adjust to its resolution and try it...
devkranth
|
|
|
|
|
thank u...
Pradeep Reddy
|
|
|
|
|
hi friends
how to reload the picture with out refresing the page in javascript
regards
saravanan
|
|
|
|
|
Use setTimeout function and assign different images to the image control
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
Hi All,
I keep getting an exception whenever i try to send an email message in an asp.net 2.0 application: I am using smtpclient & I have the MailMessage code and credentials setup correctly.
****************************************************************************
Send failure: System.Net.Mail.SmtpException: Failure sending mail. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) --- End of inner exception stack trace --- at System.Net.ServicePoint.GetConnection(PooledStream PooledStream, Object owner, Boolean async, IPAddress& address, Socket& abortSocket, Socket& abortSocket6, Int32 timeout) at System.Net.PooledStream.Activate(Object owningObject, Boolean async, Int32 timeout, GeneralAsyncDelegate asyncCallback) at System.Net.PooledStream.Activate(Object owningObject, GeneralAsyncDelegate asyncCallback) at System.Net.ConnectionPool.GetConnection(Object owningObject, GeneralAsyncDelegate asyncCallback, Int32 creationTimeout) at System.Net.Mail.SmtpConnection.GetConnection(String host, Int32 port) at System.Net.Mail.SmtpTransport.GetConnection(String host, Int32 port) at System.Net.Mail.SmtpClient.GetConnection() at System.Net.Mail.SmtpClient.Send(MailMessage message) --- End of inner exception stack trace --- at System.Net.Mail.SmtpClient.Send(MailMessage message) at Default2.btnSubmit_Click(Object sender, EventArgs e) in c:\Documents and Settings\venki\My Documents\Visual Studio 2005\WebSites\RFQTest\Default2.aspx.cs:line 88Your mail has been sent
*****************************************************************************
Could anyone help me is it any problem with my internet connection? or Do i need to change my code??
Thanks in Advance!
|
|
|
|
|
Post the code you have written, that sends the email.
Steve Jowett
-------------------------
Sometimes a man who deserves to be looked down upon because he is a fool, is only despised only because he is an 'I.T. Consultant'
|
|
|
|
|
Here is my Code:::
protected void btnSubmit_Click(object sender, EventArgs e)
{
SmtpClient smtpClient = new SmtpClient();
MailMessage objMail = new MailMessage();
MailAddress objMail_Email = new MailAddress(lblEmail1.Text);
objMail.From = objMail_Email;
objMail.To.Add("toemail@.. .com");
objMail.Subject = "Form Submission";
objMail.Body = "<html><head><title></title></head><body>" + "<p>Company : " + lblCompany1.Text + "</p>" + "<p>Address : " + lblAddress1.Text + "</p>" + "<p> Telephone :" + lblTelephone1.Text + "</p>" + "<p> Fax :" + lblFax1.Text + "</p>" + "<p> Email : " + lblEmail1.Text + "</p>" + "<p>Comments : " + lblComments1.Text + "</p>" + "</body></html>";
objMail.Priority = MailPriority.High;
smtpClient.Host = "mail.domain.com";
smtpClient.Credentials = new System.Net.NetworkCredential("username@domain.com", "password");
try
{
smtpClient.EnableSsl = false;
smtpClient.Send(objMail);
}
catch (Exception exc)
{
Response.Write("Send failure: " + exc.ToString());
}
Response.Write("Your mail has been sent");
}
_____________
|
|
|
|
|
anyone please help me on my problem.............
|
|
|
|