I'm stuck in converting the rate in the datalist. My page contain one dropdownlist(currency converter), one datalist - inside contain the price of bags in labels. Now I uses the dropdownlist.selectedIndexchange
[code]....
Althought it did convert the rate, but it only convert the first row.
I am trying to search the database using Data List and Item Template. I just want to loop the data's from database in a linkbutton and a lable row by row.
DataSet ds = new DataSet(); DataTable dt = new DataTable(); dt.Columns.Add(new DataColumn("Description", typeof(string))); dt.Columns.Add(new DataColumn("Auctionno", typeof(string)));
I want to create dynamic datalist control with item template in a for loop.
Example: In my database, I have 20 Categories and 100 products. Each categories have some products. Now I want to show 20 categories all together in my page and it is not specific that categories will remain same. It can be increase or decrease. I am taking CategoryID with for loop and now I want to bind datalist according to the count of for loop.
The problem is that i have a search page. Access Database holding the information. I have a Access Datasource on the page with a Datalist to show the data. I need to find a way on setting it up to says "Sorry no results found" when the is no results. i am unsure on how to do this though.
There is two checkbox group which have same datasource, so in both case same checkbox are showing and also same event is firing for both. Here is the event code
Now what i want to do is, while check one checkbox from the 1st checkbox group the same checkbox should be selected from the second checkbox group automatically, also if i deselect one checkbox that should be deselect from both checkbox group.
Am building a Form for out intranet that runs on ASP.NET and C#, it is to be a survey from a SQL database. I have the connections setup can pull informations/Questions from the database. I am having a problem with setting up radio buttons within a datalist, ive never done this and i know they require unque names.
It is to be 4 radio buttons per question where only one can be select, i know how to group just not via a datalist with unique names
I am trying to place a datalist inside datalist. I managed to place a datalist inside gridview but not datalist inside datalist.
Below is the code I am using to bind the datalist into the master gridview, I am trying to change this code in such way it will be right for datalist inside datalist but so far I did not succeed.
i have a datalist . that is contains 7 columns in repeat layout .when i have more from 7 columns , datalist style is normal .but when i have smaller than 7 columns ! data list style is not normal,
because there are some empty columns without specific schema.
How i can make a datalist > when i have 1 columns in my datalist my first layout width be 100% ;
Im stuck with declaring a string which is in a loop within another loop.
Dim CompanyDetails As String = "" Dim CompanyRow As DataRow For Each CompanyRow In newdt.Rows CompanyDetails += CompanyRow(1) & " " & CompanyRow(0) & "<br/>"...
How can I get this to see the GetInfo as declared..... since its in a loop within a loop?
I want to insert data in sql server from sheet within excelsheet ,there are three sheets in the file which i want to upload in three different tables,currently i am doing by selecting an individual sheet and the table to upload thus doing it three times for three sheets can i do it in one go,like passing all the sheets to a function or something like that or how can i do it in a better way and also i cannot directly upload sheet into table as i have to map one column of excel to different table of database to get its value like i need statecode but statename is provided in the sheet so i map statecode to statename in a staging table and then i upload the data...
I have nested gridviews, in the outer grid I am displaying the question and in the inner grid 4 options are displayed in radiobuttons. I have kept Lock Answer button inside Item Template in inner gridview , so this button is coming with each and every question and when i click on Lock Answer button in front of any question, its saving the corresponding answer in the database. For ex, if there are 10 questions this button is coming with all the questions, all the questions are on single page and all are multiple choice. Now everything is working mine, my requirement is that I need on 1 common Lock Answer button at the bottom of the page and not with all the questions. And when I click on that common button it should run for all the questions that are displayed on the screen at should fetch and update each unique answer corresponding to that question in the database. Below is my code:
i want to receive some data from my database and in a while loop. i use this code in the while loop
Code: Dim sqlda As New SqlDataAdapter() sqlda.SelectCommand = New SqlCommand() sqlda.SelectCommand.Connection = con sqlda.SelectCommand.Parameters.Add(paramar(0)) sqlda.SelectCommand.CommandText = "select images,creationdate,dimosieyseis from t_accounts where UserName=@un" Dim ds As New DataSet() sqlda.Fill(ds)
if i open and close the connection it becomes slow. if i use a general con and not open and close it then i receive an error
"There is already an open DataReader associated with this Command which must be closed first. "
then i tried to resolve this error with
MultipleActiveResultSets=True that resolves the problem but it is not faster because i think it does the open and close of the connection automatically
I am trying to do some basic. Display customer testimonials in a table using foreach loop and have a checkbox on each row. Once checked, update the table.
I have a stored procedure of complex type in my entity framework. Here is my View.
i have an apllication which calculates date. First i retrieved initial date and expiry date from the database using datareader. then i want to check whether initial date is less than or equal to expiry date.If it satisfies the condition I want to add one month to that date(eg: if initial date is 09/10/2010 and expiry date is 09/08/2011 if looping statement becomes true initial date should be incremented by one month i.e. 09/11/2010(dd/mm/yyyy))
how can I do this using any looping statements. I tried like this
While CDate(indate) <= CDate(expdate) nextindate = CDate(indate.AddMonths(1)) End While
I'm using asp.net list control that creates a table with <div> elements that have a picture thumbnail, and when the user clicks on the div and it calls Ajax method and populates a shared dialog with correct information, and then shows it to the user. In order to do this the div needs to know the item id associated with it, so it can do the db lookup.
how do you dynamically store data to a div item in a list view loop.
so something like
<listControl> <ItemTemplate> < div> stuff thisdiv.data(<% Eval(id) %>); // <-unsure about this part </div> </ItemTemplate> </listControl>