|
check whether you have data in "user"
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
I have tried to get back cookie's value in logon button and it is giving me perfect value but same is not working at page load event.
The added code in logon button's click event
Dim cookie As HttpCookie
cookie = Request.Cookies.Get("myCookie")
Dim user() As Byte
user = Encoding.Unicode.GetBytes(Cookie.Values("user"))
Dim DecryptedStrAsByt() As Byte
DecryptedStrAsByt = rsa.Decrypt(user, False)
Dim DecryptedStrAsString = System.Text.Encoding.Unicode.GetString(DecryptedStrAsByt)
Response.Write(DecryptedStrAsString)
and it is giving perfect value. but above code is giving me error at page load why?
|
|
|
|
|
Have you rewritten the cookie value again?
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
No. Cookie value is written in only logon button's click event. Not any other place
|
|
|
|
|
hello everyone,
I have a doubt regarding the WebGrid.
It is webgrid but not datagrid or gridview.
I have webgrid in an .aspx form.I want to add a
textbox column at the footer when the page loads.
Can anybody plz for me in this code.
regards,
murali..
murali
|
|
|
|
|
ballameharmurali wrote: It is webgrid but not datagrid or gridview.
What is webgrid ? i never used it is ASP control ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
it is one of the tool for connecting to database.
ok byee
|
|
|
|
|
hello friends...
i m facing problems, while appending a file with (.txt) extention on server. I have a textarea on in a web page, user types some text and clicks save button. and the text in textarea must be replaced with the text in file on server named ( lets say mytextfile.txt).
i dont know any hint of how can i achieve this task... any help?
:- Rashid Ali -:
|
|
|
|
|
Its better to search on google first then ask if you didn't find anything Google is your best friend
Let it be
Use TextWriter to write into text file use streamWriter class to open the file
in the constructor of the streanWriter pass 2 parameters path and bool true or false to append the text to file like this
TextWriter textwriter = new StreamWriter("Path of mytextfile.txt", true);
textwriter.WriteLine(TextArea.Text.ToString()):
textwriter.Close();
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
StreamWriter write = File.AppendText("path");
write.Write("blah blah");
Hope it helps...
|
|
|
|
|
HI All
I have developed a site in English using asp.net 2.0. now the requirement is that i have need to launch the site in other language like the Swedish, Norse, Deutsch etc.
I have a master page which content the dropdownlist for the different languages. i want to change the all content( static and dynamic both content) of the site along the user selected language.
Please help..
Thanks in advance.
With Regards,
Srinandan..
|
|
|
|
|
Hi,
Do Search on "Localization", "Globalization", "Resource Files" and "Satellite Assemblies"
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
Thank for reply,
I have worked like these problem using the localization. using localization only we can change the server control language not the whole page mean static content.
Regards,
Srinandan..
|
|
|
|
|
Hi,
Its obvious that static content u can not modify from the code coz u have hardcoded those things.
The contents which u want to modify as per the language selection should be loaded dynamically.
There is no other way.
Or
You can make as separate pages for each of the language which is not an advisable option so I would not suggest that.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
Thanks again.
I suppose it not good to load the static contents in dynamic way.
Actually i suppose once we change the culture on the page level then the all content should goes under that culture. so the static text should also change along that language.
With Regards,
Srinandan..
|
|
|
|
|
Hi,
I doubt u can achieve this without using server controls and localization.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
UI culture is solely for inbuilt dotnet controls...
-- modified at 7:19 Wednesday 20th June, 2007
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
Hi Sylvester
Thanks for reply.
Could you please give me some details.
Regards,
Srinandan..
|
|
|
|
|
Hi,
I am running .NET 1.1 and I just got a very strange error message on one of my live sites. Not me nor the client has made any modifications. Can this me a possible hack?
If any one has had such a weird error message, please let know:
Server Error in '/' Application.
File or assembly name uskuohjt, or one of its dependencies, was not found.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileNotFoundException: File or assembly name uskuohjt, or one of its dependencies, was not found.
Please can someone shed some light please.
Regards
ma se
|
|
|
|
|
What is uskuohjt ? are you refencing any dll in your application .........
Be descriptive while asking a question so that people will understand what you want and you will get possibly right answer
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Hey,
I was descriptive, and I mentioned that no one made changes. There is no such thing called uskuohjt. The site worked yesterday, but now it is giving errors. This is what is worrying us, that is why we think it is a hack.
ma se
|
|
|
|
|
Sorry but my concern was uskuohjt. try to Redeploy if possible What you think ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
I think it is a .NET bug because it created a huge amount of other files. I was created in C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/root/c7f18ed3/243bb99c/uskuohjt.DLL
Then the files looked like error files.
|
|
|
|
|
Check using ILDasm if your IL is calling or using this uskuohjt.DLL
What are you doing in your application ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
It means your uskuosk (whatever) has gone...
|
|
|
|