thank u for reply ok i'll describe my situation i have one master page for all aspx pages in my project. this master page has a dropdownlist control(postback is enabled) where users can pick up allowed languages. so i want to set up CultureInfo and UICulture during tha application is running. in the Page u can override some methods like InitializeCulture() to set up CultureInfo and UICulture or in Page_PreInit(), but master page has no access to this methods. only the one way i know is to override the method void Application_AcquireRequestState(Object sender, EventArgs e) in global.acax class in .netframework 1.1 i could use Session to save user language, but framework 2.0 do not have access to Session. so i have to use Cookie or userprofile but it does not look user friendly is any other possibilities to do that in master page?
oOomen
Posts
-
asp.net 2.0 master page -
asp.net 2.0 master pagehello all can anyone tell me how to se up CultureInfo and UICulture from master page(System.Web.UI.MasterPage)? thank u for ur advice
-
System.net.Mail default smtp hosti was using the old system.web.mail classes. and try to sent emails with net.mail, but i get an exception: System.Net.Mail.SmtpFailedRecipientException was unhandled by user code Message="Mailbox unavailable. The server response was: 5.7.1 Unable to relay for bla@bla.bla" host property of SmtpClient must be set up! but what is default smpt host? is it "localhost"? i get an exception if i use it. if i use this code it work for me (System.Web.Mail): SmtpMail.SmtpServer = null; SmtpMail.Send(mail); because the name of the local SMTP server is used!!!!!! WHAT NAME IS IT? how can i find it out? i need the name to set the property Host of SmtpClient (System.Net.Mail). thanks thank u for ur advice
-
System.net.Mail default smtp hosti was using the old system.web.mail classes. and try to sent emails with net.mail, but i get an exception: System.Net.Mail.SmtpFailedRecipientException was unhandled by user code Message="Mailbox unavailable. The server response was: 5.7.1 Unable to relay for bla@bla.bla" host property of SmtpClient must be set up! but what is default smpt host? is it "localhost"? i get an exception if i use it. if i use this code it work for me (System.Web.Mail): SmtpMail.SmtpServer = null; SmtpMail.Send(mail); because the name of the local SMTP server is used!!!!!! WHAT NAME IS IT? how can i find it out? i need the name to set the property Host of SmtpClient (System.Net.Mail). thanks thank u for ur advice
-
protect my picturefor example i have a small programm with a picture inside. can i protect this picture form making screen shot by pressing screen shot key( but its not so imporant) can i catch an event if some other program prepars to make a screen shot? ist it possible to protect my picture?:confused: thanks in advance!
-
Date Translation -
calendar convertionhi, can any one tell me how to translate gregorian date to hebrew date? thanks in advance
-
Date Translationhi, can any one tell me how to translate gregorian date to hebrew date? thanks in advance
-
howtohi all, is it possible stop loading web custom controls in VS IDE during developing time? thanks in advance!
-
System.Data.SqlClient.SqlException: Login failed for user 'xxx\ASPNET'hello, i get this error-> System.Data.SqlClient.SqlException: Login failed for user 'xxx\ASPNET' do some one knows how to solve it? i am new to sql and i use msde. thank u in advance
-
System.Data.SqlClient.SqlException: Login failed for user 'xxx\ASPNET'hello, i get this error-> System.Data.SqlClient.SqlException: Login failed for user 'xxx\ASPNET' do some one knows how to solve it? i am new to sql and i use msde. thank u in advance
-
System.Data.SqlClient.SqlException: Login failed for user 'xxx\ASPNET'hello, i get this error-> System.Data.SqlClient.SqlException: Login failed for user 'xxx\ASPNET' do some one knows how to solve it? i am new to sql and i use msde. thank u in advance :-)
-
Rotationoh, u r right, it works! :-) but, what's about this first example? it seems as if it works pretty good!
-
Rotationhi, i use cards.dll to draw cards in my app. and it works good in onpaint method for example:
Graphics x = e.Graphics; hdc = x.GetHdc(); x.ReleaseHdc(hdc); cardHandle.drawCardBack( hdc, 90, 10, eBACK.WEAVE1 );
but if i try do the same thing offscreen, it does not work!:confused: can someone explain why?Bitmap offScreenBmp = new Bitmap(this.Width, this.Height); Graphics offScreenDC = Graphics.FromImage(offScreenBmp); hdc = offScreenDC.GetHdc(); offScreenDC.ReleaseHdc(hdc); cardHandle.drawCardBack( hdc, 90, 10, eBACK.WEAVE1 ); e.Graphics.DrawImage(offScreenBmp, 10, 10);
I need it to rotate this card. I have tried this method, but it does not worke.Graphics.RotateTransform(90f);
if u know another way how to rotate the card i draw with cards.dll, please tell me ;-) thank u ;-) -
Recursion in Visual C++it's from C++ in 21 days :-) is it allowed to copy some parts of the book?? if not, how cares? ;P
-
hooking keyboard and mouse messageshi, look here
-
is it too late or i do not undestand somethingi just copmiled those lines
...... CClientDC dc(this); OnPrepareDC(&dc); dc.SetPixel( point, RGB(0, 0, 0,) ); ......
what i've got is: ---------------------- Done ---------------------- Build: 1 succeeded, 0 failed, 0 skipped but this line contains more commaz that it needs:dc.SetPixel( point, RGB(0, 0, 0,) );
and it works any way do someone know why? -
Required header <conio.h> of C-libraryMr.Prakash wrote: you will need msvcr71.lib to use that dll. mMmm... i just know this way!
[System.Runtime.InteropServices.DllImport("msvcr71.dll")] static extern int _kbhit(); public bool KeyboardHit { get { return System.Convert.ToBoolean(_kbhit()); } }
-
Required header <conio.h> of C-libraryhi, thank u for ur replay. i've found this in msvcr71.dll too. i do not think so. everything u have in c# is Console class. best regards!
-
Required header <conio.h> of C-libraryok, i've found this in msvcr71.dll
... [System.Runtime.InteropServices.DllImport("msvcr71")] static extern bool _kbhit(); [System.Runtime.InteropServices.DllImport("msvcr71")] static extern int _getch(); public bool KbHit() { return _kbhit(); } public char GetChar() { return (char)_getch(); } ...