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
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
<pre><asp:ContentID="Content1"ContentPlaceHolderID="MPHead"Runat="Server"></asp:Content><asp:ContentID="Content2"ContentPlaceHolderID="MPContent"Runat="Server"><asp:TextBoxID="lname"runat="server"></asp:TextBox><asp:TextBoxID="fname"runat="server"></asp:TextBox><asp:TextBoxID="mname"runat="server"></asp:TextBox><asp:GridViewID="GridViewSupport"runat="server"AutoGenerateColumns="False"DataSourceID="sqlCampusOPS"Width="987px"><Columns><asp:BoundFieldDataField="lastName"HeaderText="Last Name"SortExpression="lastName"/><asp:BoundFieldDataField="firstName"HeaderText="First Name"SortExpression="firstName"/><asp:BoundFieldDataField="middleName"HeaderText="Middle Name"SortExpression="middleName"/><asp:BoundFieldDataField="suffix"HeaderText="Suffix"SortExpression="suffix"/><asp:BoundFieldDataField="userid"HeaderText="User Id"SortExpression="userid"/><asp:BoundFieldDataField="schoolnum"HeaderText="School Number"SortExpression="schoolnum"/><asp:BoundFieldDataField="spa"HeaderText="SPA"SortExpression="spa"/><asp:BoundFieldDataField="mrref"HeaderText="M Ref"SortExpression="mrref"/></Columns></asp:GridView><asp:SqlDataSourceID="sqlCampusOPS"runat="server"ConnectionString="<%$ ConnectionStrings:sqlCampusOPS %>"SelectCommand="SELECT i.[lastName]
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:ControlParameterControlID="lname"Name="lname"PropertyName="Text"/><asp:ControlParameterControlID="fname"Name="fname"PropertyName="Text"/><asp:ControlParameterControlID="mname"Name="mname"PropertyName="Text"/></SelectParameters></asp:SqlDataSource></asp:Content>
I want to make website can add / update / delete content file text (.txt).
Not really understand how microcontroller rules out web server...
You may use node.js as a solution, but in any case your description of problem is unclear...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
We developed one of the application using MVC3 framework and it is successful project. Now we are going to develop a new project with the latest Microsoft web technologies. This new project need to be scalable and efficient ,so that we can extend it as SaaS application. We are thinking of using MVC3 but we also need to look at other framework that fits our new project. Before starting a new project I need to evaluate Microsoft latest web framework.
So, do you have any suggestions for any web UI framework available?
I wanted to use Require Js in one of my projects. May I know if anyone could tell me if it would be a wise approach or not?
I have least idea on RequireJs. So would like to learn, so if possible please suggest some links.