Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
8
Posts with Upvotes
8
Upvoting Members
8
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
2 Commented Posts
2 Endorsements
Ranked #621
Ranked #686
~93.4K People Reached
Favorite Tags
asp.net x 122
mssql x 96
asp x 65
c# x 28
mysql x 20

325 Posted Topics

Member Avatar for shadowrider
Member Avatar for aerian

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.

Member Avatar for Bessemer
0
2K
Member Avatar for JoBe

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]

Member Avatar for jimmyraynor
0
344
Member Avatar for ohgosh
Member Avatar for dieterm
Member Avatar for AliQadir
0
368
Member Avatar for miragefighter

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

Member Avatar for larashaikh
0
3K
Member Avatar for vangraan

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

Member Avatar for rawat_raju1985
0
3K
Member Avatar for gogic

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 …

Member Avatar for kasun757
0
609
Member Avatar for anglerman247

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);

Member Avatar for tej kharka
0
500
Member Avatar for ramareddy_dotne
Member Avatar for anjela

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

Member Avatar for asshankar
0
703
Member Avatar for mcupryk

[code] string testString = Session("ssNtUser").ToString(); int i = testString.IndexOf("\\")+1; if(i > 0) { testString=testString.Substring(i); } [/code]

Member Avatar for asxcode
0
227
Member Avatar for rajni11
Member Avatar for shrikant76

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) …

Member Avatar for rohand
0
930
Member Avatar for frmsasp

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 …

Member Avatar for amitesh kaushik
0
4K
Member Avatar for slingingshot15
Member Avatar for SeekAnswers

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) …

Member Avatar for muktiranjan
0
674
Member Avatar for campkev

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

Member Avatar for cptspock
0
117
Member Avatar for afaquaholic

kinda hard to tell, but what happens with your first example if there is an exception during someAction()

Member Avatar for seahmadmom
0
299
Member Avatar for superwoman

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 …

Member Avatar for hirenpatel53
0
250
Member Avatar for nazeem2005

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?

Member Avatar for ericjohn
0
362
Member Avatar for cumadhu

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 …

Member Avatar for data4use
0
1K
Member Avatar for Naters_uk
Member Avatar for kvprajapati
0
287
Member Avatar for tootytoot

<SCRIPT LANGUAGE="JavaScript"> if (this.name!='fullscreen'){ window.open(location.href,'fullscreen','fullscreen,scrollbars') window.close(this) } </script>

Member Avatar for sbonder
0
193
Member Avatar for Harry1S

[CODE] update tablename set memssn = cast(substring(memid,1,9) as int) where substring(memid,1,9) like replicate('[0-9]',9)[/CODE]

Member Avatar for campkev
0
67
Member Avatar for OfirSh
Member Avatar for jaysapidocs
0
295
Member Avatar for campkev

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 …

Member Avatar for Ezzaral
0
211
Member Avatar for campkev

I know how to use System.Web.Mail to send emails. Anybody know how to send encrypted emails?

Member Avatar for Lam4
0
162
Member Avatar for requiem2

>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?

Member Avatar for somit
0
151
Member Avatar for Emmaliu

what you probably want to use is a gridview (or datagrid, if your are not on 2.0) and bind it to the database

Member Avatar for kanchanraaj
0
1K
Member Avatar for charlize
Member Avatar for tgreer

i would do this: [code] private string accountNumber; private int accountNumberLength; public string AccountNumber { get { return accountNumber; } set { StringBuilder sb = new StringBuilder(value); while(sb.Length < accountNumberLength) sb.Add(" "); accountNumber = sb.ToString(); } } [/code]

Member Avatar for Geekitygeek
0
275
Member Avatar for michael123

you are confused, int is not limited to less than 10,000 in sql server. the limit is around 2 billion. (2^31)-1 to be precise

Member Avatar for Nemesis80
0
820
Member Avatar for eamonn_henry

I am betting that you are just doubleclicking the file to open it. Yes? If you put it on your site and browse to it as a normal user would, you probably aren't going to get that problem.

Member Avatar for fredricksmith
0
119
Member Avatar for Embeza

I would instantiate an application variable in the application on start pulling the value from whereever it is saved Increment it in session onstart Save it back to whereever in application onend

Member Avatar for jeju
0
701
Member Avatar for AbuBakar

[QUOTE=AbuBakar]I want to show images in one column of datagrid against each Product Id by using Picturebox which is coming from Database[/QUOTE] you need to access the onitemdatabound event [quote] want to raise events against the click and mouseover events of each picturebox[/quote] so add them [quote] Moreover I also …

Member Avatar for rupspatil
0
139
Member Avatar for ohgosh
Member Avatar for Swapnil Palande

actually you don't want to be able to decrypt it. what you do is encrypt the password and save that in the database when the user logs in, encrypt the password the input on the login screen and compare that to the encrypted password in the database here is a …

Member Avatar for Yanivhl
0
347
Member Avatar for nada fouad
Member Avatar for sknake
0
235
Member Avatar for Reessee
Member Avatar for campkev

This isn't a problem as I have already solved the problem, just trying to figure out why it happened. Ok I have a field that is type money. I wrote a stored procedure that updates this field, however, I made the datatype for the parameter to get passed in a …

Member Avatar for RipperJT
0
131
Member Avatar for 330m
Member Avatar for msspitul

you could also use buyerName.Contains(TextBox3.Text) buyerName.BeginsWith(TextBox3.Text) buyerName.EndsWith(TextBox3.Text)

Member Avatar for blovi32
0
443
Member Avatar for bhavna_816

[code=sql] select * from persons where (prefix like '%'+@input+'%' or firstname like '%'+@input+'%' or lastname like '%'+@input+'%') and address like '%'+@addressinput+'%' [/code]

Member Avatar for gunso4050
0
151
Member Avatar for tytyguy

I think you want something like this Select distinct pt.ProductID from Products pt left join Rating RT on pt.productid = rt.productid order by IsNull(Min(rt.Rating),0)

Member Avatar for campkev
0
167
Member Avatar for Mr.Wobbles

get rid of the square brackets around the varchar(255) and it will work fine. For that matter, why are you putting them around the datatypes anyway? I've never seen anyone do that.

Member Avatar for campkev
0
153
Member Avatar for Goitse
Member Avatar for bagi

i cannot even ping that address. You probably need to talk to your network administrator. This looks like a networking problem, not a ASP.Net problem

Member Avatar for dlluna
0
197
Member Avatar for bhakti.thakkar

ok, i am assuming that you want a name for all id's. if a has an entry use that, otherwise use the name from b. also assuming that B has an entry for every id. if those assumptions are correct, then this should work [code] select b.id, isnull(a.name,b.name) as [Name] …

Member Avatar for bhakti.thakkar
0
160
Member Avatar for djapeBabe

The End.