Click here to Skip to main content
12,295,457 members (54,078 online)
   

ASP.NET

 
AnswerRe: Autenticação Com FormsAuthentication - Não autentica!! - Translation Pin
Wes Aday11-Oct-12 6:24
memberWes Aday11-Oct-12 6:24 
QuestionI am having error on my dbml (InternetTransaction Project) Pin
Difameg Network Nigeria10-Oct-12 22:26
memberDifameg Network Nigeria10-Oct-12 22:26 
AnswerRe: I am having error on my dbml (InternetTransaction Project) Pin
n.podbielski11-Oct-12 0:04
membern.podbielski11-Oct-12 0:04 
QuestionHaving trouble updating INT field in MS SQL 2008 database Pin
Member 932884710-Oct-12 9:55
memberMember 932884710-Oct-12 9:55 
AnswerRe: Having trouble updating INT field in MS SQL 2008 database Pin
n.podbielski10-Oct-12 11:03
membern.podbielski10-Oct-12 11:03 
AnswerRe: Having trouble updating INT field in MS SQL 2008 database Pin
email_programmer_jim10-Oct-12 12:08
memberemail_programmer_jim10-Oct-12 12:08 
AnswerRe: Having trouble updating INT field in MS SQL 2008 database Pin
Bernhard Hiller10-Oct-12 22:25
memberBernhard Hiller10-Oct-12 22:25 
AnswerRe: Having trouble updating INT field in MS SQL 2008 database Pin
Richard Deeming15-Oct-12 3:31
memberRichard Deeming15-Oct-12 3:31 
Member 9328847 wrote:
Dim sSql As XElement
sSql = <sql>
   Update [tblOncallAnalystSchedule] 
   SET [fldOnCallGroup] = '<%= fldOnCallGroup %>',
   ...
   </sql>
 
SendSQLCommand(sSql.Value, sqlConn)


Using an XElement to build your dynamic query won't prevent SQL injection[^]. You need to use a parameterized command instead.

Also, your code is trying to execute exactly the same query that's set for the UpdateCommand of the SqlDataSource control. If you remove the event handler, the control will perform the update for you.

Finally, the MsgBox calls will never work; if they did, the message box would appear on the server, where nobody would ever see them, and your page would be stuck waiting for someone to click "OK".



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


QuestionGoogle Analytics in site.master? Pin
jrahma10-Oct-12 7:36
memberjrahma10-Oct-12 7:36 
AnswerRe: Google Analytics in site.master? Pin
n.podbielski10-Oct-12 11:00
membern.podbielski10-Oct-12 11:00 
AnswerRe: Google Analytics in site.master? Pin
SoyDesarrollador.net12-Oct-12 9:07
memberSoyDesarrollador.net12-Oct-12 9:07 
QuestionAsp .net Video Player Pin
ShashankUpadhyay10-Oct-12 2:06
memberShashankUpadhyay10-Oct-12 2:06 
AnswerRe: Asp .net Video Player Pin
Sandeep Mewara10-Oct-12 3:04
mvpSandeep Mewara10-Oct-12 3:04 
QuestionLabel Text wrapping problem Ms chart control. Pin
Murugan_vdm10-Oct-12 1:50
memberMurugan_vdm10-Oct-12 1:50 
AnswerRe: Label Text wrapping problem Ms chart control. Pin
Sandeep Mewara10-Oct-12 3:06
mvpSandeep Mewara10-Oct-12 3:06 
QuestionSetting ASP.NET page controls from class library assembly Pin
Chesnokov Yuriy9-Oct-12 19:52
memberChesnokov Yuriy9-Oct-12 19:52 
QuestionRe: Setting ASP.NET page controls from class library assembly Pin
n.podbielski10-Oct-12 3:38
membern.podbielski10-Oct-12 3:38 
AnswerRe: Setting ASP.NET page controls from class library assembly Pin
Chesnokov Yuriy10-Oct-12 4:50
memberChesnokov Yuriy10-Oct-12 4:50 
GeneralRe: Setting ASP.NET page controls from class library assembly Pin
n.podbielski10-Oct-12 10:59
membern.podbielski10-Oct-12 10:59 
QuestionArchitecture suggestions for an application in Web and IPAD form Pin
krishnapnv9-Oct-12 19:33
memberkrishnapnv9-Oct-12 19:33 
AnswerRe: Architecture suggestions for an application in Web and IPAD form Pin
john-ph9-Oct-12 23:53
memberjohn-ph9-Oct-12 23:53 
AnswerRe: Architecture suggestions for an application in Web and IPAD form Pin
Peter Carrasco11-Oct-12 16:31
memberPeter Carrasco11-Oct-12 16:31 
QuestionConnecting to IBM's natural language web service from vb.net Pin
indian1439-Oct-12 15:48
memberindian1439-Oct-12 15:48 
AnswerRe: Connecting to IBM's natural language web service from vb.net Pin
jkirkerx9-Oct-12 17:25
memberjkirkerx9-Oct-12 17:25 
QuestionHi Friends i want to create a web application Pin
VinothData9-Oct-12 15:41
memberVinothData9-Oct-12 15:41 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.160525.2 | Last Updated 26 May 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid