|
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.
|
|
|
|
|
|
Well, you can't do this in ASP.NET. You CAN perhaps do it with a java or .NET component that's embedded in an ASP.NET website.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
thank you for the link @ ToddHileHoffer
And thanks for the idea..first i will try to implement in ADO
|
|
|
|
|
hello
I am studying asp.net and I have one assignment to create small content management system still I am not getting any were but now I have used VWD help to find out about it but it's not the same thing i am looking for but I found WebPartManager control so I read that artical and then start droping controls on web page and follow all the instrutions but now I am getting this SQL Error and I have no idea where it comes from because there is not even a single sql database in this application at this stage but I am going to use it after getting that stage, on web form there is one WebPartManager control two WebPartZone but if i remove this two controls and then i try to run application then it runs without any problem and this is the error as bellow
Server Error in '/TestWebSite' Application.
--------------------------------------------------------------------------------
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
SQLExpress database file auto-creation error:
The connection string specifies a local Sql Server Express instance using a database location within the applications App_Data directory. The provider attempted to automatically create the application services database because the provider determined that the database does not exist. The following configuration requirements are necessary to successfully check for existence of the application services database and automatically create the application services database:
If the applications App_Data directory does not already exist, the web server account must have read and write access to the applications directory. This is necessary because the web server account will automatically create the App_Data directory if it does not already exist.
If the applications App_Data directory already exists, the web server account only requires read and write access to the applications App_Data directory. This is necessary because the web server account will attempt to verify that the Sql Server Express database already exists within the applications App_Data directory. Revoking read access on the App_Data directory from the web server account will prevent the provider from correctly determining if the Sql Server Express database already exists. This will cause an error when the provider attempts to create a duplicate of an already existing database. Write access is required because the web server accounts credentials are used when creating the new database.
Sql Server Express must be installed on the machine.
The process identity for the web server account must have a local user profile. See the readme document for details on how to create a local user profile for both machine and domain accounts.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)]
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +4844759
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +194
System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject) +4858065
System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) +90
System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) +376
System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +221
System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +189
System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +4859187
System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup) +29
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +4861516
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +117
System.Data.SqlClient.SqlConnection.Open() +122
System.Web.Management.SqlServices.GetSqlConnection(String server, String user, String password, Boolean trusted, String connectionString) +82
[HttpException (0x80004005): Unable to connect to SQL Server database.]
System.Web.Management.SqlServices.GetSqlConnection(String server, String user, String password, Boolean trusted, String connectionString) +137
System.Web.Management.SqlServices.SetupApplicationServices(String server, String user, String password, Boolean trusted, String connectionString, String database, String dbFileName, SqlFeatures features, Boolean install) +94
System.Web.Management.SqlServices.Install(String database, String dbFileName, String connectionString) +25
System.Web.DataAccess.SqlConnectionHelper.CreateMdfFile(String fullFileName, String dataDir, String connectionString) +395
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053
waiting for your kind rep.
have a nice day
|
|
|
|
|
Do you have SQL Server Express install in your system ? Web part used Personalization purpose and its need to data base to store user personalized data.
Introduction to Web Parts[^]
and
Read This[^]
cheers,
Abhijit
|
|
|
|
|
hello
thanks for your kind rep.
yes i have SQL SERVER EXPRESS installed on my computer and SQL SERVER it self is working ok
waiting for rep.
have a nice day
|
|
|
|
|
Did you run aspnet_regsql?
only two letters away from being an asset
|
|
|
|
|
Hello sir
Thanks for your rep.
what is it and how do i run it ?
waiting for your kind rep.
have a nice day
|
|
|
|
|
As I have already told you web parts need SQL Express to store personalized and membership information. This is
ASP.NET SQL Server Registration Tool (Aspnet_regsql.exe)
aspnet_regsql command is used to create all the tables and procedure for that membership and personalization information to that database.
You can Explore aspnet_regsql Here[^]
To Run
C:\%windir%\Microsoft.NET\Framework\<versionnumber>\aspnet_regsql.exe</versionnumber>
A wizerd will come , and you just follow the steps and then run your application with web parts !!!
let us know if any issue !!
cheers,
Abhijit
modified on Wednesday, December 24, 2008 10:22 AM
|
|
|
|
|