Click here to Skip to main content
15,887,683 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: getting these smtp exceptions in my mvc .net project,used different ports but still not workin ,can u plz help me? Pin
jkirkerx18-Jul-18 13:14
professionaljkirkerx18-Jul-18 13:14 
QuestionDefault Download button is not working in Chrome browser Pin
Member 1370125111-Jul-18 19:54
Member 1370125111-Jul-18 19:54 
AnswerRe: Default Download button is not working in Chrome browser Pin
Richard Deeming12-Jul-18 1:03
mveRichard Deeming12-Jul-18 1:03 
Question.Net Core 2.1, Favicon.ico, robots.txt, sitemap.xml, google verification file Pin
jkirkerx8-Jul-18 12:26
professionaljkirkerx8-Jul-18 12:26 
AnswerRe: .Net Core 2.1, Favicon.ico, robots.txt, sitemap.xml, google verification file [solved] Pin
jkirkerx9-Jul-18 7:31
professionaljkirkerx9-Jul-18 7:31 
QuestionCouldn't retrieve all records from SQL database in c# Pin
Sehal6-Jul-18 23:12
Sehal6-Jul-18 23:12 
AnswerRe: Couldn't retrieve all records from SQL database in c# Pin
Mycroft Holmes7-Jul-18 13:44
professionalMycroft Holmes7-Jul-18 13:44 
SuggestionRe: Couldn't retrieve all records from SQL database in c# Pin
Richard Deeming9-Jul-18 8:43
mveRichard Deeming9-Jul-18 8:43 
MessageBox.Show will not work in an ASP.NET application. It might appear to work when you're debugging in Visual Studio; but that's only because the server and client are the same computer in that scenario. As soon as you deploy your code to a real server, it will break.

In the best-case scenario, you'll get an exception telling you that you can't display a messagebox from a non-interactive application. In the worst-case, the message will appear on the server, where nobody will ever see it, and your code will hang waiting for a response.


Sehal wrote:
er.scalarReturn("select q_title from questions where q_id=" + i)

Whilst you're OK in this specific case (since the parameter is an integer), that code suggests that you've created a library which will force you to write code which is vulnerable to SQL Injection[^]. NEVER use string concatenation to build a SQL query. ALWAYS use a parameterized query.

Everything you wanted to know about SQL injection (but were afraid to ask) | Troy Hunt[^]
How can I explain SQL injection without technical jargon? | Information Security Stack Exchange[^]
Query Parameterization Cheat Sheet | OWASP[^]



Sehal wrote:
i++;

It looks like you're storing the current question number in a field on your page. Field values are not persisted between requests. You need to review the ASP.NET Page Lifecycle[^], and understand what's going on "behind the scenes".



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

Question.Net Core 2.1 with SQLite, ReactJS.net and JavascriptRenderingEngine, Porting my first app over to it was really hard Pin
jkirkerx6-Jul-18 8:31
professionaljkirkerx6-Jul-18 8:31 
QuestionHow to use angular along with ASP.NET mvc project Pin
Nitin S4-Jul-18 20:37
professionalNitin S4-Jul-18 20:37 
AnswerRe: How to use angular along with ASP.NET mvc project Pin
Keviniano Gayo4-Jul-18 22:05
Keviniano Gayo4-Jul-18 22:05 
AnswerRe: How to use angular along with ASP.NET mvc project Pin
Vincent Maverick Durano5-Jul-18 14:58
professionalVincent Maverick Durano5-Jul-18 14:58 
GeneralRe: How to use angular along with ASP.NET mvc project Pin
Nitin S5-Jul-18 17:52
professionalNitin S5-Jul-18 17:52 
GeneralRe: How to use angular along with ASP.NET mvc project Pin
Vincent Maverick Durano6-Jul-18 2:04
professionalVincent Maverick Durano6-Jul-18 2:04 
AnswerRe: How to use angular along with ASP.NET mvc project Pin
jkirkerx6-Jul-18 9:09
professionaljkirkerx6-Jul-18 9:09 
GeneralRe: How to use angular along with ASP.NET mvc project Pin
Vincent Maverick Durano6-Jul-18 18:43
professionalVincent Maverick Durano6-Jul-18 18:43 
GeneralRe: How to use angular along with ASP.NET mvc project Pin
jkirkerx8-Jul-18 12:20
professionaljkirkerx8-Jul-18 12:20 
QuestionAngular project Pin
Nitin S4-Jul-18 20:34
professionalNitin S4-Jul-18 20:34 
AnswerRe: Angular project Pin
Vincent Maverick Durano5-Jul-18 15:05
professionalVincent Maverick Durano5-Jul-18 15:05 
Question.Net Core 2.1 - Setting Session Value in controller, then reading it in Controller Attribute. Pin
jkirkerx4-Jul-18 8:45
professionaljkirkerx4-Jul-18 8:45 
AnswerRe: .Net Core 2.1 - Setting Session Value in controller, then reading it in Controller Attribute. [solved maybe] Pin
jkirkerx4-Jul-18 10:22
professionaljkirkerx4-Jul-18 10:22 
QuestionLoop through dataset to create hyperlinks in aspx Pin
caffrey_13-Jul-18 23:44
caffrey_13-Jul-18 23:44 
AnswerRe: Loop through dataset to create hyperlinks in aspx Pin
Richard Deeming4-Jul-18 7:37
mveRichard Deeming4-Jul-18 7:37 
PraiseRe: Loop through dataset to create hyperlinks in aspx Pin
caffrey_14-Jul-18 10:27
caffrey_14-Jul-18 10:27 
QuestionBinding selected value of Dropdownlist to Grid Pin
indian1433-Jul-18 12:58
indian1433-Jul-18 12:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.