Click here to Skip to main content
15,891,633 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: I have thousands of user who are accessing my site, How should I handle a load ? Pin
deepankarbhatnagar23-Aug-16 0:20
professionaldeepankarbhatnagar23-Aug-16 0:20 
GeneralRe: I have thousands of user who are accessing my site, How should I handle a load ? Pin
Abhijit Mindcraft23-Aug-16 0:48
Abhijit Mindcraft23-Aug-16 0:48 
GeneralRe: I have thousands of user who are accessing my site, How should I handle a load ? Pin
deepankarbhatnagar23-Aug-16 3:43
professionaldeepankarbhatnagar23-Aug-16 3:43 
GeneralRe: I have thousands of user who are accessing my site, How should I handle a load ? Pin
Abhijit Mindcraft23-Aug-16 20:45
Abhijit Mindcraft23-Aug-16 20:45 
GeneralRe: I have thousands of user who are accessing my site, How should I handle a load ? Pin
jkirkerx25-Aug-16 9:20
professionaljkirkerx25-Aug-16 9:20 
Questionadd data to more table relation in same time Pin
ahmed_sa20-Aug-16 12:05
ahmed_sa20-Aug-16 12:05 
AnswerRe: add data to more table relation in same time Pin
ahmed_sa21-Aug-16 5:11
ahmed_sa21-Aug-16 5:11 
Questionweb form message using master pages message and/or JavaScript message Pin
dcof18-Aug-16 12:07
dcof18-Aug-16 12:07 
In a vb.net 2010 web form application, I want to display a message to the user when a student has more than one record in the database for the current school year. The database problem is caused by a user not entering the data correctly using vendor software. The user can fix the problem by using the vendor software. The database problem is only allowed to be updated by the user by using the vendor software.

My goal is to generate the message to be displayed in the same format in the two locations where this message needs to be displayed.
**Note: I can not change the locations of where the error messages need to be generated without needing to do a major rewrite of the application.

I would prefer for the javacript code to be able to place the message in _master.ErrorMessage of the master page.
However my second choice would be for the vb.net 2010 web form code to be able to generate the javacript alert message.

The following 2 places is the code that I know works right now:

1. The following is vb.net 2010 web form code using the error message in the Mater Pages:
 If (gvAttendanceLetters.DataKeys(0).Values(3) = "999") Then
        _master.Visible = True
       _master.ErrorMessage = "You have entered more the one  record for the current school year for the student you selected "
End If

2. The following is javacript code that is placed at the start of the default.aspx page:
function GetStudentLetterTemplate(scyear, scnum, milestone, studentnum) {
     if (milestone == '999') {
         alert('You have entered more the one  record for the current school year for the student you selected ');

     }

     });

 }

Thus would you me tell me what option would work along with the code that will solve the problem? If the code needs to stay the way,
I listed above just let me know.
AnswerRe: web form message using master pages message and/or JavaScript message Pin
John C Rayan19-Aug-16 2:24
professionalJohn C Rayan19-Aug-16 2:24 
GeneralRe: web form message using master pages message and/or JavaScript message Pin
dcof19-Aug-16 9:30
dcof19-Aug-16 9:30 
GeneralRe: web form message using master pages message and/or JavaScript message Pin
John C Rayan21-Aug-16 22:16
professionalJohn C Rayan21-Aug-16 22:16 
Questionweb form using javacript Pin
dcof17-Aug-16 16:16
dcof17-Aug-16 16:16 
AnswerRe: web form using javacript Pin
Peter Leow17-Aug-16 16:49
professionalPeter Leow17-Aug-16 16:49 
AnswerRe: web form using javacript Pin
F-ES Sitecore17-Aug-16 22:48
professionalF-ES Sitecore17-Aug-16 22:48 
RantRe: web form using javacript Pin
Richard Deeming18-Aug-16 1:48
mveRichard Deeming18-Aug-16 1:48 
GeneralRe: web form using javacript Pin
Richard MacCutchan18-Aug-16 2:34
mveRichard MacCutchan18-Aug-16 2:34 
AnswerRe: web form using javacript Pin
Richard MacCutchan18-Aug-16 2:32
mveRichard MacCutchan18-Aug-16 2:32 
QuestionHow to create a Join, or place a datatable within a datatable for ReportViewer Pin
jkirkerx17-Aug-16 7:38
professionaljkirkerx17-Aug-16 7:38 
Questionhow to encrypt and decrypt the file through pkcs Pin
Member 1268779015-Aug-16 23:42
Member 1268779015-Aug-16 23:42 
AnswerRe: how to encrypt and decrypt the file through pkcs Pin
Kornfeld Eliyahu Peter16-Aug-16 2:25
professionalKornfeld Eliyahu Peter16-Aug-16 2:25 
QuestionVS2012 cannot open MVC4 application - the system cannot find the file specified (exception from HRESULT 0x80070002) Pin
Usman ali15-Aug-16 19:37
Usman ali15-Aug-16 19:37 
SuggestionRe: VS2012 cannot open MVC4 application - the system cannot find the file specified (exception from HRESULT 0x80070002) Pin
Richard MacCutchan15-Aug-16 21:28
mveRichard MacCutchan15-Aug-16 21:28 
GeneralRe: VS2012 cannot open MVC4 application - the system cannot find the file specified (exception from HRESULT 0x80070002) Pin
Usman ali15-Aug-16 21:57
Usman ali15-Aug-16 21:57 
GeneralRe: VS2012 cannot open MVC4 application - the system cannot find the file specified (exception from HRESULT 0x80070002) Pin
Richard MacCutchan15-Aug-16 22:37
mveRichard MacCutchan15-Aug-16 22:37 
GeneralRe: VS2012 cannot open MVC4 application - the system cannot find the file specified (exception from HRESULT 0x80070002) Pin
Kornfeld Eliyahu Peter16-Aug-16 0:29
professionalKornfeld Eliyahu Peter16-Aug-16 0:29 

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.