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

ASP.NET

 
AnswerRe: Autenticação Com FormsAuthentication - Não autentica!! - Translation Pin
Wes Aday11-Oct-12 6:24
professionalWes Aday11-Oct-12 6:24 
QuestionI am having error on my dbml (InternetTransaction Project) Pin
Difameg Network Nigeria10-Oct-12 22:26
Difameg Network Nigeria10-Oct-12 22:26 
AnswerRe: I am having error on my dbml (InternetTransaction Project) Pin
n.podbielski11-Oct-12 0:04
n.podbielski11-Oct-12 0:04 
QuestionHaving trouble updating INT field in MS SQL 2008 database Pin
Member 932884710-Oct-12 9:55
Member 932884710-Oct-12 9:55 
AnswerRe: Having trouble updating INT field in MS SQL 2008 database Pin
n.podbielski10-Oct-12 11:03
n.podbielski10-Oct-12 11:03 
AnswerRe: Having trouble updating INT field in MS SQL 2008 database Pin
.Net Jim10-Oct-12 12:08
.Net Jim10-Oct-12 12:08 
AnswerRe: Having trouble updating INT field in MS SQL 2008 database Pin
Bernhard Hiller10-Oct-12 22:25
Bernhard Hiller10-Oct-12 22:25 
AnswerRe: Having trouble updating INT field in MS SQL 2008 database Pin
Richard Deeming15-Oct-12 3:31
mveRichard 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
Jassim Rahma10-Oct-12 7:36
Jassim Rahma10-Oct-12 7:36 
AnswerRe: Google Analytics in site.master? Pin
n.podbielski10-Oct-12 11:00
n.podbielski10-Oct-12 11:00 
AnswerRe: Google Analytics in site.master? Pin
SoyDesarrollador.net12-Oct-12 9:07
SoyDesarrollador.net12-Oct-12 9:07 
QuestionAsp .net Video Player Pin
ShashankUpadhyay10-Oct-12 2:06
ShashankUpadhyay10-Oct-12 2:06 
AnswerRe: Asp .net Video Player Pin
Sandeep Mewara10-Oct-12 3:04
mveSandeep Mewara10-Oct-12 3:04 
QuestionLabel Text wrapping problem Ms chart control. Pin
Murugan Kolanji10-Oct-12 1:50
Murugan Kolanji10-Oct-12 1:50 
AnswerRe: Label Text wrapping problem Ms chart control. Pin
Sandeep Mewara10-Oct-12 3:06
mveSandeep Mewara10-Oct-12 3:06 
QuestionSetting ASP.NET page controls from class library assembly Pin
Chesnokov Yuriy9-Oct-12 19:52
professionalChesnokov Yuriy9-Oct-12 19:52 
QuestionRe: Setting ASP.NET page controls from class library assembly Pin
n.podbielski10-Oct-12 3:38
n.podbielski10-Oct-12 3:38 
AnswerRe: Setting ASP.NET page controls from class library assembly Pin
Chesnokov Yuriy10-Oct-12 4:50
professionalChesnokov Yuriy10-Oct-12 4:50 
GeneralRe: Setting ASP.NET page controls from class library assembly Pin
n.podbielski10-Oct-12 10:59
n.podbielski10-Oct-12 10:59 
QuestionArchitecture suggestions for an application in Web and IPAD form Pin
krishnapnv9-Oct-12 19:33
krishnapnv9-Oct-12 19:33 
AnswerRe: Architecture suggestions for an application in Web and IPAD form Pin
John-ph9-Oct-12 23:53
John-ph9-Oct-12 23:53 
AnswerRe: Architecture suggestions for an application in Web and IPAD form Pin
Peter Carrasco11-Oct-12 16:31
Peter Carrasco11-Oct-12 16:31 
QuestionConnecting to IBM's natural language web service from vb.net Pin
indian1439-Oct-12 15:48
indian1439-Oct-12 15:48 
AnswerRe: Connecting to IBM's natural language web service from vb.net Pin
jkirkerx9-Oct-12 17:25
professionaljkirkerx9-Oct-12 17:25 
QuestionHi Friends i want to create a web application Pin
VinothData9-Oct-12 15:41
VinothData9-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.