No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
13 Posted Topics
Viewstate is helpful when you remain within one page (including when you return there by postback). But it is destroyed when you are leaving the page. in first click processing method you store your value to viewstate Viewstate["myValue"] = someValue (may be any type) in the second click processing method …
When submitting form (before calling postback) you can store current time to some hidden field, and when you load data from postback, just read data from this field and continue time counting from that value.
You can get image from some url via stream like this : System.Drawing.Image g; System.Net.WebRequest webRequest = System.Net.WebRequest.Create(url); System.Net.WebResponse response = webRequest.GetResponse(); System.IO.Stream imageStream = response.GetResponseStream(); g = System.Drawing.Image.FromStream(imageStream);
JavaScript. It is supported by default at clients' machines (if client has not disabled JavaScript), but applets are not supported any more by windows, so, client must search somewhere and install Java suppore to his machine so that to be able to see your applet.
Declare your arrays as static in some class which is visible to all your application, and then you can access them as : MyClass.digit[x,z]
It could be better to keep lines in Dictionary<string, Collection<string>), where T001, T002 etc is key, and string with filename is a part of value collection. Advantage of this way is that it is OK if source strings are mixed up (T001, T003, again T001, T002 etc), and every T... …
Though it seems that classes of different forms do not see each other. It may be more reasonable to create some additional class in AppCode and put method showme() there.
window.open('yourpage.html', '', "width=400, height=300, scrollbars=yes");
Check if these buttons have attribute onclick, and if there exists method corresponding to onclick in .cs The simplest way is to go to design mode and double click onto that button, then this method will be created and indicated in <ASP:BUTTON tag. And you will move to .cs to …
Try this : onclick="checkedChanged(this, document.YourFormName.Checkbox1) You need to define passed object not by type, but by name.
it seems better to sort data before to send it to GridView. Can you give a code sample where you are reading data form some source and putting to GridView (all the steps from SQL (XML, etc) to GridView) ? When you are sorting data in GridView, then sorted is …
Check, if your mail client is created in this way ? System.Net.Mail.SmtpClient mailClient = new SmtpClient("your.smtp.server", 25); System.Net.NetworkCredential nc = new System.Net.NetworkCredential("YourLogin", "YourPassword"); mailClient.Credentials = nc; And also check address of your SMTP server, login and password, if they are all correct. Or there may be also problems at server …
The End.
NET-Developer