Click here to Skip to main content
15,887,436 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Mail on every exception Pin
Rock Star.24-Dec-09 3:36
Rock Star.24-Dec-09 3:36 
AnswerRe: Mail on every exception Pin
Abhishek Sur24-Dec-09 11:07
professionalAbhishek Sur24-Dec-09 11:07 
GeneralRe: Mail on every exception Pin
Rock Star.27-Dec-09 22:32
Rock Star.27-Dec-09 22:32 
QuestionUpdate profile for other users Pin
MDem23-Dec-09 22:51
MDem23-Dec-09 22:51 
QuestionAdding asp controls using Javascript Pin
getaccessyr23-Dec-09 20:44
getaccessyr23-Dec-09 20:44 
AnswerRe: Adding asp controls using Javascript Pin
Abhishek Sur23-Dec-09 20:51
professionalAbhishek Sur23-Dec-09 20:51 
GeneralRe: Adding asp controls using Javascript Pin
getaccessyr23-Dec-09 21:00
getaccessyr23-Dec-09 21:00 
GeneralRe: Adding asp controls using Javascript Pin
Abhishek Sur23-Dec-09 21:42
professionalAbhishek Sur23-Dec-09 21:42 
getaccessyr wrote:
Remind that NO one is efficient as they think themselves ok,Even you.

I agree.... budd..

My suggestion is not meant to make you down. I just wanted to know if you know the basics clear. I have seen lots of people who doesnt knows basics right..

Well, regarding your issue, say you want to add a control in the client side, use this :
function addElement() {
    var element = document.createElement('input');
    element.id = 'txtbox1';
    element.name = 'txtbox1';
    element.type = 'text';
    var cont = document.getElementById('mydiv');
    cont.appendChild(element);
}

This will add a textbox in the client side to a container div element.

Now If you want to detect what value you enter in the client side to this textbox use :
string valueEntered = this.Request.Form["txtbox1"];

Also if you want to control to appear in the client side, add the control to the divelement in the server side also during this postback.

Actually, when postback occurs, the page is recreated in the server side and thus any client side controls that is created will be removed. If you want the textbox again, recreate the TextBox object using
TextBox tb = new TextBox();
tb.Text = valueEntered;
this.mydiv.Controls.add(tb);


I hope you are clear now. Rose | [Rose]

Abhishek Sur
Don't forget to click "Good Answer" if you like this Solution.
My Latest Articles-->

Simplify Code Using NDepend
Basics of Bing Search API using .NET
Microsoft Bing MAP using Javascript

GeneralRe: Adding asp controls using Javascript Pin
getaccessyr23-Dec-09 21:43
getaccessyr23-Dec-09 21:43 
GeneralRe: Adding asp controls using Javascript Pin
sashidhar23-Dec-09 22:11
sashidhar23-Dec-09 22:11 
GeneralRe: Adding asp controls using Javascript Pin
getaccessyr23-Dec-09 23:50
getaccessyr23-Dec-09 23:50 
GeneralRe: Adding asp controls using Javascript Pin
Abhishek Sur24-Dec-09 7:13
professionalAbhishek Sur24-Dec-09 7:13 
GeneralRe: Adding asp controls using Javascript Pin
sashidhar23-Dec-09 22:18
sashidhar23-Dec-09 22:18 
QuestionCrystal Reports license Error Pin
NinaWilliam23-Dec-09 19:02
NinaWilliam23-Dec-09 19:02 
AnswerRe: Crystal Reports license Error Pin
Abhishek Sur23-Dec-09 20:52
professionalAbhishek Sur23-Dec-09 20:52 
GeneralRe: Crystal Reports license Error Pin
NinaWilliam26-Dec-09 22:09
NinaWilliam26-Dec-09 22:09 
GeneralRe: Crystal Reports license Error Pin
NinaWilliam27-Dec-09 23:18
NinaWilliam27-Dec-09 23:18 
GeneralRe: Crystal Reports license Error Pin
NinaWilliam30-Dec-09 18:56
NinaWilliam30-Dec-09 18:56 
GeneralRe: Crystal Reports license Error Pin
NinaWilliam30-Dec-09 19:22
NinaWilliam30-Dec-09 19:22 
GeneralRe: Crystal Reports license Error Pin
NinaWilliam16-Jan-10 21:20
NinaWilliam16-Jan-10 21:20 
GeneralRe: Crystal Reports license Error Pin
NinaWilliam23-Jan-10 20:22
NinaWilliam23-Jan-10 20:22 
QuestionThe underlying connection was closed: An unexpected error occurred on a receive Pin
WinCrs23-Dec-09 17:22
WinCrs23-Dec-09 17:22 
QuestionSetting a href property in a anchor tag with Javascript Pin
Tina P23-Dec-09 16:55
Tina P23-Dec-09 16:55 
AnswerRe: Setting a href property in a anchor tag with Javascript Pin
m-khansari23-Dec-09 18:21
m-khansari23-Dec-09 18:21 
AnswerRe: Setting a href property in a anchor tag with Javascript Pin
Abhishek Sur23-Dec-09 20:57
professionalAbhishek Sur23-Dec-09 20:57 

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.