Click here to Skip to main content
15,914,221 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionSession State variables within UserControls [modified] Pin
Travis D. Mathison14-Jul-06 0:22
Travis D. Mathison14-Jul-06 0:22 
AnswerRe: Session State variables within UserControls Pin
Guffa14-Jul-06 2:02
Guffa14-Jul-06 2:02 
AnswerRe: Session State variables within UserControls Pin
bluewavestrider14-Jul-06 6:06
bluewavestrider14-Jul-06 6:06 
QuestionProbmem Inside vb.net1.1 [modified] Pin
amaneet14-Jul-06 0:08
amaneet14-Jul-06 0:08 
QuestionEditItemTemplate in vb.net 1.1 Pin
amaneet13-Jul-06 23:47
amaneet13-Jul-06 23:47 
AnswerRe: EditItemTemplate in vb.net 1.1 Pin
mnaveed14-Jul-06 1:05
mnaveed14-Jul-06 1:05 
GeneralRe: EditItemTemplate in vb.net 1.1 Pin
amaneet14-Jul-06 1:37
amaneet14-Jul-06 1:37 
GeneralRe: EditItemTemplate in vb.net 1.1 Pin
mnaveed14-Jul-06 2:51
mnaveed14-Jul-06 2:51 
add the class like this in ur code you can modifiy the AddRow function for ur requirments.
public class ItemTemplateTable: ITemplate<br />
{<br />
    string tableName;<br />
    public ItemTemplateTable(string TableName)<br />
	{<br />
        this.tableName = TableName;<br />
	}<br />
    public void InstantiateIn(Control objContainer)<br />
    {<br />
        Table tbl = new Table();<br />
        AddRows(tbl);<br />
        objContainer.Controls.Add(tbl);<br />
    }<br />
    public void AddRows(Table tbl)<br />
    {<br />
        for (int row = 0; row < 3; row++)<br />
        {<br />
            TableRow tr = new TableRow();<br />
            for (int col = 0; col < 2; col++)<br />
            {<br />
                TableCell c = new TableCell();<br />
                c.Controls.Add(new LiteralControl("row " + row.ToString() + ", cell " + col.ToString()));<br />
                tr.Cells.Add(c);<br />
            }<br />
            tbl.Rows.Add(tr);<br />
        }<br />
    }<br />
}<br />
//adding Tablecolumn in grid  where u creating your Grid and other columns<br />
        TemplateColumn tcl = new TemplateColumn();<br />
        tcl.ItemTemplate = new ItemTemplateTable("Test");<br />
        DataGrid1.Columns.Add(tcl);



hope every thing will clear now

Nav.
GeneralRe: EditItemTemplate in vb.net 1.1 Pin
amaneet14-Jul-06 3:05
amaneet14-Jul-06 3:05 
GeneralRe: EditItemTemplate in vb.net 1.1 Pin
mnaveed14-Jul-06 3:29
mnaveed14-Jul-06 3:29 
QuestionCan web apps interoperate with outlook? Pin
Red_Wizard_Shot_The_Food13-Jul-06 23:14
Red_Wizard_Shot_The_Food13-Jul-06 23:14 
AnswerRe: Can web apps interoperate with outlook? Pin
Brent Lamborn14-Jul-06 7:02
Brent Lamborn14-Jul-06 7:02 
QuestionTo print an html page without loading it and without a print dialog, in asp.net Pin
sai_akkina13-Jul-06 22:51
sai_akkina13-Jul-06 22:51 
GeneralRe: To print an html page without loading it and without a print dialog, in asp.net Pin
Guffa13-Jul-06 23:03
Guffa13-Jul-06 23:03 
Question'System.StackOverflowException' occurred in System.Data.dll(urgent) Pin
srinandan..13-Jul-06 22:37
srinandan..13-Jul-06 22:37 
AnswerRe: 'System.StackOverflowException' occurred in System.Data.dll(urgent) Pin
enjoycrack13-Jul-06 22:41
enjoycrack13-Jul-06 22:41 
QuestionSession_end or browser close events? Pin
TintinV3ck13-Jul-06 22:23
TintinV3ck13-Jul-06 22:23 
AnswerRe: Session_end or browser close events? Pin
enjoycrack13-Jul-06 22:40
enjoycrack13-Jul-06 22:40 
AnswerRe: Session_end or browser close events? Pin
Guffa13-Jul-06 23:11
Guffa13-Jul-06 23:11 
GeneralRe: Session_end or browser close events? Pin
cloudking1196614-Jul-06 3:44
cloudking1196614-Jul-06 3:44 
QuestionASP.NET page is not working.............!!! Pin
gajee13-Jul-06 21:01
gajee13-Jul-06 21:01 
AnswerRe: ASP.NET page is not working.............!!! [modified] Pin
J4amieC13-Jul-06 22:30
J4amieC13-Jul-06 22:30 
AnswerRe: ASP.NET page is not working.............!!! Pin
enjoycrack13-Jul-06 22:45
enjoycrack13-Jul-06 22:45 
AnswerRe: ASP.NET page is not working.............!!! Pin
Guffa13-Jul-06 23:25
Guffa13-Jul-06 23:25 
AnswerRe: ASP.NET page is not working.............!!! Pin
gajee15-Jul-06 1:27
gajee15-Jul-06 1:27 

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.