is it possible to add more then one file name in app settings.??if so,how to work around with second file.?..i currently have one file listed in app setting,
<appSettings
file="list.config"
>//i need to add another file here with values??????
<add key="key1" value="a"></add>
<add key="key2" value="b"></add>
<add key="key3" value="c"></add>
</appSettings>
I am using the cascading dropdownlist controls from the Ajax toolkit. I have everything working perfectly and all of my select changes work. I have 3 related select boxes that all work great for single item select. What I need is for my last dropdownlist to allow for the selection of multiple items. I have tried adding the 'multiple' attribute to the final dropdown list and it allows the selection of multiple items but I cannot get the items when I post back, just a single item.
I have an asp.net application. I want to add a global.asax and global.asax.cs file to my project. In the IDE when I select to create a new global.asax file, the option to create a CS code behind file is greyed out. When the global.asax file is created, no code behind is created, instead code is placed in the global.asax file and the global.asax.cs file is never created? Why is the option for a C# code behind file greyed out?
I have a calendar that can have multiple dates non sequentially selected. I have a gridview on the page with a sqldatasource control bound to it.
Again, I have already built the events calendar with the ability to select multiple dates... now I just want to show those detailed records below the calendar for only the dates selected.
How do I filter the records to only get the records of the SelectedDates of the Calendar control.
This has to be done dynamically in the code behind.
I have a simple user control which contains a textbox and a dropdownlist. I need to add this control multiple times to my page then save the details to my db, validating each control. When they re-enter my page I need to load the user control for each record in the db populated with the data they entered. They can then edit the data, delete the row or add new rows.
I'm trying to find the cleanest most efficient way to accomplish this. I realise I would need to re-add the user controls after each postback re-populating the data. Would the best way be to add each row to an arraylist or list of type object, save it to the viewstate and re-add the controls with data on postback, or is there another method which would suit?
Need several instances of label & textbox & linkbutton on a web page, in VB2010, but only the label is displayed.Plus, I need an event when the linkbutton is pressed to read the textbox.
I am having some trouble adding an extra sitemap to my website. I have the main sitemap for the general navigation of the whole site, but would like to add a new sitemap for the navigation in the community area once people have logged in.
Before i do postback on button click i need to get data from several controls one at at time & store it before inserting it in sql table, suppose its a dropdown control, the user selects multiple choices
say CITY {Mumbai, madras, dehli}
age range 20- 30 from textbox control etc.
Currently on each data selection of control i have button click event which inserts data but I would like to store this data somehwere til all the selctions are made & use the button click once...
I need to store 2 values for each selection ie CITYÂ MUMBAI etc....
I have gone through the article "Preserving state of Checkboxes while paging in ASP.Net GridView Control", this is great one and works fine with one gridview on the page but in my case I have 2 gridviews and I am unable to preserve state of first gridview after clicking in second gridview.
I'm looking to add controls dynamically to a table across multiple functions. I'm trying to convert this from a C# app to a web app using asp.net, though this is my first time using asp.net with no web development background. I read the creating tables dynamically in the FAQ but I'm still not sure how to do this.
When pressing the submit button on my form, it will create a table in a place holder. Eventually I would like it to generate urls based on the users input and do this in a function other then the one I created my table in.
In my C# app I was able to add text to a listbox using: lstOutput.Items.Add("Text"); across multiple functions but I'm having trouble doing this with a table.
I understand that my table is a local variable in the submitButton_Click function, but how do I make it global to add rows, cells and controls to it in other functions?
I have a report whose data is derived from two stored procedures.so i need to set these two datasources for generating the report.But the reports which have only one SP, ie.only one datasource works properly. For setting the datasource, i wrote code like this:
dim reportdocument as ReportDocument Dim reportPath As String = Server.MapPath("CrystalRptsReport.rpt") ReportDocument.Load(reportPath) 'Function for Setting the Connection
[Code]....
But, the report is not generating.it shows the following error
The Report requires additional information
Servername:- Server
Database:- Database
UserID:-
Password:-
But the reports which have only one SP, ie.only one datasource works properly.What colud be reason for this error?
I have already created this report.So i cant combine the two SPs as it may refresh the report fields.
iam creating a customized dashboard using web parts and i am new in web parts..i wanna a way to store user setting in XML file .. how can i achieve that ?
As you said that for storing use data table and make property in the .ascx.cs file but I have problem that I m not able to get that property in the .aspx page. How to add multiple instances of web usercontrol on page on button click event?
I'm just wondering if anyone can assist me with this gridview problem
I have this Sql statement that outputs a gridview like this
Job Location Activity 1 Activity 2 Activity 3
Job1 Location1 0 0 1
Job2 Location2 1 0 1
Job3 Location3 0 1 0
* These columns are placeholders
I want to include a footer total that looks like
Job Location Activity 1 Activity 2 Activity 3
Job1 Location1 0 0 1
Job2 Location2 1 0 1
Job3 Location3 0 1 0
Final Total 4
Im not binding the database to the gridview via design view I'm binding it programatically in the default.aspx.cs file
So far the only tutorials I've encountered are ones the have the database bound through design view and gridviews with only one column that can be added. In my particular example I have multiple columns that need to be added and I have already bound the data to the gridview.
I'm having difficulty adding a repeating header row, every x rows, to a gridview. I'm able to add the header only once with the below code. For some reason it will only add it during the last iteration through the for/next statement. I tried manually adding three separate .addat statements to different rows and it only executed the last .addat statement. I couldn't find any information on why it's only working the one time and I hope someone has a fix or better solution.
Code snippet (Note the IsWhole() function verifies that the rownumber divided into a whole number): Protected Sub Gridview1_DataBound(ByVal sender As Object, ByVal e As System.EventArgs) Handles Gridview.DataBound Dim grid As GridView = TryCast(sender, GridView) If grid IsNot Nothing Then Dim row As New GridViewRow(0, -1, DataControlRowType.Header, DataControlRowState.Normal) Dim header As GridViewRow = POSTURE_RESULT.HeaderRow For i As Integer = 0 To POSTURE_RESULT.Columns.Count - 1 Dim TableCell As New TableHeaderCell() TableCell.Text = header.Cells(i).Text row.Cells.Add(TableCell) Next Dim t As Table = TryCast(grid.Controls(0), Table) If t IsNot Nothing Then For i As Integer = 0 To Gridview1.Rows.Count - 1 If IsWhole(i / 5) Then t.Rows.AddAt(i, row) End If Next End If End If End Sub
First DataGrid contain 2 page and 10 records per page
Second DataGrid contain 5 page and 10 records per page
When i click 3rd page of second DataGridthe following error occur
"Invalid CurrentPageIndex value. It must be >= 0 and < the PageCount."
public partial class Admin_Over_all_report : System.Web.UI.Page { Dataconnection dc = new Dataconnection(); protected void Page_Load(object sender, EventArgs e) { if (IsPostBack == false) { bind();
I'm doing a multiple file upload script that add flies to a listbox and afterward uplods them to folder.
Every thing goes fine, even under the size and a extension restrictions, but when I try to add an .exe file with 30MB I would expect the script to write a warning saying the file is over the size limit and as an extension that cannot be uploaded, instead it shows a Page Unavailable
I'd tried to troubleshoot with try/catch on the init event but it doesn´t reach that far, it seem's that the compilation stops with no explanation...or is there?