Click here to Skip to main content
16,014,613 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: how to inherit two class file Pin
Abhijit Jana15-Jun-09 21:14
professionalAbhijit Jana15-Jun-09 21:14 
AnswerRe: how to inherit two class file Pin
Christian Graus15-Jun-09 21:19
protectorChristian Graus15-Jun-09 21:19 
Questiondynamic site map path Pin
llibin15-Jun-09 20:30
llibin15-Jun-09 20:30 
Questionshared hosting, required permission can not be acquired , how to find which part of DLL requires which permissions ? [modified] Pin
logicaldna15-Jun-09 20:18
logicaldna15-Jun-09 20:18 
QuestionHow to get a webpage as an image? Pin
Spunky Coder15-Jun-09 20:15
Spunky Coder15-Jun-09 20:15 
AnswerRe: How to get a webpage as an image? Pin
himanshu256115-Jun-09 20:34
himanshu256115-Jun-09 20:34 
GeneralRe: How to get a webpage as an image? Pin
Spunky Coder15-Jun-09 20:38
Spunky Coder15-Jun-09 20:38 
Questioncan't store value of dynamically generated upload controls. Pin
pujafaldu15-Jun-09 20:10
pujafaldu15-Jun-09 20:10 
Hi....

I have created multiple file uploads on button click through javascript.
It works fine...
But the problem is that when i fire any server hit in that page the controls i have added is gone, and i have to add them again.
kindly help to resolve this issue.

Thanks.

Here is code.



var i=0;
function addAttachment()
{
i++;
var atts=document.getElementById("attachments");
//create child div

var divChild=document.createElement("div");
divChild.id="div"+i.toString();
atts.appendChild(divChild);

var newAtt=document.createElement("input");
newAtt.id="file"+i.toString();
newAtt.name="file"+i.toString();
newAtt.type="file";
divChild.appendChild(newAtt);

//Create a tag
var aElement=document.createElement("a");
aElement.id="afile"+i.toString();
var aText=document.createTextNode("remove");
aElement.appendChild(aText);
aElement.setAttribute("href","#");

if(navigator.appName=="Microsoft Internet Explorer")
{
aElement.attachEvent("onclick",removeFun(divChild.id));
}
else
{
var eventHander=function(){removeAttachment.call(divChild.id);}

aElement.addEventListener("click",removeFun(divChild.id),false);
}


divChild.appendChild(aElement);

}
var removeFun=function(childDivId)
{
return function(){removeAttachment(childDivId);}
}
function removeAttachment(childDivId)
{
var atts=document.getElementById("attachments");
var child1=document.getElementById(childDivId.toString());

atts.removeChild(child1);

}



Questionhow to update grid view row on dropdown selection Pin
shahid_rasul15-Jun-09 19:21
shahid_rasul15-Jun-09 19:21 
GeneralRe: how to update grid view row on dropdown selection Pin
Kaushal Arora16-Jun-09 6:53
Kaushal Arora16-Jun-09 6:53 
Questionwant to load controls in aspx pg from the class file which is inherited Pin
anbusenthil15-Jun-09 18:42
anbusenthil15-Jun-09 18:42 
QuestionArithmetic overflow error converting int to data type numeric. The statement has been terminated. Pin
jigneshp2515-Jun-09 18:24
jigneshp2515-Jun-09 18:24 
AnswerRe: Arithmetic overflow error converting int to data type numeric. The statement has been terminated. Pin
saanj15-Jun-09 19:10
saanj15-Jun-09 19:10 
AnswerRe: Arithmetic overflow error converting int to data type numeric. The statement has been terminated. Pin
Baran M15-Jun-09 19:18
Baran M15-Jun-09 19:18 
AnswerRe: Arithmetic overflow error converting int to data type numeric. The statement has been terminated. Pin
Abhijit Jana15-Jun-09 19:33
professionalAbhijit Jana15-Jun-09 19:33 
AnswerRe: Arithmetic overflow error converting int to data type numeric. The statement has been terminated. Pin
Christian Graus15-Jun-09 21:20
protectorChristian Graus15-Jun-09 21:20 
QuestionHow can I add google map to a website Pin
Member 426027015-Jun-09 18:11
Member 426027015-Jun-09 18:11 
AnswerRe: How can I add google map to a website Pin
N a v a n e e t h15-Jun-09 18:15
N a v a n e e t h15-Jun-09 18:15 
AnswerRe: How can I add google map to a website Pin
Not Active15-Jun-09 18:15
mentorNot Active15-Jun-09 18:15 
AnswerRe: How can I add google map to a website Pin
Baran M15-Jun-09 18:17
Baran M15-Jun-09 18:17 
GeneralRe: How can I add google map to a website Pin
Member 426027016-Jun-09 1:29
Member 426027016-Jun-09 1:29 
QuestionUsercontrol in Asp.net with C# Pin
mahichandu15-Jun-09 11:42
mahichandu15-Jun-09 11:42 
AnswerRe: Usercontrol in Asp.net with C# Pin
Not Active15-Jun-09 11:55
mentorNot Active15-Jun-09 11:55 
GeneralRe: Usercontrol in Asp.net with C# Pin
Christian Graus15-Jun-09 15:05
protectorChristian Graus15-Jun-09 15:05 
GeneralRe: Usercontrol in Asp.net with C# Pin
Not Active15-Jun-09 15:25
mentorNot Active15-Jun-09 15:25 

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.