|
Hi to all,
I created a method outside the page_load.
Now I want the value of that variable which is defined in the method, in Page_load.
thanks.....
|
|
|
|
|
either make that Variable Global .....or store it in some Hidden Field
|
|
|
|
|
if you are trying to get value in same request then declare member as class level. if you are trying to get value after postbacks try using viewstate.
|
|
|
|
|
|
I hv attached the code
window.open(urlstring,'ReportSearch','height=480,width=640,titlebar=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,directories=no,status=no');
i hv called the code in the button click
|
|
|
|
|
Please Don't Cross Post
cheers,
Abhijit
|
|
|
|
|
I am using asp.net 2005 and crystal report 10.2 version , my problem is when the report opens it is opened behind the main screen .
In my java script i am using window.open() only still it opened back to the main screen . Can any one help me.
|
|
|
|
|
Can you please put the line of code that you have used for opening reports ?
Thanks in advance !!
cheers,
Abhijit
|
|
|
|
|
thank u for the reply
This is the code i hv used to open the report
window.open(urlstring,'ReportSearch','height=480,width=640,titlebar=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,directories=no,status=no');
i hv called it in the button click
|
|
|
|
|
Just try this,
var CrysWind=window.open(---what ever you have written---)<br />
CrysWind.focus()<br />
cheers,
Abhijit
|
|
|
|
|
already i hv tried this but it didnt works for me .
|
|
|
|
|
is it working fine when you use default popup means, with tool bar, menu bar.
cheers,
Abhijit
|
|
|
|
|
No it didnt work . Is there any other solution for this problem
|
|
|
|
|
Hi all,
I am getting following exception when i send Email.Please help.
FailureSystem.Net.Mail.SmtpException: Failure sending mail. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:25 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 Compose.SendButton_Click(Object sender, EventArgs e) in c:\Users\kavitha\Documents\Visual Studio 2008\WebSites\Message\Compose.aspx.cs:line 133
Thanks.
|
|
|
|
|
Fix your mail settings in your code to point to a real mail server and you will be fine.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
what happens when i use IP address: "127.0.0.1", port no 25.can You please explain me?
Thanks a lot
|
|
|
|
|
Look up what the IP Address 127.0.0.1 is and you will have your answer.
only two letters away from being an asset
|
|
|
|
|
you find out what happens when you copy code without understanding it, I guess. There's nothing wrong with googling for code, I spent the week doing that. But, once you find a snippet that says it will do what you want, you should read up and understand it so you can work on it if you need to.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi all,
I understand what my problem is.I think i need to find out smtp server which my company uses.I have used smtp.gmail.com along with my gmail credentials.It works fine.Thanks for all your suggestion.
Thanks.
|
|
|
|
|
Hi i am trying to count the number of button clicks in asp.net page.
i am declaring a global variable. so every time when page refreshes creating a new object..so count going to 0. So how can i save this value in the view state?
|
|
|
|
|
Hey i got the solution.. i have used cache concept.
in the page load event i have assigned some value to cache key like this
If(!Page.IsPostBack)
Cache["Count"] = 0;
then in the button click event i have casted this value to an integer and counting the button clciks. then after incrementing the value of i again assigning it to Cache Key.
Button Click Evet..
int i = (int)Cache["count"];
Label1.Text = i.ToString();
i++;
Cache["count"] = i;
|
|
|
|
|
Do want the same count for all user ? Why using Cache ? Why not session ? Cache data should be same for all user.
cheers ,
Abhijit
|
|
|
|
|
Hi this code is fine when i am using it in a simple webform
but when i am creating a web form with validators this code is neither giving any output nor showing any error messages.can u please help me on this?
|
|
|
|
|
Why not use Viewstate increment the value on ClickEvent of each button
|
|
|
|
|
Hello everyone,
I am doing my final year projects in ASP.NET .In my project i need to implement a fingerprint recognition system which identifies a particular user to access the website.
I have a toshiba laptop equipped with fingerprint reader. What software i must use to interface and capture the image so that i can use these for authentication purpose?
please correct me if i am wrong.
|
|
|
|