16,021,041 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Visual Basic questions
View Javascript questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by __PP__ (Top 15 by date)
__PP__
22-Jul-13 7:58am
View
Sorry I don't know the answer....
__PP__
16-Nov-12 1:34am
View
I want to check the column header and row values in excel.thats y i go with datatable method..SO i need this in datatable..pls give any suggesions
__PP__
9-Nov-12 3:31am
View
empty file
__PP__
9-Nov-12 2:20am
View
K Thank u so much
__PP__
9-Nov-12 1:35am
View
ya it dont contain any number
__PP__
9-Nov-12 1:02am
View
How to check for row values for particular column in string.(EX:Name columns not contain numbers it has only string)
__PP__
9-Nov-12 0:43am
View
Thanks but how check for string
__PP__
22-Oct-12 2:31am
View
DataTable dt = new DataTable();
var Inputs = ProjectAttributeMasterService.GetInputAttributes(7);
Response.AddHeader("content-disposition", "attachment;filename=Report.xlsx");
Response.Charset = "";
Response.ContentType = "application/application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
I want to open that excel file and that file contain the values of list(Inputs)...
for that i using the folowing code..but dont know how connect with the xlsx file
Excel.Application excel = new Excel.Application();
Excel.Workbook wb = excel.Application.Workbooks.Add(true);
Excel.Worksheet excelSheet = (Excel.Worksheet)excel.ActiveSheet;
int col = 1;
for (int i = 0; i < Inputs.Count; i++) // Loop through List with for
{
excelSheet.Cells[1, col] = Inputs[i].ToString();
col++;
}
__PP__
22-Oct-12 2:09am
View
sorry it does not work...I got error like excel cannot open the file format...
__PP__
5-Oct-12 4:37am
View
i want in javascript
__PP__
4-Oct-12 7:31am
View
Just Selection...like select for cut and paste
__PP__
26-Sep-12 8:07am
View
Actually i am a fresher i want learn about that EAV..so i need some examples about EAV..Its help for my preparation...Thats why im asking...
__PP__
25-Sep-12 5:13am
View
Thanks for your reply....is there any possible to create xlsx file
__PP__
10-Sep-12 4:48am
View
Thank you sir
I want to display selected items to Text Box Control..
__PP__
6-Sep-12 3:44am
View
ok please give solution for my specific issue
I used Checkboxlist with textbox popupcontols for multi selection dropdownlist and selected items text displayed in the text box.which is work in google chrome...but does not work in firefox....selected item does not displayed in text box in the firefox browser
Here is my coding
Multicheckcombo.ascx
Collapse | Copy Code
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MultiCheckCombo.ascx.cs" Inherits="Mobius.D2K.Web.Administration.Modules.MultiCheckCombo" %>
<script type = "text/javascript">
//Script para incluir en el ComboBox1 cada item chekeado del chkListMateriales
function CheckItem(checkBoxList) {
var options = checkBoxList.getElementsByTagName('input');
var arrayOfCheckBoxLabels = checkBoxList.getElementsByTagName('label');
var s = "";
for (i = 0; i < options.length; i++) {
var opt = options[i];
if (opt.checked) {
s = s + ", '" + arrayOfCheckBoxLabels[i].innerText.replace("'", "''") + "'";
}
}
if (s.length > 0) {
s = s.substring(2, s.length); //sacar la primer 'coma'
}
var TxtBox = document.getElementById("<%=txtCombo.ClientID%>");
TxtBox.value = s;
document.getElementById('<%=hidVal.ClientID %>').value = s;
}
</script>
<asp:TextBox ID="txtCombo" runat="server" ReadOnly="True" Width="200"
Font-Size="Large" ForeColor="#660033">
<ajaxToolkit:PopupControlExtender ID="PopupControlExtender111" runat="server"
TargetControlID="txtCombo" PopupControlID="Panel111" Position="Bottom" >
<input type="hidden" name="hidVal" id="hidVal" runat="server" />
<asp:Panel ID="Panel111" runat="server" style="vertical-align:top;" ScrollBars="Vertical" Width="250" Height="150" BackColor="AliceBlue" BorderColor="Gray" BorderWidth="1">
<asp:CheckBoxList ID="chkList" AutoPostBack ="true"
runat="server"
Height="150" onclick="CheckItem(this)">
Multicheckcombo.ascx.cs
Collapse | Copy Code
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.Odbc;
using Mobius.D2K.Common.Utils;
using Mobius.D2K.Common.Utils.Html;
using System.Data.SqlClient;
namespace Mobius.D2K.Web.Administration.Modules
{
public partial class MultiCheckCombo : BaseMobiusAdministrationUserControl
{
protected void Page_Load(object sender, EventArgs e)
{
}
///
///Set the Width of the CheckBoxList
///
public int WidthCheckListBox
{
set
{
chkList.Width = value;
Panel111.Width = value + 20;
}
}
///
/// Set the Width of the Combo
///
public int Width
{
set { txtCombo.Width = value; }
get { return (Int32)txtCombo.Width.Value; }
}
public bool Enabled
{
set { txtCombo.Enabled = value; }
}
///
/// Set the CheckBoxList font Size
///
public FontUnit fontSizeCheckBoxList
{
set { chkList.Font.Size = value; }
get { return chkList.Font.Size; }
}
///
/// Set the ComboBox font Size
///
public FontUnit fontSizeTextBox
{
set { txtCombo.Font.Size = value; }
}
///
/// Add Items to the CheckBoxList.
///
Show More