Click here to Skip to main content
15,886,137 members

Comments by Mehedi Shams (Top 34 by date)

Mehedi Shams 14-Jun-17 0:16am View    
Hi Knightsurfer,

Are these the only two input/output pairs? Please post some of your code.
Mehedi Shams 7-Jun-17 20:02pm View    
Ok got it.

But still - please follow the hint. It is so trivial and can't be missed. Hope you will find the answer :)!

Just as another hint - the actual value of 'N' is decreasing. See why?
Mehedi Shams 22-May-17 0:17am View    
Deleted
Did you try error-trapping through TRY-CATCH? Any error msg flashed in the browser?
Mehedi Shams 22-May-17 0:17am View    
Did you try the error-trapping through TRY-CATCH block? Any msg flashed in the browser?
Mehedi Shams 19-May-17 2:39am View    
In that case I don't see any problem in your code. If it is exits after con.open() that would mean connection failed. You can try to trap the error in the CATCH block and see what the problem is. E.g.

Response.Write("An error occurred. Error msg: " + ex.Message);

As long as I know AttachDbFilename is uniquely used for SQLExpress. Are you using SQL Express?

Alternatively you can try other formats of connection string. E.g.:
connectionString ="Server=.; Initial Catalog=Sample; Integrated Security=True"