Web Forms :: Adding Multiple File In App Setting?

Jan 3, 2010

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>

View 4 Replies


Similar Messages:

AJAX :: Adding The 'multiple' Attribute To The Final Dropdown List And It Allows The Selection Of Multiple Items?

Mar 16, 2011

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.

View 7 Replies

Web Forms :: When Adding New Global.asax File, The Option To Create A C# Code Behind File Is Greyed Out?

Jul 25, 2010

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?

View 4 Replies

Forms Data Controls :: Setting A Filter Of Multiple Dates From The Calendar.selecteddates

Aug 22, 2010

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.

View 1 Replies

Web Forms :: Adding Multiple Usercontrols Dynamically?

Sep 21, 2010

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?

View 13 Replies

Web Forms :: Programatically Adding Multiple Controls

Nov 12, 2010

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.

CODE SNIPPET SO FAR:..........

[Code]....
[Code]....

View 3 Replies

Web Forms :: Adding Multiple Sitemaps To Website?

Jun 22, 2010

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.

In the web config file I have tried both:

<siteMap defaultProvider="AspNetXmlSiteMapProvider">
<providers>
<add siteMapFile="Community.sitemap" name="CommunitySiteMapProvider"
type="System.Web.XmlSiteMapProvider" />
</providers>
</siteMap>

[Code]....

However the menu that shows is the default Web.sitemap

View 2 Replies

Web Forms :: Adding Multiple Data To Session

Feb 21, 2012

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....

View 1 Replies

Web Forms :: Adding Multiple Gridview In Page?

Mar 21, 2012

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.

View 1 Replies

Web Forms :: Applying Multiple Theme With Multiple Css File?

Mar 30, 2010

I have create three css file for theme that is blue,grey and white.

how can I apply the theme to my website?

I'm using ASP.net with VB language..

All css file load picture, font color, background color and so on...

View 2 Replies

Can Manage Without Adding An Additional Label For The Valid State(by Setting The Visibility: True/false)

Jun 14, 2010

I have a validator that check an input.

i what that the validator displayed "valid" if the value is valid, and "invalid" if the value is hasnt passed the validation.

can manage without adding an additional label for the valid state(by setting the visibility: true/false)?

does the validator control has am alternative value, or i have to override it?

View 1 Replies

Web Forms :: Dynamically Adding Controls To A Table Across Multiple Functions?

Mar 13, 2010

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?

My current code which doesnt work:

[Code]....

View 5 Replies

Setting Multiple Datasource For A Report?

Mar 24, 2010

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.

View 1 Replies

Web Forms :: Web Parts / Want To Store User Setting In XML File ?

Oct 27, 2010

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 ?

View 4 Replies

Web Forms :: Adding Multiple Instances Of Usercontrol On Button Click Event

Aug 13, 2010

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?

View 1 Replies

Forms Data Controls :: Adding All The Values In Multiple Columns In A Gridview?

May 14, 2010

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.

View 6 Replies

Forms Data Controls :: Adding Multiple Header Rows To Gridview

Oct 22, 2010

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

View 4 Replies

Forms Data Controls :: Setting Html Of A DIV From Class File?

Mar 29, 2010

I am trying set HTML of a div from Class File [CDataOperations.cs]

I have written following code in this class file,

[Code]....

Object reference not set to an instance of an object. Div is used on the page as follows

<div id="oResultDiv" runat="server"> </div>

Code Must set Html from Class file.

View 8 Replies

Web Forms :: Setting Up Date / Time Stamp For Downloaded File?

Feb 7, 2011

I am trying to download byte array (l_attchmntToDownload) using the following code:

try{
Response.Clear();
Response.AppendHeader("Content-Disposition", "attachment; filename="+l_attchmntFileSpec);
Response.ContentType = "application/octet-stream";
Response.BinaryWrite(l_attchmntToDownload);
Response.End();
}
catch (Exception Ex)
{
throw Ex;
}

Is it possible to supply Date/Time of modification for the downloaded file?

I tested "Last-Modified" HTTP header but the file gets saved with the current Date/Time only.

View 3 Replies

Forms Data Controls :: Adding Multiple Series Of Charts On A Same Chart Which Are At Different Location?

Mar 11, 2010

i am using .net framework 3.5 and visual studio 2008, i want to develope an application

for graphs and charts, so charting control 3.5 i am using.

i want to add multiple series of charts on a same chart which are at different location.How can i do it?

View 1 Replies

Forms Data Controls :: Add Multiple Columns In A Datalist , Without Adding Invalid Html Code?

Jun 27, 2010

I have the following code the form of a datalist,

<asp:DataList ID="DataList1" runat="server" BorderColor="black" CellPadding="3" Font-Names="Verdana"
Font-Size="8pt">

[code]...

View 5 Replies

Web Forms :: Setting Page Index When Working With Multiple DataGrids On Page

Jul 18, 2012

I have 2 DataGrid in a single page.

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();

[Code] ....

View 1 Replies

Web Forms :: Adding More File Upload Controls?

Aug 17, 2010

I have added a file upload control and tried to upload a image with image name...it was succesfull..

Now when i click Add More Photos....i want fileupload controls to be added...(without using JavaScript)

View 5 Replies

Web Forms :: Exception Comes After Adding Web.sitemap File

Aug 26, 2010

I added web.sitemap file in my project.on Debug it shows an exception like this"The file

web.sitemap required by XmlSiteMapProvider does not exist."

how to solve the above error and any changes made in web.config file after adding web.sitemap file?

View 3 Replies

Web Forms :: Page Not Available On Adding File To Upload?

Apr 5, 2010

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?

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved