- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
39 Posted Topics
Hi, I'm trying to sort a DataTable using the following code: [CODE=VB.NET]Private Function sortDataTable(ByVal dTable As DataTable) As DataTable Dim dView As New DataView(dTable) dView.Sort = "Field ASC" Return dTable End Function[/CODE] But it doesn't work. What is wrong? How can I sort the DataTable? Thanks, Ana | |
Hi, I have a PHP file that gets an XML files from a HTML form. The PHP files needs to generate a new HTML file containing a table with the the data retrived from the XML file. I was able to this this properly (using expat). However, before adding the … | |
Hi, I'm new using AJAX and I'm developing a page where I need to populate a CheckBoxList based on what the user types (it's like an AutoSuggest). I don't know how to bind the checkboxlist from the database using AJAX. My code in VB.NET is something like this: [CODE]Dim DatabaseConnection … | |
Hi, In my page I have the following code: [CODE=ASP.NET]<asp:TextBox ID="SearchCriteriaTextBox" runat="server" Text="Enter Search Criteria" Width="150px" ForeColor="GrayText" OnClick="this.value = ''; this.style.color = 'black'" OnBlur="javascript:changeText('<%=SearchCriteriaTextBox.ClientID %>')" />[/CODE] And for the javascript: [CODE=javascript]function changeText(txtB) { var textBox = document.getElementById(txtB); var txt = textBox.value; if (txt = "") { textBox.value = "Enter Search … | |
Hi, In my ASP.NET page I have a TreeView where ShowCheckBoxes="Leaf". I want to mark as checked/unchecked all the visible checkboxes by clicking in a button. My code for selecting all/none nodes is like this: [CODE=javascript]function selectAllNone(tvID, value) { var tvNodes = document.getElementById(tvID); var chBoxes = tvNodes.getElementByTagName("input"); for (var i … | |
Hi, In my asp.net page, I have the following line inside an UpdatePanel: <input type="text" id="userInput" onblur="DisplayWord()" onkeyup="SearchWord(event, this.value)" /> Is there a way to retrieve the input value in the code behind (VB.NET)? Thanks, Ana | |
Hi, I have the following code: [CODE]<asp:GridView ID="MyGridView" runat="server" AllowPaging="true" PageSize="30" AutoGenerateColumns="False" AllowSorting="true"> <Columns> <asp:TemplateField HeaderText="Industry ID" ItemStyle-Width="150px" ItemStyle-HorizontalAlign="Center" SortExpression="ID"> <ItemTemplate> <asp:Label ID="IDLabel" runat="server" Text='<%#Eval("ID") %>' /> </ItemTemplate> <EditItemTemplate> <asp:Label ID=" IDLabel " runat="server" Text='<%#Eval("ID") %>' /> </EditItemTemplate> <FooterTemplate> <asp:Label ID="EnterLabel" runat="server" Text="Please, enter the new name: " /> </FooterTemplate> … | |
Hi, In my page I have a GridView in which I have an Item Template with a label and Edit Template with a DropDownList. Something like this: [CODE]<asp:GridView ID="MyGridView" runat="server" OnPageIndexChanging="MyGridView_PageIndexChanging" DataKeyNames="Id" OnRowEditing="MyGridView_RowEditing"> <Columns> <asp:TemplateField HeaderText="Use" ItemStyle-Width="140px" ItemStyle-HorizontalAlign="Center"> <ItemTemplate> <asp:Label ID="UseLabel" runat="server" Text='<%#Eval("ImageUse")%>' /> </ItemTemplate> <EditItemTemplate> <asp:DropDownList ID="UseDropDownList" runat="server" OnDataBinding="UseDropDownList_DataBinding" … | |
Hi, In my page I have a checkBoxList and I need to select all items that has an specific word. Let's suppose my CBL is: VB.NET C#.NET Java2SE Java2EE And suppose that I need to select only the items about .NET (the items that cointain the string ".NET"). How can … | |
Hi, I'm using a dataTable to bind my gridView and during the data binding I need to make some cells bold. The structure I'm looking for is this: [B]Person[/B] [INDENT]contact[/INDENT] [B]Person 2[/B] [INDENT]contact[/INDENT] To include the spaces when binding the table I'm using Server.HtmlDecode(" "). I tried Server.HtmlDecode("<b>") ... Server.HtmlDecode("</b>") to … | |
Re: [QUOTE=th3learner;1046938][icode]a = int.Parse(textBox1.Text); b = int.Parse(textBox2.Text); c = a(int.Parse(comboBox1.Text)); textBox3.Text = c.ToString(); [/icode] I am inputing 2 values in a and b ....and through combox1 I am doing calculations Thanks[/QUOTE] So, what is the question? | |
Re: [QUOTE=sisi;1041121]Hello i am building a transaction called client search the location of movie in store which mean client search the movie then get the direction of the movie where it is located in store. So now i need to build classes for this transaction which i am unable to find … | |
Hi, I have a checkbox list with a list of books. Depending on the user, some of these books were already chosen. Let's suppose that I have a list of the following books: Programming ASP.NET Learning ASP.NET Beginning Web Development ASP.NET for Dummies But the books the user A chose … | |
Hi, I have the following code: [CODE=ASP.NET]<asp:FormView ID="myFormView" runat="server" SkinID="DetailsFormview"> <ItemTemplate> <table width="400"> <tr> <td align="right"> <b>This is the label: </b> </td> <td align="left"> <asp:Label ID="myLabel" Text="Label Text" runat="server" /> </td> </tr> </table> </ItemTemplate> </asp:FormView>[/CODE] And in the code behind (VB.NET): [CODE=VB.NET]Protected Sub BindFormView() Dim myLabel As Label = myFormView.FindControl("myLabel") … | |
Re: Did you try put a break point in the line conn.Open() in the submitButton_Click? If so, what is the error message? (Not your error message, but the one on Visual Studio) | |
Hi, Inside my formView, in the InsertItemTemplate, I have the following code: [CODE]<tr> <td align="right"> <b>Field</b> </td> <td> <asp:TextBox ID="MyTextBox" Text='<%# Bind("Field") %>' runat="Server" /> <asp:Button ID="myButton" Text="Find Matching Results" runat="server" OnClick=" myButton_Click" /> </td> </tr>[/CODE] In myButton_Click, all I do is bind a CheckBoxList with the results from the … | |
Hi, In my page, I have a GridView and a FormView. Every time a selected item in the GridView is edited in the FormView, both the GridView and the FormView are updated. In the FormView, I have a couple of textBoxes and a checkBoxList. I want to bind the checkBoxList … | |
Re: Hi pbbhatt, I'm having the same error. How did you fix it? It would be great if you could explain your solution! Thanks, Ana | |
Re: What exactly is the help you need? What are you doing now and what problem are you having? You need to specify your problem, or nobody will answer. | |
Hi, I have a FormView where records can be visualized, edited and inserted. When inserting or editing, I have a CancelButton. In my routine all I have is: [code=vb.net] Protected Sub CancelLinkButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) SitemapFormView.ChangeMode(FormViewMode.ReadOnly) End Sub [/code] When debugging, I could see the routine … | |
Re: Hi laghaterohan, First of all, why do you need a DropDownList in the Item Template? In the ItemTemplate you only show the data, not modify it, so I don't see a reason for include the DDL in the ItemTemplate. To create a DropDownList in the GridView you can do like … | |
Hi, In my page I have a formView with <ItemTemplate>, <EditItemTemplate> and <InsertItemTemplate>. In the <ItemTemplate> I have a linkButton "Edit" that, when clicked by the user, should show the FormView in Edit Mode. I have the following: [code=ASP.NET] <asp:LinkButton ID="EditLinkButton" Text="Edit" OnClick="EditLinkButton_Click" runat="server" /> [/code] And in the code … | |
Re: Hi Donish, I don't know if you solved the problem, but here is my suggestion. I don't see any code to update the GridView. I mean, there is an UpdateCommand in the DataSource, but in the GridView there's nothing saying to actually perform the update. Do you have any code … | |
Hi, I'm playing with javaScript and AJAX and using the source code used in this page: [url]http://www.codeproject.com/KB/webforms/MultiSelectDropDown.aspx[/url] (Actually I copied the code on the Default.aspx to the page I was working on, which has a MasterPage and translated Default.aspx.cs from C# to VB.NET) However, I'm having an "Object Required Error" … | |
Re: [QUOTE=chathuD;953431]how to add datas from a web page to a data base using C# in asp.net (a symple mathod)[/QUOTE] Hi ChatuD, Can you explain more? What are you using to get the data from the web page (DropDownList, CheckBox, TextBox, GridView, etc).? Give us more details about the context so … | |
Re: Here are some link about the subject: [URL="http://www.codeproject.com/KB/aspnet/dynamic_Columns_in_Grid.aspx"]How to create columns dynamically in a gridView[/URL] [URL="http://www.velocityreviews.com/forums/t363032-gridview-add-column-dynamically-on-button-press.html"]ASP Net - Gridview add column dynamically on button press[/URL] I hope this helps. Ana | |
Hi, In the page I'm developing, I have a CheckBoxList which is populated based on what the user types in a TextBox (Similar to an AutoSuggest). The CheckBoxList is inside an UpdatePanel. When anything is typed, I'm settting the focus to the end of the word, otherwise the focus goes … | |
Hi, In the page I’m developing, I have two textboxes, and two CheckBoxLists. Each CheckBoxList is being populated according to what the user types in the respective TextBox. In the Page Load, I’m doing the following (VB.NET): [CODE]Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load FirstTextBox.Attributes.Add("onkeyup", … | |
Hi, For the page I'm developing I need a DropDownList with CheckBoxes on it, so that the users can choose more than one option without having to use the Ctrl key (and it's more intuitive). Because my options are being retrieved from the Database, the list of option can be … | |
Hi, For the page I'm developing I need a DropDownList with CheckBoxes on it, so that the users can choose more than one option without having to use the Ctrl key (and it's more intuitive). Because my options are being retrieved from the Database, the list of option can be … | |
Hi, In the page I'm developing, I need a DropDownList where the items have CheckBoxes beside them. I found a lot of different suggestions on the internet about how to do it. Some suggest to use a ChebkBoxList, javascript and css and make the CBL looks like a DDL (a … | |
Hi, I'm trying to bind a DropDownList in the code behind using the following code: [CODE]Dim DatabaseConnection As New SqlConnection(ConfigurationManager.ConnectionStrings("myServer").ConnectionString) Dim selectCMD As String = “SELECT name, id FROM Clients WHERE name LIKE @name + ‘%’” Dim selectCMD As New SqlCommand(selectSQL, DatabaseConnection) selectCMD.Parameters.Add(New SqlParameter("@name", SqlDbType.VarChar)) selectCMD.Parameters("@name").Value = name Dim adapter … | |
Hi, I would like to know if there is a way to rename a label which is inside a GridView during the runtime. What I'm trying to do is: if the user chooses an option, Label.Text will be "Option 1"; if he chooses the other option, Label.Text = "Option2". Is … | |
Hi, I’m having a simple problem, but I don’t know what is wrong. I’m trying to remove all duplicate records from a DataTable using the following code: [CODE]Private Function removeDuplicate(ByVal dTable As DataTable) As DataTable Dim row1 As DataRow Dim row2 As DataRow Const wantedColumn As Int16 = 1 Dim … | |
Hi, I'm trying to populate my TreeView based on my Directory Structure. Actually, what I need is just the files and directories present in one folder. I found a lot of pages, blogs and posts about this, but all the solutions require the TreeView to be inside a form. The … | |
Hi, I'm binding a TreeView using the SiteMap Data. Near to each node, I have a checkbox so that the user can select the node he wants. I need to iterate through the tree checking if the node is checked and if so, write something like: Home - Node1 - … | |
Hi, [CODE]I'm trying to allow sorting my gridview writing in the code behind page. My code for Bind the GridView is like this: Private Sub BindMyGridView() Dim DatabaseConnection As New SqlConnection(ConfigurationManager.ConnectionStrings("MyServer").ConnectionString) Dim adapter As SqlDataAdapter = New SqlDataAdapter Dim selectSQL As String = "SELECT * FROM Clients WHERE id = … | |
Hi, I have a LinkButton Add Record and a GridView Users. The LinkButton is outside the GridView. I didn't put the Button in the GridView because it wouldn't allow the user to add a new record in case of the GridView is empty at the beginning. What I'm trying to … | |
Hello everyone, I'm developing a website in ASP.NET. I have a Gridview and in it two LinkButtons: [I]Details [/I]and [I]Options[/I]. When the user clicks on Details, I have to show a Formview with the Details information. This part is already done. The part that is being difficult for me is, … |
The End.