Click here to Skip to main content
15,906,081 members
Home / Discussions / Web Development
   

Web Development

 
QuestionGet Page Markup Pin
ASPnoob8-Oct-14 14:14
ASPnoob8-Oct-14 14:14 
AnswerRe: Get Page Markup Pin
Graham Breach8-Oct-14 22:25
Graham Breach8-Oct-14 22:25 
QuestionIssue while using MSSOAPINIT method of SOAP Object in .ASP Pin
DibenduC7-Oct-14 23:39
DibenduC7-Oct-14 23:39 
QuestionSending mail from a webpage using servlet Pin
Meghamaalaa7-Oct-14 1:51
Meghamaalaa7-Oct-14 1:51 
QuestionWierd issue with responsive layout - CSS Pin
Member 111144085-Oct-14 8:50
Member 111144085-Oct-14 8:50 
AnswerRe: Wierd issue with responsive layout - CSS Pin
Member 111144085-Oct-14 11:56
Member 111144085-Oct-14 11:56 
QuestionHow can i Post Radio Button List with Dynamic names to controller Pin
Mujtaba 103885433-Oct-14 20:24
professionalMujtaba 103885433-Oct-14 20:24 
Questionhelp w/js Pin
Charlie Kirk26-Sep-14 15:08
Charlie Kirk26-Sep-14 15:08 
SuggestionRe: help w/js Pin
Kornfeld Eliyahu Peter28-Sep-14 1:40
professionalKornfeld Eliyahu Peter28-Sep-14 1:40 
AnswerRe: help w/js Pin
Charlie Kirk6-Oct-14 15:01
Charlie Kirk6-Oct-14 15:01 
Questionmysqli truncate Pin
Charlie Kirk26-Sep-14 15:02
Charlie Kirk26-Sep-14 15:02 
AnswerRe: mysqli truncate Pin
Kornfeld Eliyahu Peter28-Sep-14 1:39
professionalKornfeld Eliyahu Peter28-Sep-14 1:39 
Questioncontinuously scroll multiple pictures on a web page using c# and html Pin
Mike Margolius24-Sep-14 8:20
professionalMike Margolius24-Sep-14 8:20 
AnswerRe: continuously scroll multiple pictures on a web page using c# and html Pin
Ali Al Omairi(Abu AlHassan)24-Sep-14 8:57
professionalAli Al Omairi(Abu AlHassan)24-Sep-14 8:57 
GeneralRe: continuously scroll multiple pictures on a web page using c# and html Pin
Mike Margolius24-Sep-14 9:33
professionalMike Margolius24-Sep-14 9:33 
GeneralRe: continuously scroll multiple pictures on a web page using c# and html Pin
Ali Al Omairi(Abu AlHassan)28-Sep-14 0:49
professionalAli Al Omairi(Abu AlHassan)28-Sep-14 0:49 
AnswerRe: continuously scroll multiple pictures on a web page using c# and html Pin
Richard Deeming24-Sep-14 12:19
mveRichard Deeming24-Sep-14 12:19 
Questionopacity inheritance Pin
Ali Al Omairi(Abu AlHassan)24-Sep-14 1:20
professionalAli Al Omairi(Abu AlHassan)24-Sep-14 1:20 
Questionreload data into gridview control based upon user selection criteria Pin
dcof21-Sep-14 14:42
dcof21-Sep-14 14:42 
XML
In a vb.net 2010 web form application, the folllowing gridview control is loaded with data and 3

textboxes are displayed when the aspx page first loads. Now I want to allow the user to be able

to enter last name, first name, and/or middle name so they can search for 'selected' people by

name. This way less rows would be displayed in the gridview control

I would like to do one of the following options:
1. Have the user enter the appropriate name in up to 3 texboxes and click on a submit button. The

data would be reloaded into the gridview control displaying only the records the user selected to

view.
2. The other option would be if the user enters values in the applicable textboxes and the

