|
did you get an answer for this?
|
|
|
|
|
Hello
Is it possible to add a javascript function dynamicly into the "onload"-Element of the body tag, in a ASP.NET- website?
And How?
Best regards
Succo
|
|
|
|
|
Yes, it is possible.
First, in the aspx page add "id" and "runat" atttributes to the "body" element: <body id="main" runat="server"> . Second, add code that adds the "onload" attribute/value to the "body" element: main.Attributes.Add("onLoad", "javacript code");
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
Hi
I want if any one of my group is online his name should appear in green color. It’s something like GMAIL Quick Contacts. Please help me with some idea. I am using asp.net 2005.
Regard’s
Smruti
|
|
|
|
|
Obviously, if yuo're using ASP.NET, and you want this to happen in something resembling real time, you need to have an ajax callback every second or so, or you need to write a control you embed in your web page.
If you just want to see it on postback, then the only question that needs to be answered is, what defines 'online', and how do you detect it ? GMail doesn't detect that people are online, it detects that they have gmail open. If you want to just detect that someone is on the web, regardless of using any program or website, and they don't have a static IP, then you're out of luck.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Thanks Christian,
I want something like that only. I have a portal where I have save some user id. I want if any one login he should visible to me. Is it wise to send request to server every time?
Regards
Smruti
|
|
|
|
|
|
stream2ocean wrote: I'm a beginer!
why dont start with some easy job first?...
stream2ocean wrote: help me create forums like "CodeProject forums"
You can search out some open source projects and learn from them...
<< >>
|
|
|
|
|
I see you found the ASp.NET forum, why did you also post in the lounge ? Where it says 'no programming questions' ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Learn how to manage data first. Database access, SQL, stored procedures, ... THEN you can write a forum's app. C# and ASP.NET doesn't have ANYTHING to do with getting this little (read: BIG) project off the ground.
|
|
|
|
|
You know it is considered rude to delete your message.
|
|
|
|
|
I have been successful to register my custom culture language in the local computer, but I have a big problem to register it from Server Computer to Client Computer. Please find the project link: http://www.siemreapservice.com/KhmerCustomCulture.zip and on my web site: http://www.siemreapservice.com
Please help me to solve this matter. Your generous help would assist me to provide technical problem to my language on Windows XP in the Kingdom of Cambodia.
Thank you
Chieng Sisovin
|
|
|
|
|
Hi
Iam loading a usercontrol into another usercontrol as following:
contentList.Controls.Add(Page.LoadControl("UserControls/FieldContentsList.ascx"));<br />
FieldContentsList fieldus=(FieldContentsList)contentList.Controls[0];<br />
this.Metakeywords=fieldus.Metakeywords;
Where contentList is a div html element in the parent usercontrol(which exist(registered) in the page).
I want to get the value of the loaded usercontrol property into the parent usercontrol property
but I get null.I put this code in the Page_Load method for the parent usercontrol.
Please help me to solve this problem...
I am too late but i will never give up
|
|
|
|
|
Gday, everyone,
I have a problem that I really need your help
After I populate data into a textbox, I modify it, then save, but It still remembers old values.
How to get modified value?
Thanks in advance
eric
|
|
|
|
|
Everyone else in the world sees the new values when they post back. So, there's a problem with your approach, post some code so we can see what it is.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
After I populate data from BusinessLogicLayer into a textbox, then I modify the text in textbox, click on submit button, the data is saved into the database is the old value, not the modified one. Both textbox and submit button are web server control.
Please help
eric
|
|
|
|
|
Hi eric_tran,
Do you populate the data into textbox in Page load event without checking Page.IsPostback?
<< >>
|
|
|
|
|
Ah, yes, I populate data into textbox in Page load event, then save modified text in Button click event.
So what should I do?
Thanks for your reply
eric
|
|
|
|
|
just populate data when Page.IsPoskback = False...You just debug it to verify...Without that block, everytime user click on the button, the old data is populated again into textbox ==> that's why you always get old data...
<< >>
|
|
|
|
|
Hello enjoycrack,
That's fantastic. You are right. Thank you very much.
I got it. I spent 5 hours on fixing this bug.
Have a nice day.
eric
|
|
|
|
|
You're welcome...Thanks nice day too!
<< >>
|
|
|
|
|
I have 4 pages in my web application: login page, report parameter page, Report1 page and Report2 page. Report2 page is displayed when hyperlink values on Report1 is clicked. Actually Report2 displays details for data shown on Report1. I want to restrict the user to directly view Report2 by typing in URL of that page after he has logged in. Please let me know the solution.
Regards.
|
|
|
|
|
Is it ASP or ASP.NET ? You want to only show report2 after report1 ? You could store a value in the session and clear it on all pages but report1. If it's not set, the report2 page redirects.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi all,
How can i use Process.Start that when i right click or click in a LinkButton the Internet Explorer opens in new window
Thanks in advance
|
|
|
|
|
Do you want to start a process at client side?
<< >>
|
|
|
|