|
Hi, iam using ajax based help messages in my web applicatins.
For displaying this help messages iam using Pop up control extender,
the help messages are displaying at appropriate positions when viewing in mozilla but when it comes to internet explorer ther positions are getting changed.
can anyone suggest me a solution for this?
Thank u
|
|
|
|
|
What do you mean by 'ajax based', why does your help message need to make an asyncronous call, just to get the help text as needed ?
We can't possibly help you without seeing the code you're using.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
when the application set up is in the client machine how the web.config file is encrypted using command prompt
|
|
|
|
|
what is the view state and and postback?
what is the mean by page.isvalidate?
raja
|
|
|
|
|
Seriously, all these questions are easily answered by google, and if you don't know the answers to any of the questions you asked, you can't possibly be using ASP.NET. Buy a book, learn to use google, ask when you're at a base level of being able to understand the replies.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
hey wait - Just go through some books and forums, Read Some Articles Posted here
You will find many useful Information, Just go through that Yaar.
If find any problem there then Post here.
View state is used for state Maintain. It stores a values for a page.
Postback Means the page is been redirected to server for post.
Page.Isvalidate Checks All validaters and it fires Validaters forcefully, Cause some Browsers not supports all validaters Invocation.
refer books, try urself.
Believe Yourself™ :->™
|
|
|
|
|
how to call the java script in code behind files?
raja
|
|
|
|
|
Please stop spamming the boards. IF you have this many questions, buy a book. IT's plain you are starting out, do yourself a favour and learn some stuff before asking all these things online.
You can't, best you can do is inject javascript to run the code. For you to even ask this shows you have no idea how ASP.NET works. Buy a beginner book, and read it.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
what is the diff b/w the http get and http post method?
raja
|
|
|
|
|
Are you working your way through an exam, asking the questions here ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I am using login and loginstatus controls in my application.
When I logged In It change the login status control text to logout which is fine but when I click the logout button it does not take me to the login page again.And how I can stop user to go back by clicking back button in the browser once he is logged off.
How I can store login username in session variable by using login control?
THanks In advance
Ejaz
|
|
|
|
|
To prevent the user from using the back button and gaining access after logoff you need to add checks to each page that verify the user has logged in, if not redirect them to the login page.
After the user has logged in you can get the username from the security principal, like WindowsIdentity.Name
only two letters away from being an asset
|
|
|
|
|
what is diff b/w typed dataset and untyped dataset?
raja
|
|
|
|
|
|
I am using asp.net +vb.
On 'password chage' i am using two textboxes.One for 'type password' and another for 'retype password'.I want to check if the value in the 'retype password'cant be a copy from the 'type password' field.means the the admin can enter manually the value in the 'retype password'.Anyone know this pls fgive code to me.
|
|
|
|
|
You want to check if the user used copy/paste ? You really can't tell, the best you can do is stop copy/paste from working ( I didn't think it did with a password box ).
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
how can i check the user copy/paste from one field to another
|
|
|
|
|
if u use the password as a text box then u can write in javascript of the text box as onpaste ="return false;" it will stop the paste for that text box
|
|
|
|
|
Hi i already have in my system vs2003,
And did some projects in that,
Now i like to install vs2005 in same system,
But i dont want to remove that vs2003,
if i install vs2005, it will corrupt my vs2003?,
Plz any one guide me
Thanks & Regards,
Mageshh,
please don't forget to vote on the post
|
|
|
|
|
No, but you can only run one version of ASP.NET at a time. The easy thing to do is have shortcuts to both copies of aspnet_regiis on your desktop so you can swap between them, or I think some later versions of IIS let you choose the .NET version directly.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi
HMagesh wrote: if i install vs2005, it will corrupt my vs2003?,
The Answer is No.
There won't be any problem. Just go through the installation.
And after installation u have to set per project settings for framework.
The project that are build with 2005 has to set framework 2.0 in IIS.
The same for 2003 to go for Framework 1.1 In iis.
Don't forget to install Framework 2.0 first before installing Visual Studio 2005.
Just try and find any problem then post here.
Believe Yourself™ :->™
|
|
|
|
|
hi HMagesh,
I also faced similar situation. Now i have both vs2003 and vs2005 along with SQL server 2005 in my PC. There is no problem at all at the installation time.
There is no conflict between two versions of VS. Trust me, i am using both.
Hope you work been done.
Thanks & Regards
Dilip Kumar Vishwakarma
|
|
|
|
|
Hi,
I am using some ASP .Net code to allow the user to change the theme (aka, stylesheet) that my website uses, based on a cookie and an imagebutton. It works fine when the domain url has no "www" in it, but as soon as I place it in the URL, the script does nothing at all. I think it calls a post-back and refreshes the page, but beyond that nothing happens. It works in FireFox, but not in IE, from recent testing.
My code is located in the HEAD section of the page, as well.
<br />
<%<br />
<br />
Dim nString As String = "<link href=""templates/stylesheet.css"" rel=""stylesheet"" type=""text/css"" />"<br />
Dim cString As String = "<link href=""templates/stylesheetC.css"" rel=""stylesheet"" type=""text/css"" />"<br />
Dim nImg As String = "images/logo_inverted.png"<br />
Dim cImg As String = "images/logo_normal.png"<br />
Try<br />
Dim themeCookie As String = Request.Cookies("theme").Value<br />
<br />
If themeCookie = "low" Then<br />
Response.Write(nString)<br />
imgLogo.Src = nImg<br />
ElseIf themeCookie = "high" Then<br />
Response.Write(cString)<br />
imgLogo.Src = cImg<br />
Else<br />
Response.Write(nString)<br />
imgLogo.Src = nImg<br />
End If<br />
<br />
Catch ex As Exception<br />
Response.Write(nString)<br />
imgLogo.Src = nImg<br />
End Try<br />
<br />
%><br />
<br />
<script runat="server"><br />
Sub highContrastBtn(ByVal sender As Object, ByVal e As Web.UI.ImageClickEventArgs)<br />
Response.Cookies("theme").Value = "high"<br />
Response.Cookies("theme").Expires = DateTime.Now.AddYears(1)<br />
Page.Response.Redirect(Page.Request.Url.ToString, True)<br />
End Sub<br />
<br />
Sub lowContrastBtn(ByVal sender As Object, ByVal e As Web.UI.ImageClickEventArgs)<br />
Response.Cookies("theme").Value = "low"<br />
Response.Cookies("theme").Expires = DateTime.Now.AddYears(1)<br />
Page.Response.Redirect(Page.Request.Url.ToString, True)<br />
End Sub<br />
</script><br />
I have been working on this for a few hours now, and everything that I try doesn't work. My server is also running the .Net Framework 2.0.
Any help is appreciated.
Thanks,
Mitch
|
|
|
|
|
What a disaster. Why would you put this code in the page and not the code behind ? This gives you no control over when it runs, and is nasty/messy.
Put the script in your code behind where it belongs, set some break points and then you will be able to work out what's going wrong instead of having to guess.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi,
As suggested, I have moved all of my code into the code-behind file.
My head section now looks like:
<link rel="stylesheet" id="style" runat="server" />
And my codefile looks like:
Partial Class _Default<br />
Inherits System.Web.UI.Page<br />
Protected Sub highContrast_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles highContrast.Click<br />
Response.Cookies("theme").Value = "high"<br />
Response.Cookies("theme").Expires = DateTime.Now.AddYears(1)<br />
Page.Response.Redirect(Page.Request.Url.ToString, True)<br />
End Sub<br />
<br />
Protected Sub lowContrast_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles lowContrast.Click<br />
Response.Cookies("theme").Value = "low"<br />
Response.Cookies("theme").Expires = DateTime.Now.AddYears(1)<br />
Page.Response.Redirect(Page.Request.Url.ToString, True)<br />
End Sub<br />
<br />
Protected Sub Page_PreInit(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreInit<br />
Dim nString As String = "templates/stylesheet.css"<br />
Dim cString As String = "templates/stylesheetC.css"<br />
Dim nImg As String = "images/logo_inverted.png"<br />
Dim cImg As String = "images/logo_normal.png"<br />
<br />
Try<br />
Dim themeCookie As String = Request.Cookies("theme").Value<br />
<br />
If themeCookie = "low" Then<br />
style.Href = nString<br />
imgLogo.Src = nImg<br />
ElseIf themeCookie = "high" Then<br />
style.Href = cString<br />
imgLogo.Src = cImg<br />
Else<br />
style.Href = nString<br />
imgLogo.Src = nImg<br />
End If<br />
<br />
Catch ex As Exception<br />
style.Href = nString<br />
imgLogo.Src = nImg<br />
End Try<br />
End Sub<br />
End Class
However, I am still experiencing the same issue. Do you have any other suggestions? (I have also tried putting my code into Init, Load, and now PreInit, and nothing seems to change the result.) I am beginning to believe this is a problem with IE, because FF works fine.
Thanks,
Mitch
|
|
|
|