- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
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:
[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 |
|
Re:
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:
I have the following form, but my data is not getting inserted into my database. Can anyone help? [code] <%@ Page Title="Dorknozzle Help Desk" Language="C#" MasterPageFile="~/Dorknozzle.master" AutoEventWireup="true" CodeFile="HelpDesk.aspx.cs" Inherits="HelpDesk" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <h1>Employee Help Desk Request</h1> <asp:Label ID="dbErrorMessage" ForeColor="Red" runat="server" /> <p> Station … |
|
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:
This is error messages. Server Error in '/trialwebsite' Application. Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that … |
|
Re:
hi all, i am trying to add check box to my datagrid view and update checked rows to sql server. please help me. i am using vs 2005 and sql 2000 thanks in advance. |
|
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:
i have a drop down list in my Gridview. I want to poplulate it with the values from the database ... However i am confused how to proceed ......here is my code snippet: In the source i have written the followin code : [CODE] <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" … |
|
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! I have a problem. I cannot update the row in GridView control. [CODE=asp.net ] <asp:Label ID="Label1" runat="server" Text="Username: "></asp:Label><asp:TextBox ID="unTextBox" runat="server"></asp:TextBox><%--<asp:RequiredFieldValidator ID="usernameRequiredFieldValidator" runat="server" ErrorMessage="*" ControlToValidate="unTextBox"></asp:RequiredFieldValidator>--%><asp:Button ID="unSearchButton" runat="server" Text="Search"/><br /><br /> <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" DataSourceID="MySqlDataSource" CellPadding="4" ForeColor="#333333" Font-Size="Small"> <Columns> <asp:CommandField ShowEditButton="True" /> <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" ReadOnly="true" … |
|
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:
how to add datas from a web page to a data base using C# in asp.net (a symple mathod) |
|
Re:
Ok this is not as simple as it seems. I know i can create it on the aspx page. And make my changes there: set colums to read-only, turn colums into template fields, edit the template fields, and set the names of the headers. BUT if i want to add … |
|
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 … |