|
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
|
|
|
|
|
Yes I found that exe and I ran it and I have selected all the defaults and then finished but still it's same error
waiting for your kind rep.
have a nice day
|
|
|
|
|
Did you check my answer ? If yes which database did you select on that wizards ? Did you given the same databases at connection string? Even try with a new application !!!
cheers,
Abhijit
|
|
|
|
|
as i said i have seleted all the defaults, and at this time i dont have any database in my application
waiting for your kind rep.
|
|
|
|
|
Did you read This[^] , Link that I have already provided to you.
This will clears your doubts !!
cheers,
Abhijit
|
|
|
|
|
thanks again
yes i have read it but i am using VWD express 2005 edition so there is no command prompt so i have drill down to the exe. file and just double clicked it and wizard started and i have seleted all the defauls but still i dont know what to do
waiting for your rep.
have a nice day
|
|
|
|
|
Ohhh... Soryy about that.... that's not from command prompt. you have to run for Framework dir
C:\%windir%\Microsoft.NET\Framework\<versionnumber>\aspnet_regsql.exe</versionnumber>
When you run that command, In first screen , do nothing , Next -> in second screen Give the database server name and Authentication Settings and Select Database from database list [ Create a new database first then Select that one ] . Then Next , Then Finished .
That's All !!!
Hurry up man !!! Its Times for !!!
cheers,
Abhijit
|
|
|
|
|
Hello sir
I have created new database from SQL SERVER 2005 EXPRESS (Test database)and then start that wizard and then select Test database from listbox and then finish but my friend still it's same error
waiting for your kind rep.
I know it's time to beer 
|
|
|
|
|
In my system, I am having VS Prof and SQL Server Ent. Edition. I have just create sample application, its working fine !!!!
Are you trying with same application ? or have made a new after the database installation. What about the connection string !!!
Ref1[^]
Ref2[^]
Merry XMAS
Still Hanging in Office .... Still some pending task..... but
I have to sign off very soon !!!!
cheers ![Beer | [beer]](https://codeproject.global.ssl.fastly.net/script/Forums/Images/beer.gif) ,
Abhijit
|
|
|
|
|
hello thanks for your rep.
yes i have tried with different application and which connection string? because there is no database in this application so could you please tell me about this if you have time today othervise 2more no problem
have a nice x-mas and new year to you
thanks for your help I will keep trying today but if i have same problem then i will let you know 2more is that ok with you
waiting for your kind rep.
|
|
|
|
|
yes sure.. 2morrow . Just signed off.. Enjoy Christmas !!!
cheers ![Beer | [beer]](https://codeproject.global.ssl.fastly.net/script/Forums/Images/beer.gif) ,
Abhijit
|
|
|
|
|
Hi,
I have a trusted site (https), and I am trying to open the attachment through
window.open('https://IPAddress/VirtualDirectiory/SomeFileName.txt');
This is not happening. But when I try with "http" I am able to open.
Any one help me in this.
|
|
|
|
|
Member 1950809 wrote: This is not happening.
Then what is happening ? are you getting any error ?
cheers,
Abhijit
|
|
|
|
|
Maybe the popup opens and closes immediately, Explorer's download warning may couse this. try to change the settings in explorer security section Automatic propmpt for downloads to enabled. Or try to add http site as trusted. Lets see if the problem continues.
|
|
|
|