|
Manas Bhardwaj wrote: Why to create a new object unnecesarily ?
There is no harm in doing so.
|
|
|
|
|
|
Rather than using RegisterClientScriptBlock , it is better to use RegisterStarupScript
use
if(!this.ClientScript.IsClientScriptBlockRegistered("myscript"))
this.ClientScript.RegisterStartupScript(this.GetType(), "myscript", strScript , true);
Hope this helps.
|
|
|
|
|
Thanks.. Could you please tell me why RegisterStarupScript is better rather then the RegisterClientScriptBlock
I will not say I have failed 1000 times; I will say that I have discovered 1000 ways that can cause failure – Thomas Edison.
Don't forget to click [Vote] / [Good Answer] on the post(s) that helped you.
Thanks
Md. Marufuzzaman
|
|
|
|
|
Make sure one things : if you have AJAX Script Manager in your page, then you have to use ScriptManager rather than ClientScript .
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Thanks for sharing...
I will not say I have failed 1000 times; I will say that I have discovered 1000 ways that can cause failure – Thomas Edison.
Don't forget to click [Vote] / [Good Answer] on the post(s) that helped you.
Thanks
Md. Marufuzzaman
|
|
|
|
|
Yes... RegisterStartupScript places the script after all the objects are rendered while RegisterClientScriptBlock places the JS at the beginning.
Thus say you are calling a javascript using RegisterClientScriptBlock which gets an element, you will find this null, as the script gets executed just before any html is rendered. In case of RegisterStartupScript the script is placed after the html is generated. So If you want to place a javascript call in your html, always use RegisterStartupScript .
Hope you got it. If not I can give you examples.
|
|
|
|
|
Thanks for your excellent explanation..
I will not say I have failed 1000 times; I will say that I have discovered 1000 ways that can cause failure – Thomas Edison.
Don't forget to click [Vote] / [Good Answer] on the post(s) that helped you.
Thanks
Md. Marufuzzaman
|
|
|
|
|
you are most welcome ... budd
|
|
|
|
|
I download a template in online and design my site and i finish my site. When i run IE it does not work button clicks and textbox input values and dropdownlist selected values and every values will be lost postback but it will work properly in firefox what is this error...give any solution to this problem...
Thanks in advance...
|
|
|
|
|
Can U Give u the link to ur Website So Tht We can See Whts going on
Check the source of the ie explorer of ur website
If It Helps Click It as Answer
|
|
|
|
|
http://matrimony.justclicksearch.in
|
|
|
|
|
smraj1503 wrote: http://matrimony.justclicksearch.in
I am using Ie8 and checked its Working Fine
I dont Know theexact Solution Try to clear all privacy data in ie and check it
If It Helps Click It as Answer
|
|
|
|
|
Iam using IE6.0 and clear private data, it does not work...
|
|
|
|
|
Without seeing your code its very difficult to tell
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
|
Can you atleast wrap the code. It is not readable.
Secondly, do you think anybody is gonna read all code of yours. Please narrow it down.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Please don't delete messages. This is Rude.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
are you using asp.net server control?
Share your code to help you.
|
|
|
|
|
I have asked for the code, but i dont know why he deleted his message
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Yes.. this is the most weird thing with some guys...
|
|
|
|
|
Dear All,
I have read a lot of articels and infos about the authentication but i found no hint where my problem was descripted.
My problem is, I have a intranet application and my authentication is "Windows".
It works perfect but how can I handle if on a windows client another user as the windows user was logged into my web application?
That mean i need a logout for the actual webapplication and a relogin with another user (DomainUser).
Is this possible?
Did I need a mix from Windows - authentication and Form authentication?
Thanks for your Help
chroalja
|
|
|
|
|
gitschi wrote: My problem is, I have a intranet application and my authentication is "Windows".
It works perfect but how can I handle if on a windows client another user as the windows user was logged into my web application?
Windows Authentication means, Authenticating the User from Active Diretory.
If you set authentication mode as windows, A popup will ask for user name and password for the user. Which should be the DomainName\UserName and Password .
User who is not under that domain in which your application is hostes will not able to access the site.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Abhijit Jana wrote:
Windows Authentication means, Authenticating the User from Active Diretory.
If you set authentication mode as windows, A popup will ask for user name and password for the user. Which should be the DomainName\UserName and Password.
User who is not under that domain in which your application is hostes will not able to access the site.
Hello,
if i connect from a client which was not inside my domain a popup in the IE ask for user and passwort. That's right because i have customized my IIS to "Windows Integrated security".
If the client was in my Active Directory no popup occur. That's also ok.
But, and that is my main question how can i handle if the client is already connected with a windows user which is in the active directory for example "GASTUSER" and now another user will login with his own user "USERXXX" and his one security settings but without relogin on the client pc. Only Logout for the intranet application and Login with user "USERXX".
I tried this with Form Authentification and a connection to my LDAP but it's not really fast and we have a lot of directory with different users.
Maybe the solution is very easy but i have no idea.
Bye
chroalja
|
|
|
|
|
gitschi wrote: Did I need a mix from Windows - authentication and Form authentication?
You can mix them. Use the standard ASP.NET login controls and handle the authentication request on your own. You can use AD to authenticate or some other credential system.
only two letters away from being an asset
|
|
|
|