Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #4K
~3K People Reached
Favorite Tags
Member Avatar for dawsonz

Hello I'm currently using GridView.Sort("Column", ASC") It works perfectly and sorts my gridview, however once I get to 10 or higher the sort order stops working and it goes. 1,10,2,3,4,5,6,7,9. Here is my code would anyone care to explain why it does this? [CODE] DataSet ds = new DataSet(); ds.ReadXml(Server.MapPath(@"xml\" …

Member Avatar for dawsonz
0
123
Member Avatar for dawsonz

Hello I'm currently trying to get my GridView to update all rows at the same time. The gridview takes data from an .XML file - I can use the 'onRowEditing' to update a single row at a time - however I want it to be able to update all rows …

Member Avatar for crishlay
0
93
Member Avatar for mayank.ati

Hi I am trying to get the values from dropdown list but everytime it selects the default value asp code: [CODE]<asp:TemplateField HeaderText="Customer Id" sortexpression="cust_id"> <EditItemTemplate> <asp:DropDownList ID="ddl1" runat ="server" OnLoad="ddl1_load" ></asp:DropDownList> </EditItemTemplate> <ItemTemplate> <asp:Label ID="lblc" runat="server" CssClass="label" Text='<%#Eval("cust_id")%>'></asp:Label> </ItemTemplate> <HeaderStyle BorderStyle="Inset" Font-Bold="True" Font-Underline="True" ForeColor="Teal" /> </asp:TemplateField> [/CODE] code behind: [CODE]Protected …

Member Avatar for dawsonz
0
101
Member Avatar for dawsonz

Hello I'm trying to include a dropdownlist in my gridview and then bind data to that dropdownlist. I have come across an error: [quote] error CS0103: The name 'sortOrderDropDown2' does not exist in the current context at System.Web.Compilation.AssemblyBuilder.Compile() [/quote] Now i'm not sure why I get this error as my …

Member Avatar for crishlay
0
711
Member Avatar for dawsonz

Hello I'm trying to take Data from my GridView at the moment. My gridview has a column called 'DataField' what I want to do is take those values from Datafield to calculate the highest value. The 'Datafield' are as follows: A10, A11, A12 etc. How can I take those values …

0
51
Member Avatar for dawsonz

Hello I have an XML file that uses <Document Element> I was wondering if it is possible to sort my XML file by sortOrder? Here is an example of my code: [code] <?xml version="1.0" standalone="yes"?> <DocumentElement> <Item DataField="A03" Header="RDAW TEST" UseDefaults="Yes" SortOrder="1"/> <Item DataField="A01" Header="Eg: Assignment 1" UseDefaults="Yes" SortOrder="2" /> …

Member Avatar for pritaeas
0
157
Member Avatar for umeshMCA

hi, i have a xml file and i would like to read and write data in XML file. thanks regards umesh chand daiya

Member Avatar for thomas6188
0
235
Member Avatar for dawsonz

Hello I'm trying to sort my gridview by a particular colum. My gridview has a column which is 'Sort Order' and they are numbered 1,2,3 etc. Now I want to be able to default sort that column in ascending order. Would anyone possibly be able to help? Here is my …

Member Avatar for dawsonz
0
204
Member Avatar for dawsonz

Hello I currently have a Datagridview which takes data from an XML file. I want to display the array of numbers. Here is the code for my GridView: <asp:GridView ID="rd" runat="Server" OnRowEditing="Editdata" OnPageIndexChanging="pageddata" OnRowDeleting="Deletedata" OnRowUpdating="Updatedata" OnRowCancelingEdit="Canceldata" AllowPaging="True" AutoGenerateColumns="False" PageSize="30" CellPadding="4" ForeColor="#333333" GridLines="None"> <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" /> <RowStyle BackColor="#EFF3FB" /> …

Member Avatar for dawsonz
0
202
Member Avatar for dawsonz

Hi, I'm trying to create a Web Form in C# - the form has a username and password textbox. The user enters there username and password which I want the program to check if it exists in the SQL database. I'm trying to create a login.cs class and then run …

Member Avatar for dimastea
0
353
Member Avatar for dawsonz

Hey, My database currently stores the location of a specific image, however i'm trying to get the page to change the [CODE]img.ImageUrl = "C:\mug.jpg";[/code] However it doesn't display the image, is there any reason for this? If I use a local image it works perfectly IE: [CODE]img.ImageUrl="~/images2/mug.jpg";[/CODE] Any ideas at …

Member Avatar for dnanetwork
0
68
Member Avatar for dawsonz

Hi, I've currently got a gridView which selects data from my table, it also has the URL of an image in one of the columns. I want an imageField which can then display the image from the URL thats provided in the image column. My datagrid: [img]http://i41.tinypic.com/25ivst2.jpg[/img] My code for …

Member Avatar for dawsonz
0
86
Member Avatar for dawsonz

Hey, I currently have a dataGridView which displays information from my SQL database. I have a button that I use to update/add into the SQL database - for example a user ammends a field in the dataGridView this automatically updates the database. I now want to implement a button that …

Member Avatar for yaninea
0
187
Member Avatar for dawsonz

Hi i've got a simple username and password entry on my webpage. My login class works perfectly in Windows Form but not in my Web Application Login class: [code] using System; using System.Collections.Generic; using System.Text; using System.Data; using System.Data.SqlClient; namespace assignmentForm { public class UserLogin { private SqlConnection connection = …

Member Avatar for dawsonz
0
99
Member Avatar for kiranbvsn

I am newbbie to C# gridview Please can anyone give me the complete detailed gridview with some explanation something like how and when databound,e.t.c events fire, and some basic terminology associated with grid view like rowindxes,row.edititem, e.t.c please kindly do the needful as i have to implement it in my …

Member Avatar for kiranbvsn
-1
70
Member Avatar for dawsonz

Hi, I currently have a dataGridView which is populated with data. However, I now need to be able to add or edit the data in that dataGridView and the changes then update my SQL database. My code for the dataGridView [code] private void main_Load(object sender, EventArgs e) { //create the …

Member Avatar for kvprajapati
0
144
Member Avatar for dawsonz

Hi, I'm trying to get my program to write the content of textbox1 into a textfile specified at a particular location. However I get an error when trying to do so. My code: [code] protected void btnSave_Click(object sender, EventArgs e) { //Write to fileupload location System.IO.StreamWriter StreamWriter1 = new System.IO.StreamWriter(FileUpload1.PostedFile.FileName); …

Member Avatar for kvprajapati
0
107
Member Avatar for dawsonz

Hi, I'm trying to use the asp.net Input (file) with my program - i've placed it ont my program and I can click browse and it locates the file I want. Eg: "C:\Users\Name\Desktop\test.rtf" However, I then want to have it so that when I click a 'Submit' button it reads …

Member Avatar for kvprajapati
0
191
Member Avatar for dawsonz

I need to create a program that can read a file a user has selected, i'm trying to use this with the HtmlInputFile in Visual Studio. The file then needs to be read and encoded, i've created a class that deals with the encoding and adds +13 onto each letter …

Member Avatar for kvprajapati
0
68
Member Avatar for dawsonz

I'm trying to create a login system that checks the username and passsword from an sql database. I've created a local server named coffee that has a table named 'users' - I have created fields for username & password. I'm using ASP.NET web application and I want to connect to …

Member Avatar for dawsonz
0
124