gridview control would display the selected rows in the gridview control when the focus is lost

from each textbox.

Thus would you show me the code on how to accomplish this goal? The following is the applicable
aspx page:
<pre>
<asp:Content ID="Content1" ContentPlaceHolderID="MPHead" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MPContent" Runat="Server">

    <asp:TextBox ID="lname" runat="server"></asp:TextBox>
     <asp:TextBox ID="fname" runat="server"></asp:TextBox>
    <asp:TextBox ID="mname" runat="server"></asp:TextBox>
    <asp:GridView ID="GridViewSupport" runat="server" AutoGenerateColumns="False"
        DataSourceID="sqlCampusOPS" Width="987px">
        <Columns>
            <asp:BoundField DataField="lastName" HeaderText="Last Name"
                SortExpression="lastName" />
            <asp:BoundField DataField="firstName" HeaderText="First Name"
                SortExpression="firstName" />
            <asp:BoundField DataField="middleName" HeaderText="Middle Name"
                SortExpression="middleName" />
            <asp:BoundField DataField="suffix" HeaderText="Suffix"
                SortExpression="suffix" />
            <asp:BoundField DataField="userid" HeaderText="User Id"
                SortExpression="userid" />
            <asp:BoundField DataField="schoolnum" HeaderText="School Number"
                SortExpression="schoolnum" />
            <asp:BoundField DataField="spa" HeaderText="SPA" SortExpression="spa" />
            <asp:BoundField DataField="mrref" HeaderText="M Ref" SortExpression="mrref" />
        </Columns>
    </asp:GridView>


    <asp:SqlDataSource ID="sqlCampusOPS" runat="server"
    ConnectionString="<%$ ConnectionStrings:sqlCampusOPS %>" SelectCommand="SELECT i.[lastName]
            ,i.[firstName]
            ,i.[middleName]
            ,i.[suffix]
            ,a.[userid]
            ,a.schoolnum
            ,a.spa
            ,a.mrref
            from [OPS].[dbo].[Identity] i
            inner join  [OPS].[dbo].[Person] p on i.identityID = p.currentIdentityID
            inner join [OPS].[dbo].[UserAccount] u on u.personID = p.personID
            inner join [CampusOps].[dbo].[AtnLtrUsers] a on a.userid =u.username
              where (i.[lastName] like  '%' + @lname  + '%' or
               i.[firstName] like'%' + @fname + '%'
                   or i.[middleName]  like'%' + @mname + '%')
    or (@fname is null and @lname is null and @mname is null)
          order by  i.[lastName], i.[firstName], i.[middleName]"

CancelSelectOnNullParameter="False">
    <SelectParameters>
        <asp:ControlParameter ControlID="lname" Name="lname" PropertyName="Text" />
        <asp:ControlParameter ControlID="fname" Name="fname" PropertyName="Text" />
        <asp:ControlParameter ControlID="mname" Name="mname" PropertyName="Text" />
    </SelectParameters>
</asp:SqlDataSource>
</asp:Content>

QuestionHow to add/update/delete content txt file? Pin
Member 1039071520-Sep-14 4:38
Member 1039071520-Sep-14 4:38 
AnswerRe: How to add/update/delete content txt file? Pin
Richard MacCutchan20-Sep-14 21:09
mveRichard MacCutchan20-Sep-14 21:09 
SuggestionRe: How to add/update/delete content txt file? Pin
Kornfeld Eliyahu Peter20-Sep-14 22:14
professionalKornfeld Eliyahu Peter20-Sep-14 22:14 
Questionhow c++ client calls the js function which is in the firefox extension Pin
l3563319-Sep-14 0:51
l3563319-Sep-14 0:51 
QuestionAny latest UI framework Pin
npatel1234518-Sep-14 7:05
npatel1234518-Sep-14 7:05 
AnswerRe: Any latest UI framework Pin
pitechindore18-Dec-14 0:05
pitechindore18-Dec-14 0:05 

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.