No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
21 Posted Topics
I need to use a <hr> tag under the date based on a condition. however its within a listview template and am haiving issues either finding it or trying to dynamically add it. below is the code that loads the first article and stores its date in a temp location, … | |
Im passing a long string to a method that will return the first 20 words, however when i return the value the old value is still in the string. any ideas? My code is as follows: string textContent = txtDiaryText.Text.ToString().Trim(); int NumberOfWords = 20; getLimitedWords(textContent, NumberOfWords); { //do stuff with … | |
ok so im having trouble working out the best solution to this. i have a database with two tables as follows  I want to load a single date based on the ID but then load each content that has that dateIDFK - this is fine in sql however … | |
Hey, im trying to dynamically add an image to a gridview for each row if it meets a condition. DataTable dtSub = new DataTable(); dtSub.Columns.Add("ID", Type.GetType("System.String")); dtSub.Columns.Add("FirstName", Type.GetType("System.String")); dtSub.Columns.Add("LastName", Type.GetType("System.String")); dtSub.Columns.Add("Tutor", Type.GetType("System.String")); dtSub.Columns.Add("test", typeof(System.Web.UI.WebControls.Image)); //not sure if this is correct?? DataSet ds = new DataSet(); ds.Tables.Add(dtSub); Session["myds"] = ds; foreach … | |
Im uploading student details that are tab seperated within a text file. If a submitted ID was added sucessfully to the database i want to add the submitted details to a gridview to allow the admin to see the total of submitted students. //student details from the submitted text file … | |
Re: This website is very good when trying to understand CSS. [URL="http://www.w3schools.com/css/"]http://www.w3schools.com/css/[/URL] | |
Re: try this [CODE] double outputValue = 0; bool number; number = double.TryParse(textBox1.Text, out outputValue); if (!number) { MessageBox.Show("You have entered an invalid value ", "Invalid Input"); textBox1.Clear(); } [/CODE] | |
Re: How are you accessing the data in your database? I often use stored procedures to insert, update and delete from the database. | |
Im creating a project where the a blog can be submitted, the date is stored in the database as dd/mm/yy, however im using LINQ to SQL to get the date as well as other information, the problem comes when i want to display the date in a particular layout (similar … | |
so im trying to load the first 2 imageIDs from 5 galleries, so here how it works, im using a stored procedure to get the top 5 galleries (galleryID). a second stored procedure is used to load the first 2 imageIDs based on the galleryID, here is the c# code … | |
im using a stored procedure to load a number of galleries and then photos within the gallery, however when linking them to the listView only the first two photos are returned. Stored procedure [CODE] ALTER PROCEDURE dbo.test AS declare @galID int Declare c Cursor For Select Distinct gallery_id From galleries … | |
when uploading an image to the website i get the following error message: [CODE] Server Error in '/' Application. A generic error occurred in GDI+. 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 … | |
im building a site that places galleries within an itemTemplate, each gallery has its own ID, im tring to allow each gallery to have its own "edit" button, this will allow the user to delete or rename the gallery etc. is it possible to make the button ID the same … | |
Re: you got any code we can see? | |
Re: here is a JavaScript alternative, im currently using it for a photo gallery and allows slideshow. [url]http://highslide.com[/url] | |
im trying to enable a button that is disabled within an itemTemplate, if theres a session then the button will be enabled. however i cannot access the button object in the code-behind file. HTML CODE ---------- [CODE] <div id="gal_wrap"> <asp:ListView ID="ListView1" runat="server" EnableModelValidation="false" OnPagePropertiesChanging="listItems_PagePropertiesChanging"> <LayoutTemplate> <asp:PlaceHolder ID="itemPlaceholder" runat="server" /> </LayoutTemplate> … | |
Re: why not store the images in a database, then delete the image in the database using a stored procedure. | |
hey guys, I'm creating a basket for an e-commerce site, im trying to total up the basket values within the 'cart' class and return the value back to the 'basket' page where the total will be shown. The total is fine but i cant seam to return the total back … | |
i am trying to pass a number of values from one page to another, i have managed to pass both the category ID and sub category ID, however i am unable to pass the "product_id" value. as you can see from below i am getting the product_id using a stored … | |
Re: [QUOTE=spmg_092;1037507]Hi guys. I am having a bit of trouble with the listview control at the moment. I am trying to change the position of an item in the listview but I have no idea how to do so.[/QUOTE] is the list is being generated from a database? if so then … | |
hey, im currently creating an e-commerce store, im quite new to ASP.NET and C#. im trying to create a menu that is generated based on the database tables. i have created a stored procedure, which works correctly: [CODE] ALTER PROCEDURE dbo.getProductsForCat AS SELECT * FROM products_cat WHERE product_cat_id IN ( … |
The End.