I ve a list of string List<string> that have more than 100000 records. Now i want to search a particular string and their occurence it list. Is there is any buit in method that can perform dis job???
List has BinarySearch method but it retrun the index...
can anyone writing efficient algo of searching n counting no Occurrence in List of string
I have a CheckBoxList with a SelectedIndexChanged event, where I add the Value of the selected ListItem to a variable. I want to substract the Value when the item is unchecked.
I tried SelectedIndex but returns -1 and SelectedItem returns null.
I have class called GroupSelect and made a collection List(Of GroupSelect)().
Now I need find to RowNo = 4 in List(Of GroupSelect)() and get GroupSelect object.
Public Class GroupSelect Public Property RowNo() As Integer Get Return m_RowNo End Get Set(ByVal value As Integer) m_RowNo = value End Set End Property Private m_RowNo As Integer Public Property GroupNo() As Integer Get Return m_GroupNo End Get Set(ByVal value As Integer) m_GroupNo = value End Set End Property Private m_GroupNo As Integer End Class
I have hybridized my web forms application and I am in the midst of creating pages but my add coontroller dialog and or add view is tuff is missing. How can I get this linked up in my project. When I create a from scratch MVC application all that stuff appears.
When the user clicks the edit button I want to pass the unique identifier from the item in the list to the parameter string so I can retrieve it in the edit page. how to retrieve the ID from the selected item?
I have created one web page in asp.net in which i have used datalist in the datalist there is one dropdownlist and one linkbutton. i have to find dropdown selected value on link buutons click events.
i tried a lot of code but i din't get i used fincontrol method. but not geeting how to get this.
is it possible to get the current rowindex of a gridview using jQuery?Bit of background: I delete rows from a gridview using a server side link button in a template field like so:
i have a listview. The listview contains a usercontrol with ID="ucEquationBuilder1" which is added only! in the SelectedItemTemplate.I've came along some post which stated you can't find the control in the SelectedItemTemplate unless it is also in the the ItemTemplate.
To me this sounded ridiculous. Untill i ran some tests, and indeed i was able to find all other controls (TextBox's Labels) which where both inside the itemtemplate and the selecteditem template.
To me this is quite frustrating. Is there a way to retrieve the control which is only inside the SelectedItemTemplate without adding it to the itemtemplate?
In my grid veiw Row command sub section i used e.command argument. But it always return empty string like ""my code is like this........
 Protected Sub GridView1_RowCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles GridView1.RowCommand    Dim rowindex As Integer = Convert.ToInt32(e.CommandArgument)  End Sub
I want row index to do type cast my textbox inside my grid item template.
i m using GridView with hovermenuand i want that when we click on edit button then we get TextBox to write in Gridviewand also i get error when click on edit for e.commandArgument is null
Argh.. I've run into thei before,but can't remember how I solved it.I have a gridview with a button in a template field.I've added an event to the button,but am getting the dreaded 'RowIndex' is not a member of 'System.EventArgs' error.
I'm trying to grab the value of a label in the gridview for the row that is selected when the button is clicked.Should I be using something other than e.RowIndex?
I have a GridView where I have a ItemTemplate and where I have set 5 rows to with a buttoncontrol on each row.What I am trying to do is in the _Click event of the button, detect which rowIndex this button was clicked on but are not sure what I am missing in this code ?
I want to get Row Fields in Gridview on Checkbox Change inside gridview.I have checkbox column in grid, i want to get row details in msgbox as i select checkbox. On selected index change of checkbox inside ridview.Everytime i select checkbox, it gives msgbox for row details.
I have one asp.net application using Sql server as back end.. in sql server database i have one table which consist two fields.. ItemName and RateI have one notepad file which consist around 700 ItemName with Rate..
So how to get this ItemName and Rate in my Table...
Server Error in '/staff' Application. Could not find stored procedure 'dbo.aspnet_CheckSchemaVersion'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: Could not find stored procedure 'dbo.aspnet_CheckSchemaVersion'. Source Error:
[Code]....
Stack Trace:
[Code]....
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
I have a nested gridview containing gridviews: gvMaster(Parent) and gvAlternate(Child)
If I select a row in gvAlternate is there a way for me to find out what gvMaster row it is under? I want to highlight the selected gvAlternate row and the gvMaster row that it is under.
[code]....
I can get a certain set of rows of gvAlternate only by referencing which gvAlternate control set I want to access: this is based on the gvMaster.Rows and then using the FindControl and id name:
Therefore, it is true that a set of rows in a nested gridview is tied to a specific row in its master gridview, the question is does the child gridview know which set it's connected to or does it's master know if a childset has been selected?