Click here to Skip to main content
15,881,172 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionI want to update users table according to ıd value Pin
Member 1064949510-Jun-19 11:38
Member 1064949510-Jun-19 11:38 
SuggestionRe: I want to update users table according to ıd value Pin
Richard Deeming11-Jun-19 1:16
mveRichard Deeming11-Jun-19 1:16 
QuestionHow to use treeView to save the directory tree into the SQL Server database ? Pin
Member 24584679-Jun-19 16:27
Member 24584679-Jun-19 16:27 
AnswerRe: How to use treeView to save the directory tree into the SQL Server database ? Pin
Richard MacCutchan9-Jun-19 21:49
mveRichard MacCutchan9-Jun-19 21:49 
QuestionMysterious ADFS problem Pin
Super Lloyd5-Jun-19 21:19
Super Lloyd5-Jun-19 21:19 
Questionweb form needs to be used for several languages Pin
dcof2-Jun-19 19:46
dcof2-Jun-19 19:46 
AnswerRe: web form needs to be used for several languages Pin
F-ES Sitecore3-Jun-19 1:00
professionalF-ES Sitecore3-Jun-19 1:00 
Question(SOLVED) Is it possible to raise an error on filename that resides on the server? Pin
samflex29-May-19 4:36
samflex29-May-19 4:36 
Greetings again expoerts.

The code below was generously provided by the great Richard Deeming.

sp:HyperLinkField 

    DataNavigateUrlFields="filename, servername"

    DataNavigateUrlFormatString="http://Archive/{1}/play_recording_wav.aspx?filename=noop_{0}.wav"


It concatenates fieldnames with hardcoded values to allow audio files saved on the server to be played.

For instance, Archive is hardcoded. So is noop and .wav.

However, {1} and {0} are database fieldnames (filename, servername)

The issue we are currently having now is that values for filename exist for all records in the database.

However, some of the filenames on the server do not exist.

For instance, let's say we have V0000YT as value for filename on the database, that same V00YT which is an audio file, does not exist on the server.

As a result, when you load that record on the browser and click Listen, you get "page cannot be displayed" error.

If I designed the database, I would have added a flag with a value of Yes or No.
Yes, if filename on the database has an associated audio file on the server.

No, if there is no associated audio file on the server.

Management has asked to disable the Listen link if there is no audio file on the serer is associated with a filename on the database.

I told him this is not possible.

Am I right?

Thanks very much in advance

modified 31-May-19 10:33am.

AnswerRe: Is it possible to raise an error on filename that resides on the server? Pin
Richard Deeming29-May-19 7:16
mveRichard Deeming29-May-19 7:16 
GeneralRe: Is it possible to raise an error on filename that resides on the server? Pin
samflex29-May-19 9:18
samflex29-May-19 9:18 
GeneralRe: Is it possible to raise an error on filename that resides on the server? Pin
Richard Deeming30-May-19 0:16
mveRichard Deeming30-May-19 0:16 
GeneralRe: Is it possible to raise an error on filename that resides on the server? Pin
samflex30-May-19 4:00
samflex30-May-19 4:00 
GeneralRe: Is it possible to raise an error on filename that resides on the server? Pin
Richard Deeming30-May-19 7:31
mveRichard Deeming30-May-19 7:31 
GeneralRe: Is it possible to raise an error on filename that resides on the server? Pin
samflex31-May-19 3:17
samflex31-May-19 3:17 
GeneralRe: Is it possible to raise an error on filename that resides on the server? Pin
Richard Deeming31-May-19 3:26
mveRichard Deeming31-May-19 3:26 
GeneralRe: Is it possible to raise an error on filename that resides on the server? Pin
samflex31-May-19 3:42
samflex31-May-19 3:42 
GeneralRe: Is it possible to raise an error on filename that resides on the server? Pin
Richard Deeming31-May-19 3:50
mveRichard Deeming31-May-19 3:50 
GeneralRe: Is it possible to raise an error on filename that resides on the server? Pin
samflex31-May-19 4:19
samflex31-May-19 4:19 
GeneralRe: Is it possible to raise an error on filename that resides on the server? Pin
Richard Deeming31-May-19 4:33
mveRichard Deeming31-May-19 4:33 
GeneralRe: Is it possible to raise an error on filename that resides on the server? Pin
samflex31-May-19 4:36
samflex31-May-19 4:36 
GeneralRe: Is it possible to raise an error on filename that resides on the server? Pin
Richard Deeming31-May-19 5:19
mveRichard Deeming31-May-19 5:19 
GeneralRe: Is it possible to raise an error on filename that resides on the server? Pin
samflex31-May-19 6:07
samflex31-May-19 6:07 
GeneralRe: Is it possible to raise an error on filename that resides on the server? Pin
Richard Deeming31-May-19 6:20
mveRichard Deeming31-May-19 6:20 
GeneralRe: Is it possible to raise an error on filename that resides on the server? Pin
samflex31-May-19 6:29
samflex31-May-19 6:29 
QuestionHTTP Error 502.5 - Process Failure while publishing ASP.Net Core 2.1 Pin
meeram3927-May-19 20:45
professionalmeeram3927-May-19 20:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.