Click here to Skip to main content
15,892,072 members
Home / Discussions / C#
   

C#

 
GeneralSOLVED Pin
Tristan Rhodes12-Dec-03 10:36
Tristan Rhodes12-Dec-03 10:36 
QuestionHow to compile inline code documentation into assemblies? Pin
Vasek12-Dec-03 1:43
Vasek12-Dec-03 1:43 
AnswerRe: How to compile inline code documentation into assemblies? Pin
Nigel Savidge12-Dec-03 2:01
Nigel Savidge12-Dec-03 2:01 
GeneralRe: How to compile inline code documentation into assemblies? Pin
Vasek15-Dec-03 7:15
Vasek15-Dec-03 7:15 
GeneralRe: How to compile inline code documentation into assemblies? Pin
Nigel Savidge15-Dec-03 7:39
Nigel Savidge15-Dec-03 7:39 
Generalreading from registry using Win API dll Pin
Member 51467212-Dec-03 0:33
Member 51467212-Dec-03 0:33 
GeneralRe: reading from registry using Win API dll Pin
Heath Stewart12-Dec-03 4:25
protectorHeath Stewart12-Dec-03 4:25 
GeneralCreate Server Event using code Pin
AEKirin12-Dec-03 0:12
professionalAEKirin12-Dec-03 0:12 
I need to 'associate' a Server Event to a Button via code. I built a Form, a Table, and a Button and I need to get a server event attached to the 'click' method for that button see code snippet below...

HtmlForm frmROPtbl = new HtmlForm();
frmROPtbl.Attributes.Add("runat", "server");

Table maintable = new Table();
maintable.Width = Unit.Percentage(100);
TableRow hdrRow = new TableRow();
TableCell hdrCell0 = new TableCell();
TableCell hdrCell1 = new TableCell();
hdrRow.Width = Unit.Percentage(100);
hdrCell0.Width = Unit.Percentage(50);
hdrCell1.Width = Unit.Percentage(50);
Label hdrLabel = new Label();
hdrLabel.ID = "lblCustomerDesc".ToString();
hdrLabel.Width = Unit.Pixel(360);

Button btnToExcel = new Button();
btnToExcel.ID = "btnToExcel";
btnToExcel.CssClass ="Button".ToString();
btnToExcel.Text = "To Excel";
btnToExcel.Click += new System.EventHandler(this.btnToExcel_Click);

btnToExcel.Attributes.Add("runat", "server");
//* Attach a Server Event to this Button

hdrCell0.Controls.Add(hdrLabel);
hdrCell1.Controls.Add(btnToExcel);

hdrRow.Cells.Add (hdrCell0);
hdrRow.Cells.Add (hdrCell1);
...


Thanks
Andy
(Andrew.Kirin@verizon.net)

GeneralRe: Create Server Event using code Pin
Heath Stewart12-Dec-03 4:15
protectorHeath Stewart12-Dec-03 4:15 
Generalmy fatherland Pin
duaneye200311-Dec-03 23:23
duaneye200311-Dec-03 23:23 
GeneralStatic libraries and C# Pin
Severino11-Dec-03 22:20
Severino11-Dec-03 22:20 
GeneralRe: Static libraries and C# Pin
Heath Stewart12-Dec-03 4:05
protectorHeath Stewart12-Dec-03 4:05 
GeneralRe: Static libraries and C# Pin
Eric Gunnerson (msft)12-Dec-03 13:31
Eric Gunnerson (msft)12-Dec-03 13:31 
Generalshow form from worker thread Pin
Alastair Stell11-Dec-03 19:34
Alastair Stell11-Dec-03 19:34 
GeneralRe: show form from worker thread Pin
Corinna John11-Dec-03 19:40
Corinna John11-Dec-03 19:40 
GeneralRe: show form from worker thread Pin
Alastair Stell11-Dec-03 19:46
Alastair Stell11-Dec-03 19:46 
GeneralRe: show form from worker thread Pin
Alastair Stell11-Dec-03 19:47
Alastair Stell11-Dec-03 19:47 
GeneralRe: show form from worker thread Pin
Corinna John11-Dec-03 21:35
Corinna John11-Dec-03 21:35 
QuestionHow to displaying User Options in a Windows Service Pin
john ingram11-Dec-03 11:56
john ingram11-Dec-03 11:56 
AnswerRe: How to displaying User Options in a Windows Service Pin
Heath Stewart11-Dec-03 12:01
protectorHeath Stewart11-Dec-03 12:01 
Questionhow do I add a Footer to a datagrid (windows forms) Pin
mdolby11-Dec-03 11:25
mdolby11-Dec-03 11:25 
AnswerRe: how do I add a Footer to a datagrid (windows forms) Pin
Heath Stewart11-Dec-03 11:35
protectorHeath Stewart11-Dec-03 11:35 
GeneralRe: how do I add a Footer to a datagrid (windows forms) Pin
john ingram12-Dec-03 2:23
john ingram12-Dec-03 2:23 
Generalassembly versioning Pin
Dave Bryant11-Dec-03 11:05
Dave Bryant11-Dec-03 11:05 
GeneralRe: assembly versioning Pin
Heath Stewart11-Dec-03 11:31
protectorHeath Stewart11-Dec-03 11:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.