- Upvotes Received
- 8
- Posts with Upvotes
- 8
- Upvoting Members
- 8
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Re: int intTemp = Convert.ToInt32(Console.Readline()) | |
Re: this is a community help forum. We help you with your problem, we don't do everything for you. Tell us what you have tried and what problems your are having and we will help you solve them. We won't do everything for you. | |
Re: to find the number of digits in int x [code] if (x < 0) x = -x; int count = 1; x = x/10; while( x > 0) { count++; x = x/10; } [/code] | |
Re: create table tblname ( fieldname datetime default getdate() ) | |
Re: What error messages/symptoms are you getting? Post code from where you think problem might be happening. If you want help with your homework, you are going to have to give us some details | |
Re: where is this ("lb.Click += new System.EventHandler(engCat_Clicked);") piece of code located? without seeing all of the code, i would hazard a guess that it is inside an if(Postback){ } section | |
Re: SQL express is free, or at least it was a month or two ago when I downloaded it. I can't imagine that would have changed. Also sqlexpress supports sub-queries, which I don't believe access does. Also, in my experience, sqlexpress recovers better from errors than access. I have had instances … | |
Re: System.Web.Mail.MailMessage mail = new System.Web.Mail.MailMessage(); mail.To = "whoyouwantmailtogoto@yoursite.com"; mail.From = "whoyouwantmailtoshowfrom@yoursite.com"; mail.Subject = "Subject"; mail.Body= "Message from " + txtboxName.Text +"<BR>"+"Email Address: " + txtboxEmailAddress.Text +"<BR>"+"Message: " + txtboxMessage.Text; mail.BodyFormat = (System.Web.Mail.MailFormat.Html); //mail.Send(); System.Web.Mail.SmtpMail.SmtpServer = "yourmailserver"; System.Web.Mail.SmtpMail.Send(mail); | |
Re: select the info that you want into a datatable, set the datatable as the datasource for the dropdown. call the databind function. and make sure you specify in the dropdown control which columns have correspond with the DataValueField and DataTextField | |
Re: [code] string testString = Session("ssNtUser").ToString(); int i = testString.IndexOf("\\")+1; if(i > 0) { testString=testString.Substring(i); } [/code] | |
Re: problem is nothing is returend if the try block throws an exception and it is caught by the catch block. Simplest way to fix this is to return a "blank" sqlcommand. Change [code] catch (Exception ex) { Console.Write ("Error in connection : "+ex.Message); } [/code] to [code] catch (Exception ex) … | |
Re: How about something like this [code] private void DateSubmit_Click(object sender, System.EventArgs e) { DateTime date1, date2; bool date1OK, date2OK; date1 = new DateTime(1,1,1); date2 = new DateTime(1,1,1); try { date1 = Convert.ToDateTime(Date1.Text); date1OK=true; } catch { date1OK = false; } try { date2 = Convert.ToDateTime(Date2.Text); date2OK=true; } catch { date2OK … | |
Re: here, save this in a file called pc.js [code] var calWindow; var targetField; var today = new Date(); var dayofmonth = today.getDate(); var startDate; var selectDate; var prevMonth; var prevYear; var currMonth; var currYear; var nextMonth; var nextYear; var days = new Array('Sun','Mon','Tue','Wed','Thr','Fri','Sat'); var months = new makeArray(12); function makeArray(arrayLength) … | |
Having a problem connecting via dsn on windows 2003 x64. Keep getting : ADODB.Connection error '800a0ea9' Provider is not specified and there is no designated default provider. Code works fine on regular server 2003 | |
Re: kinda hard to tell, but what happens with your first example if there is an exception during someAction() | |
Re: It makes sense just fine, she is just using the wrong word. She means dll. what you are looking for is in the bin subdirectory. All you need is to put the all non-codebehind pages(*.aspx, global.asax, etc) in the folder on the new server. You don't need the code behind … | |
Re: do you need your app to send and email, or are you trying to do a whole email interface to check email, send email, etc? | |
Re: short answer is No. There is no direct way to disable the back button so that it is greyed-out and user cannot click on it. However, there are some tricks using javascript which might be able to give you the results you need,although they won't be as pretty. One I … | |
Re: are you trying to put it on the aspx page or in the codebehind? | |
Re: <SCRIPT LANGUAGE="JavaScript"> if (this.name!='fullscreen'){ window.open(location.href,'fullscreen','fullscreen,scrollbars') window.close(this) } </script> | |
Re: [CODE] update tablename set memssn = cast(substring(memid,1,9) as int) where substring(memid,1,9) like replicate('[0-9]',9)[/CODE] | |
Ok occasionally I get the following error message on my site System.String Substring(Int32, Int32) Error: Length cannot be less than zero. Parameter name: length here's the wierd part, I don't use that Substring function, I use System.String Substring(Int32) whose only parameter is start. So I am getting an error from … | |
I know how to use System.Web.Mail to send emails. Anybody know how to send encrypted emails? | |
Re: >Doesn't it increment by itself? it depends on how that column is setup in the database. Is it set up as an identity column? | |
Re: what you probably want to use is a gridview (or datagrid, if your are not on 2.0) and bind it to the database |