Click here to Skip to main content
16,008,183 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: compare string with a list of strings Pin
Member 1178145518-Sep-16 20:17
Member 1178145518-Sep-16 20:17 
GeneralRe: compare string with a list of strings Pin
ZurdoDev19-Sep-16 0:39
professionalZurdoDev19-Sep-16 0:39 
Questionado.net Pin
subbaahrao30-Aug-16 19:23
subbaahrao30-Aug-16 19:23 
AnswerRe: ado.net Pin
Richard MacCutchan30-Aug-16 21:03
mveRichard MacCutchan30-Aug-16 21:03 
AnswerRe: ado.net Pin
ZurdoDev6-Sep-16 8:34
professionalZurdoDev6-Sep-16 8:34 
QuestionAjax error handling logic Pin
dcof27-Aug-16 7:29
dcof27-Aug-16 7:29 
GeneralRe: Ajax error handling logic Pin
Richard MacCutchan27-Aug-16 20:33
mveRichard MacCutchan27-Aug-16 20:33 
GeneralRe: Ajax error handling logic Pin
dcof29-Aug-16 6:17
dcof29-Aug-16 6:17 
GeneralRe: Ajax error handling logic Pin
Richard MacCutchan29-Aug-16 6:28
mveRichard MacCutchan29-Aug-16 6:28 
AnswerRe: Ajax error handling logic Pin
Nathan Minier29-Aug-16 1:40
professionalNathan Minier29-Aug-16 1:40 
AnswerRe: Ajax error handling logic Pin
2374131-Aug-16 14:44
2374131-Aug-16 14:44 
GeneralRe: Ajax error handling logic Pin
Nathan Minier1-Sep-16 1:01
professionalNathan Minier1-Sep-16 1:01 
GeneralRe: Ajax error handling logic Pin
237411-Sep-16 6:17
237411-Sep-16 6:17 
GeneralRe: Ajax error handling logic Pin
Nathan Minier1-Sep-16 8:25
professionalNathan Minier1-Sep-16 8:25 
Questionerror message on master page Pin
classy_dog27-Aug-16 4:03
classy_dog27-Aug-16 4:03 
AnswerRe: error message on master page Pin
jkirkerx29-Aug-16 10:40
professionaljkirkerx29-Aug-16 10:40 
Questionajax call to shared (static) mehtod Pin
classy_dog27-Aug-16 3:45
classy_dog27-Aug-16 3:45 
AnswerRe: ajax call to shared (static) mehtod Pin
jkirkerx29-Aug-16 10:15
professionaljkirkerx29-Aug-16 10:15 
Questionasp.net javascript issue Pin
Member 1178145525-Aug-16 5:36
Member 1178145525-Aug-16 5:36 
AnswerRe: asp.net javascript issue Pin
jkirkerx25-Aug-16 9:13
professionaljkirkerx25-Aug-16 9:13 
GeneralRe: asp.net javascript issue Pin
Member 1178145525-Aug-16 18:00
Member 1178145525-Aug-16 18:00 
QuestionWhich Property of Grid View would help me? Pin
Usman ali24-Aug-16 22:31
Usman ali24-Aug-16 22:31 
AnswerRe: Which Property of Grid View would help me? Pin
Richard Deeming25-Aug-16 2:11
mveRichard Deeming25-Aug-16 2:11 
Questionweb form gridview control Pin
dcof23-Aug-16 7:08
dcof23-Aug-16 7:08 
In a vb.net 2010 web form application, there is the following line of code in a
gridview control.
<asp:TemplateField HeaderText="Student Name" ItemStyle-HorizontalAlign="Center" 
ItemStyle-CssClass="ui-widget-content" > 
                                <ItemTemplate > 
                                    <a href="javascript: 
GetStudentLetterTemplate('<%# Eval("schoolyear") %>', '<%# Eval("schoolnum") 
%>', '<%# Eval("milestone_code") %>', '<%# Eval("stulink") %>', '<%# 
Eval("HOMELNGCOR") %>', '<%# Eval("semester") %>');" 
style="color:Blue"><%#Eval("STUDENTNAME")%></a> 
                                </ItemTemplate> 
                            </asp:TemplateField> 

When the user clicks on this link, the user is directed to some javascript code
called GetStudentLetterTemplate.


Once in the javascript function, I want to display an error message to the user
saying basically saying there is duplicate data in the database. I want to then
want the function to 'return' so no processing by the user can occur. Note: the
duplicate data is created by the user by them using vendor software that I have
no control over.


The sql that I want to use is something like the following:
 #Region "Public Shared Function GetDupScoolYear"
<WebMethod()> _
Public Shared Function GetDupScoolYear() As DataTable
    Dim _dt As DataTable = New DataTable()

    Dim Query As String = "SELECT [personID],value, count(*) as Count FROM
   [t].[dbo].[CustomStudent] where attributeID = 2775 and [personID] = 97366 group
   by [personID],value"
    Using con As SqlConnection = DB.OpenConnection()
        Using da As SqlDataAdapter = New SqlDataAdapter(Query, con)

            Try
                da.Fill(_dt)
            Catch ex As Exception

            End Try

        End Using
        End Using
       Return _dt
     End Function
   #End Region

Thus can you tell me or show me what I can do to solve the problem? Is there
possibly someway that I could call the code I listed above or similar code
before the java script code is called?


Basically would you tell me what I can do to solve this issue?

modified 23-Aug-16 22:22pm.

QuestionI have thousands of user who are accessing my site, How should I handle a load ? Pin
Abhijit Mindcraft22-Aug-16 22:57
Abhijit Mindcraft22-Aug-16 22:57 

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.