Click here to Skip to main content
15,890,438 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: how to handle users at the same time to get different primarkey value Pin
Tej Aj20-Jun-10 21:20
Tej Aj20-Jun-10 21:20 
GeneralRe: how to handle users at the same time to get different primarkey value Pin
developerit20-Jun-10 21:47
developerit20-Jun-10 21:47 
QuestionAdding control and serverside script to page dynamically Pin
Fayu19-Jun-10 17:26
Fayu19-Jun-10 17:26 
AnswerRe: Adding control and serverside script to page dynamically Pin
Not Active20-Jun-10 1:43
mentorNot Active20-Jun-10 1:43 
GeneralRe: Adding control and serverside script to page dynamically [modified] Pin
Fayu20-Jun-10 4:41
Fayu20-Jun-10 4:41 
GeneralRe: Adding control and serverside script to page dynamically Pin
Not Active20-Jun-10 4:44
mentorNot Active20-Jun-10 4:44 
GeneralRe: Adding control and serverside script to page dynamically Pin
Fayu20-Jun-10 5:12
Fayu20-Jun-10 5:12 
GeneralRe: Adding control and serverside script to page dynamically Pin
Not Active20-Jun-10 9:21
mentorNot Active20-Jun-10 9:21 
You do understand that SERVER side scripts are processed on the SERVER? Injecting them in the page on the server is not going to accomplsih anything.

Take a look at other CMS applications such as SharePoint and you will fined they use templates and page level parsers to inject dynamic controls into the output stream.

To add a control and event handler to the page you do something like this.

protected void OnInit(...)
{
   Button myBtn = new Button();
   myBtn.Text = "Some text";
   myBtn.Click += new OnClick;

   Page.Controls.Add(myBtn);
}

protected void OnClick(object sender, EventArgs e)
{
  ...
}


I know the language. I've read a book. - _Madmatt

GeneralRe: Adding control and serverside script to page dynamically Pin
Fayu20-Jun-10 12:27
Fayu20-Jun-10 12:27 
AnswerRe: Adding control and serverside script to page dynamically Pin
NeverHeardOfMe20-Jun-10 4:01
NeverHeardOfMe20-Jun-10 4:01 
GeneralRe: Adding control and serverside script to page dynamically Pin
Fayu20-Jun-10 4:39
Fayu20-Jun-10 4:39 
QuestionLock down a web site's allowable IP range to just one IP address [modified] Pin
jpang00119-Jun-10 15:43
jpang00119-Jun-10 15:43 
AnswerRe: Lock down a web site's allowable IP range to just one IP address Pin
DaveAuld19-Jun-10 23:46
professionalDaveAuld19-Jun-10 23:46 
GeneralRe: Lock down a web site's allowable IP range to just one IP address Pin
jpang00120-Jun-10 3:35
jpang00120-Jun-10 3:35 
GeneralRe: Lock down a web site's allowable IP range to just one IP address Pin
Dimitri Witkowski20-Jun-10 3:57
Dimitri Witkowski20-Jun-10 3:57 
AnswerRe: Lock down a web site's allowable IP range to just one IP address Pin
DaveAuld20-Jun-10 4:20
professionalDaveAuld20-Jun-10 4:20 
Question.asp Pin
AndyInUK19-Jun-10 12:19
AndyInUK19-Jun-10 12:19 
AnswerRe: .asp Pin
NeverHeardOfMe19-Jun-10 13:25
NeverHeardOfMe19-Jun-10 13:25 
QuestionProcessing webpage post (automated) Pin
David Hovey19-Jun-10 11:27
David Hovey19-Jun-10 11:27 
QuestionGoogleMap as UserControl, using ModalPopup Pin
giantsover19-Jun-10 3:54
giantsover19-Jun-10 3:54 
AnswerRe: GoogleMap as UserControl, using ModalPopup Pin
DaveAuld19-Jun-10 6:40
professionalDaveAuld19-Jun-10 6:40 
GeneralRe: GoogleMap as UserControl, using ModalPopup Pin
giantsover19-Jun-10 8:24
giantsover19-Jun-10 8:24 
GeneralRe: GoogleMap as UserControl, using ModalPopup Pin
DaveAuld19-Jun-10 23:59
professionalDaveAuld19-Jun-10 23:59 
QuestionVisualisation of data table during debugging - function evaluation timeout Pin
ChrisFarrugia19-Jun-10 3:20
ChrisFarrugia19-Jun-10 3:20 
QuestionHyperlink Pin
farokhian19-Jun-10 2:26
farokhian19-Jun-10 2:26 

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.