LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Adding a dropdownlist programmatically to a ASP.NET webpage

Hello and thanks in advance,

I have an issue that I am trying to work around. I have an aspx page that
needs to load up a formated XLS spreadsheet into a DIV tag and then allow the
user to input data that will be retrieved later on postback and values store
in a MS SQL database.

I created an excel spreadsheet and formatted it with the formulas and
colors. I also added a combobox from the control toolbox. I also added a
checkbox from the control toolbox to another cell. I then saved the page
using File--Save AS WebPage. I checked the 'Add Interactively' checkbox on
the save dialog. I then opened the file in an editor and copied the object
tag into my aspx page. Everything was fine except my combobox and checkbox
did not appear in the HTML spreadsheet.

I am assuming that I have to EITHER programmatically add the controls prior
to render or add the combobox as a XML element to the proper node of the
XMLData value parameter attribute.

the current XML Block for this node is :

<Row ss:AutoFitHeight="0" ss:Height="18.75"
<Cell ss:StyleID="s23"<Data ss:Type="String"Fund</Data</Cell
<Cell ss:StyleID="s23"/
<Cell ss:StyleID="s23"<Data ss:Type="String"Eng</Data</Cell
<Cell ss:StyleID="s24" ss:Formula="=SUM(RC[1]:RC[11])"<Data
ss:Type="Number"0</Data</Cell
<Cell ss:StyleID="s25"/
<Cell ss:StyleID="s25"/
<Cell ss:StyleID="s25"/
<Cell ss:StyleID="s25"/
<Cell ss:StyleID="s25"/
<Cell ss:StyleID="s25"/
<Cell ss:StyleID="s25"/
<Cell ss:StyleID="s25"/
<Cell ss:StyleID="s25"/
<Cell ss:StyleID="s25"/
<Cell ss:StyleID="s25"/
</Row

The second cell, between FUND and ENG is where I need to add the combobox.

Does anyone have a clean way of doing this? also how about binding data to
this control. This data is coming from SQL DB, and not from a range in the
activesheet.

Thanks in advance
NaderH

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Programmatically adding code to worksheet Raj[_2_] Excel Programming 4 February 10th 08 02:27 AM
Programmatically Adding Code to a Workbook Chaplain Doug Excel Programming 0 August 24th 06 04:27 PM
Adding to AutoComplete programmatically Jim McLeod Excel Programming 3 April 19th 04 05:29 PM
Adding comment programmatically Carl Rapson Excel Programming 3 February 26th 04 11:01 PM
Adding Checkboxes Programmatically Mark D'Agosta Excel Programming 1 October 8th 03 03:20 AM


All times are GMT +1. The time now is 10:48 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"