I want to execute the file on the server not on the client machine, but hen i click on the button from client machine it gives file not found error(i think it is looking for the file in the client machine, which is not my need. It should excute on the server. . And i have setup for intranet.
PublicFunction GetMaxSerialNumber(ByVal docType) AsInt32Dim db As Database = DatabaseFactory.CreateDatabase("igrwebConnectionString")
Dim sqlCommand AsString = SP_UPDATE_DOCUMENTDETAILS
Dim dbCommand As DbCommand = db.GetStoredProcCommand(sqlCommand)
db.AddInParameter(dbCommand, "@operationType", DbType.String, "R")
db.AddInParameter(dbCommand, "@cType", DbType.Int64, docType)
Dim SrNo AsInteger = db.ExecuteScalar(dbCommand)
Return SrNo + 1EndFunction
The above code is giving an exception at db.ExecuteScalar(dbCommand)
ExecuteScalar requires the command to have a transaction when the connection assigned to the command is in a pending local transaction. The Transaction property of the command has not been initialized.
I want to show a video to the clients, the video is on youtube but youtube website is blocked in some countries.What should I do to make those people able to watch the video.Do I have to consider two different links one for youtube and one for another website?
Is there any code that can identify the video would n't be displayed for some certain users and automatically direct the user to another website?