Click here to Skip to main content
15,892,674 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Generalfit to Screensize application Pin
eyeseetee7-Jan-08 0:48
eyeseetee7-Jan-08 0:48 
GeneralRe: fit to Screensize application Pin
N a v a n e e t h7-Jan-08 0:55
N a v a n e e t h7-Jan-08 0:55 
GeneralRe: fit to Screensize application Pin
eyeseetee7-Jan-08 1:00
eyeseetee7-Jan-08 1:00 
GeneralRe: fit to Screensize application Pin
Declan Bright7-Jan-08 0:59
Declan Bright7-Jan-08 0:59 
GeneralRe: fit to Screensize application Pin
eyeseetee7-Jan-08 5:14
eyeseetee7-Jan-08 5:14 
GeneralCheck all checkboxs in a Table Pin
danasegaranea7-Jan-08 0:37
danasegaranea7-Jan-08 0:37 
GeneralRe: Check all checkboxs in a Table Pin
Declan Bright7-Jan-08 1:01
Declan Bright7-Jan-08 1:01 
GeneralRe: Check all checkboxs in a Table Pin
danasegaranea7-Jan-08 1:39
danasegaranea7-Jan-08 1:39 
Thanks for the reply Bright. I tried like this
<script language=javascript><br />
		  function checkall(chk)<br />
		  {<br />
		    for(i=0;i < chk.length;i++)<br />
		    {<br />
		       chk[i].checked=true;<br />
		       document.all.<br />
		    }<br />
		    <br />
		  }<br />
		</script><br />
</HEAD><br />
<body MS_POSITIONING="GridLayout"><br />
		<form id="Form1" method="post" runat="server"><br />
<asp:Button id=Button1 style="Z-INDEX: 101; LEFT: 216px; POSITION: absolute; TOP: 16px" onclick="checkall(document.all.chk_Resources)" runat="server" Text="Button" ></asp:Button></asp:PlaceHolder></form><br />
	</body>


Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<br />
        'Put user code to initialize the page here<br />
        Dim table As Table = New Table<br />
        table.BorderWidth = Unit.Pixel(1)<br />
        table.BorderColor = ColorTranslator.FromHtml("#111111")<br />
        table.Width = Unit.Percentage(99)<br />
        table.CellPadding = 2<br />
        table.CellSpacing = 2<br />
        Dim cell As TableCell<br />
        Dim row As TableRow = New TableRow<br />
        Dim HeaderCel As TableHeaderCell<br />
        For n As Integer = 0 To 2<br />
            HeaderCel = New TableHeaderCell<br />
            HeaderCel.Text = "Heading" & n<br />
            row.Cells.Add(HeaderCel)<br />
        Next<br />
        table.Rows.Add(row)<br />
        Dim tblrow As TableRow<br />
        Dim tblCell As TableCell<br />
        Dim tblTextBox As TextBox<br />
        Dim chkbox As CheckBox<br />
        For n As Integer = 0 To 2<br />
            tblrow = New TableRow<br />
            tblCell = New TableCell<br />
            tblCell.Text = n.ToString<br />
            tblrow.Cells.Add(tblCell)<br />
            tblCell = New TableCell<br />
            tblTextBox = New TextBox<br />
            tblCell.Controls.Add(tblTextBox)<br />
            tblrow.Cells.Add(tblCell)<br />
            tblCell = New TableCell<br />
            chkbox = New CheckBox<br />
            chkbox.Text = "Test" & n.ToString<br />
            chkbox.ID = "chk_Resources"<br />
            tblCell.Controls.Add(chkbox)<br />
            tblrow.Cells.Add(tblCell)<br />
            table.Rows.Add(tblrow)<br />
        Next<br />
<br />
        PlaceHolder1.Controls.Add(table)<br />
<br />
<br />
<br />
    End Sub


and got the error as "'checkall' is not a member of 'ASP.WebForm1_aspx'" .. What could be the problem ?

Thanks
Dana
GeneralRe: Check all checkboxs in a Table Pin
Declan Bright7-Jan-08 1:52
Declan Bright7-Jan-08 1:52 
Generalfile upload problem Pin
Mogaambo7-Jan-08 0:36
Mogaambo7-Jan-08 0:36 
GeneralRe: file upload problem Pin
Michael Sync7-Jan-08 4:04
Michael Sync7-Jan-08 4:04 
AnswerRe: file upload problem Pin
UsmanMunier9-Jan-08 23:07
UsmanMunier9-Jan-08 23:07 
Generalhide toolbar and address bar of window Pin
RajeevKumarSharma7-Jan-08 0:30
RajeevKumarSharma7-Jan-08 0:30 
GeneralRe: hide toolbar and address bar of window Pin
Michael Sync7-Jan-08 4:07
Michael Sync7-Jan-08 4:07 
Questionhow can i read the pdf files hyperlink address Pin
koolprasad20037-Jan-08 0:03
professionalkoolprasad20037-Jan-08 0:03 
GeneralSelecting interested columns to print using FilePrint() API of MSProject. Pin
Nagraj Naik6-Jan-08 23:47
Nagraj Naik6-Jan-08 23:47 
GeneralEmail Tracking in c# Using Asp.net [modified] Pin
angel_oct116-Jan-08 23:42
angel_oct116-Jan-08 23:42 
GeneralRe: Email Tracking in c# Using Asp.net Pin
Declan Bright6-Jan-08 23:48
Declan Bright6-Jan-08 23:48 
GeneralRe: Email Tracking in c# Using Asp.net Pin
N a v a n e e t h7-Jan-08 0:26
N a v a n e e t h7-Jan-08 0:26 
GeneralRe: Email Tracking in c# Using Asp.net Pin
Declan Bright7-Jan-08 0:33
Declan Bright7-Jan-08 0:33 
GeneralAsp.net dialogbox problem Pin
monika_vasvani6-Jan-08 23:17
monika_vasvani6-Jan-08 23:17 
GeneralRe: Asp.net dialogbox problem Pin
Declan Bright6-Jan-08 23:23
Declan Bright6-Jan-08 23:23 
GeneralRe: Asp.net dialogbox problem Pin
Paddy Boyd7-Jan-08 0:27
Paddy Boyd7-Jan-08 0:27 
GeneralRe: Asp.net dialogbox problem Pin
Michael Sync7-Jan-08 4:13
Michael Sync7-Jan-08 4:13 
QuestionIs there a FTP command that gets the size of a folder, or another way of getting the full folder size on a different machine? Pin
thomasa6-Jan-08 23:12
thomasa6-Jan-08 23:12 

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.