Click here to Skip to main content
15,923,852 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionFCKEditor - How to filter out images and smileys from the editor's text / value? [modified] Pin
NetQuestions29-May-09 4:23
NetQuestions29-May-09 4:23 
QuestionHow to allow different kinds of text in textbox based on dropdownlist selecteditem? Pin
Pawan Kiran29-May-09 3:00
Pawan Kiran29-May-09 3:00 
AnswerRe: How to allow different kinds of text in textbox based on dropdownlist selecteditem? Pin
adatapost29-May-09 4:39
adatapost29-May-09 4:39 
GeneralRe: How to allow different kinds of text in textbox based on dropdownlist selecteditem? Pin
Pawan Kiran29-May-09 5:54
Pawan Kiran29-May-09 5:54 
GeneralRe: How to allow different kinds of text in textbox based on dropdownlist selecteditem? Pin
AlexeiXX329-May-09 11:11
AlexeiXX329-May-09 11:11 
GeneralRe: How to allow different kinds of text in textbox based on dropdownlist selecteditem? Pin
adatapost29-May-09 15:38
adatapost29-May-09 15:38 
QuestionRe: How to allow different kinds of text in textbox based on dropdownlist selecteditem? Pin
AlexeiXX329-May-09 11:08
AlexeiXX329-May-09 11:08 
Questionkindly reply to my issue. Pin
pujafaldu29-May-09 2:58
pujafaldu29-May-09 2:58 
i have created multiple uploading at runtime through javascript.
but at the time of upload file it can't find HttpFileCollection's File Request 0.
Thats why i am also getting file count 0.
Here i have attached the code for this one.Kindly help to find out this issue.Thanks.


function AddFileInput()
{
var tdFileInputs = document.getElementById('tdFileInputs');
var id = (new Date()).getTime();
var file = document.createElement('input');
file.setAttribute('id',id);

file.setAttribute('type','file');

tdFileInputs.appendChild(file);
var a = document.createElement('a');
a.setAttribute('id','remove_' + id);
a.innerHTML = "Remove<br>";
a.onclick = RemoveFileInput;

tdFileInputs.appendChild(a);
var lnkAttch = document.getElementById('lnkAttch');
count = count + 1;

if(count>0)
{
lnkAttch.innerHTML = "Attach another file";
document.getElementById("btnSend").style.display="";
}
else
{
document.getElementById("btnSend").style.display="none";
lnkAttch.innerHTML = "Attach a file";
}
}

function RemoveFileInput(e)
{
var Event = e ? e : window.event;
var obj = Event.target ? Event.target : window.event.srcElement;
var tdFileInputs = document.getElementById('tdFileInputs');
var a = document.getElementById(obj.id);
tdFileInputs.removeChild(a);
var fileInputId = obj.id.replace('remove_','');
var fileInput = document.getElementById(fileInputId);
tdFileInputs.removeChild(fileInput);
var lnkAttch = document.getElementById('lnkAttch');
count = count - 1;
if(count>0)
{
lnkAttch.innerHTML = "Attach another file";
document.getElementById("btnSend").style.display="";
}
else
{
lnkAttch.innerHTML = "Attach a file";
document.getElementById("btnSend").style.display="none";
}
}




Attachments:


Attach a file

 
<asp:button id="btnSend" runat="server" text="Upload" onclick="btnSend_Click">



<asp:label runat="server" id="lblFiles">




//code behind code is here...........................



protected void btnSend_Click(object sender, EventArgs e)
{
lblFiles.Text = "";

//Note: Here i can't get files..............................

HttpFileCollection files = Request.Files;
for (int i = 0; i < files.Count; i++)
{
HttpPostedFile file = files[i];
if (file.ContentLength > 0)
{
//You can perform uploading here
lblFiles.Text += "
" + String.Format("File : {0} uploaded.", file.FileName);
}
}
}
AnswerRe: kindly reply to my issue. Pin
Vimalsoft(Pty) Ltd29-May-09 4:43
professionalVimalsoft(Pty) Ltd29-May-09 4:43 
QuestionHow to force web service to run at client side? Pin
I'm a beginner29-May-09 2:40
I'm a beginner29-May-09 2:40 
AnswerRe: How to force web service to run at client side? Pin
adatapost29-May-09 4:46
adatapost29-May-09 4:46 
GeneralRe: How to force web service to run at client side? Pin
I'm a beginner29-May-09 5:58
I'm a beginner29-May-09 5:58 
GeneralRe: How to force web service to run at client side? Pin
Ramesh Swaminathan29-May-09 6:37
Ramesh Swaminathan29-May-09 6:37 
AnswerRe: How to force web service to run at client side? Pin
Bassam Saoud29-May-09 11:20
Bassam Saoud29-May-09 11:20 
QuestionHow to pass the checked row from one gridview to another Pin
meeram39529-May-09 2:35
meeram39529-May-09 2:35 
AnswerRe: How to pass the checked row from one gridview to another Pin
adatapost29-May-09 4:50
adatapost29-May-09 4:50 
AnswerRe: How to pass the checked row from one gridview to another Pin
Ramesh Swaminathan29-May-09 6:30
Ramesh Swaminathan29-May-09 6:30 
QuestionHow to resolve Failed to open a rowset problem in crystal report Pin
mani.thirumalai29-May-09 2:25
mani.thirumalai29-May-09 2:25 
AnswerRe: How to resolve Failed to open a rowset problem in crystal report Pin
Ramesh Swaminathan29-May-09 6:06
Ramesh Swaminathan29-May-09 6:06 
QuestionRealTime browser games Pin
il_manti29-May-09 1:47
il_manti29-May-09 1:47 
AnswerRe: RealTime browser games Pin
Paddy Boyd29-May-09 2:24
Paddy Boyd29-May-09 2:24 
AnswerRe: RealTime browser games Pin
Matt Cavanagh29-May-09 2:38
Matt Cavanagh29-May-09 2:38 
Questionhow to access application through Intranet! Pin
Learner52029-May-09 1:32
Learner52029-May-09 1:32 
AnswerRe: how to access application through Intranet! Pin
Manas Bhardwaj29-May-09 2:22
professionalManas Bhardwaj29-May-09 2:22 
AnswerRe: how to access application through Intranet! Pin
Baran M29-May-09 4:04
Baran M29-May-09 4:04 

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.