Click here to Skip to main content
15,894,405 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Current theme Pin
michaelschmitt15-Apr-10 8:23
michaelschmitt15-Apr-10 8:23 
QuestionAdd HTML table row at run time by clicking a button Pin
_______________________14-Apr-10 4:26
_______________________14-Apr-10 4:26 
AnswerRe: Add HTML table row at run time by clicking a button Pin
Martin Jarvis14-Apr-10 10:58
Martin Jarvis14-Apr-10 10:58 
GeneralRe: Add HTML table row at run time by clicking a button Pin
_______________________14-Apr-10 16:45
_______________________14-Apr-10 16:45 
GeneralRe: Add HTML table row at run time by clicking a button Pin
Martin Jarvis14-Apr-10 23:00
Martin Jarvis14-Apr-10 23:00 
AnswerRe: Add HTML table row at run time by clicking a button Pin
daveyerwin14-Apr-10 12:14
daveyerwin14-Apr-10 12:14 
GeneralRe: Add HTML table row at run time by clicking a button Pin
Martin Jarvis14-Apr-10 23:02
Martin Jarvis14-Apr-10 23:02 
GeneralRe: Add HTML table row at run time by clicking a button Pin
daveyerwin15-Apr-10 1:18
daveyerwin15-Apr-10 1:18 
Martin Jarvis wrote:
they'll need to access the values entered into the new row from ASP.Net and that means a server side control needs to be created and persisted


Wrong.Consider this brief example of accessing the value of
javascript generated form element for which no server side
control is created nor persisted.

<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
    <script type="text/javascript">
    init = function(){
    for(i=0;i<3;i++){
    frm = document.forms[0];
    rdobt = document.createElement("INPUT");
    rdobt.type = "RADIO"
    rdobt.name = "radio"
    rdobt.id = "rdobt1"
    rdobt.value = i
    frm.appendChild(rdobt)
    }
}
    
    </script>
</head>
<body onload="init()">
    <form id="form1" runat="server">
    <div>
    
    
    <input type="submit" />
    </div>
    </form>
</body>
</html>



using System;
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;

public partial class _Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if(IsPostBack){


            Response.Write(Request["radio"]);
        }
    }
}

GeneralRe: Add HTML table row at run time by clicking a button Pin
Martin Jarvis15-Apr-10 1:26
Martin Jarvis15-Apr-10 1:26 
Questionwindow.open The Pop window can be resize as per the content of the page Pin
Sandesh M Patil14-Apr-10 4:02
Sandesh M Patil14-Apr-10 4:02 
AnswerRe: window.open The Pop window can be resize as per the content of the page Pin
michaelschmitt14-Apr-10 5:38
michaelschmitt14-Apr-10 5:38 
GeneralRe: window.open The Pop window can be resize as per the content of the page Pin
Sandesh M Patil14-Apr-10 6:14
Sandesh M Patil14-Apr-10 6:14 
GeneralRe: window.open The Pop window can be resize as per the content of the page Pin
daveyerwin14-Apr-10 7:05
daveyerwin14-Apr-10 7:05 
GeneralRe: window.open The Pop window can be resize as per the content of the page Pin
Sandesh M Patil14-Apr-10 22:33
Sandesh M Patil14-Apr-10 22:33 
GeneralRe: window.open The Pop window can be resize as per the content of the page Pin
michaelschmitt14-Apr-10 23:31
michaelschmitt14-Apr-10 23:31 
QuestionHow to Run 32 bit aspnet 1.1 applications on 64 bit machine. Pin
surender.m14-Apr-10 2:19
surender.m14-Apr-10 2:19 
AnswerRe: How to Run 32 bit aspnet 1.1 applications on 64 bit machine. Pin
Not Active14-Apr-10 2:32
mentorNot Active14-Apr-10 2:32 
GeneralRe: How to Run 32 bit aspnet 1.1 applications on 64 bit machine. Pin
surender.m14-Apr-10 3:05
surender.m14-Apr-10 3:05 
GeneralRe: How to Run 32 bit aspnet 1.1 applications on 64 bit machine. Pin
Not Active14-Apr-10 3:36
mentorNot Active14-Apr-10 3:36 
GeneralRe: How to Run 32 bit aspnet 1.1 applications on 64 bit machine. Pin
surender.m14-Apr-10 18:10
surender.m14-Apr-10 18:10 
GeneralRe: How to Run 32 bit aspnet 1.1 applications on 64 bit machine. Pin
Not Active14-Apr-10 20:42
mentorNot Active14-Apr-10 20:42 
GeneralRe: How to Run 32 bit aspnet 1.1 applications on 64 bit machine. Pin
surender.m14-Apr-10 20:48
surender.m14-Apr-10 20:48 
GeneralRe: How to Run 32 bit aspnet 1.1 applications on 64 bit machine. Pin
Not Active15-Apr-10 1:58
mentorNot Active15-Apr-10 1:58 
QuestionMSChart Pin
Tufail Ahmad14-Apr-10 2:14
Tufail Ahmad14-Apr-10 2:14 
QuestionHow to avoid postback of ASP: Image Button Pin
ChandrakanthGaddam14-Apr-10 1:50
ChandrakanthGaddam14-Apr-10 1:50 

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.