Click here to Skip to main content
15,891,248 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionAsp.Net application after hosting(iis7.5) not executing wkhtmltopdf.exe Pin
Member 791718220-Jul-14 21:16
Member 791718220-Jul-14 21:16 
AnswerRe: Asp.Net application after hosting(iis7.5) not executing wkhtmltopdf.exe Pin
Blikkies20-Jul-14 23:09
professionalBlikkies20-Jul-14 23:09 
GeneralRe: Asp.Net application after hosting(iis7.5) not executing wkhtmltopdf.exe Pin
niteoti21-Jul-14 1:39
niteoti21-Jul-14 1:39 
GeneralRe: Asp.Net application after hosting(iis7.5) not executing wkhtmltopdf.exe Pin
Member 791718221-Jul-14 3:55
Member 791718221-Jul-14 3:55 
AnswerRe: Asp.Net application after hosting(iis7.5) not executing wkhtmltopdf.exe Pin
Kornfeld Eliyahu Peter21-Jul-14 9:24
professionalKornfeld Eliyahu Peter21-Jul-14 9:24 
AnswerRe: Asp.Net application after hosting(iis7.5) not executing wkhtmltopdf.exe Pin
jkirkerx23-Jul-14 11:11
professionaljkirkerx23-Jul-14 11:11 
QuestionPlease help to insert data from Listbox into table in SQL Server Pin
Member 1079445920-Jul-14 16:42
Member 1079445920-Jul-14 16:42 
AnswerRe: Please help to insert data from Listbox into table in SQL Server Pin
meeram3920-Jul-14 19:53
professionalmeeram3920-Jul-14 19:53 
1) Why can't you google it up for this very simple issue? It takes only half a second to get the answers.
2) It's always a bad practice to write inline Sql Queries, as it leads to injection.
3) Now, in your code shown above, the code
C#
ListBox2.Items[i].Selected = true;  //select all items
SqlTxt += "INSERT INTO [TABLE] (id, name, identity) VALUES(@ID, @NAME, '0' " + i + ") ;";

will always end up in inserting only one value, because it replaces new value on the next iteration. So what you can do is, you can create a BO(businessoobject) and convert that into a list, and pass that list to the database. You can call a stored proc instead of inline query. Stored proc will handle the list of input params. You can make the input character as an xml paramter as explained in this example or pass a comma separated string as explained in this example.
GeneralRe: Please help to insert data from Listbox into table in SQL Server Pin
Member 1079445920-Jul-14 20:17
Member 1079445920-Jul-14 20:17 
GeneralRe: Please help to insert data from Listbox into table in SQL Server Pin
meeram3920-Jul-14 22:34
professionalmeeram3920-Jul-14 22:34 
GeneralRe: Please help to insert data from Listbox into table in SQL Server Pin
vijendradudhe23-Jul-14 0:20
vijendradudhe23-Jul-14 0:20 
Questionhow to store text -box value in database Pin
Member 1095733819-Jul-14 2:03
Member 1095733819-Jul-14 2:03 
AnswerRe: how to store text -box value in database Pin
Dilan Shaminda19-Jul-14 16:35
professionalDilan Shaminda19-Jul-14 16:35 
Questionc# Code to save list of files from virtual directory to local drives Pin
pulkit_chopra1218-Jul-14 22:02
pulkit_chopra1218-Jul-14 22:02 
AnswerRe: c# Code to save list of files from virtual directory to local drives Pin
meeram3919-Jul-14 1:59
professionalmeeram3919-Jul-14 1:59 
QuestionReceiving requestTimeOut error on 200 concurrent users Pin
antony beula17-Jul-14 21:45
antony beula17-Jul-14 21:45 
AnswerRe: Receiving requestTimeOut error on 200 concurrent users Pin
ZurdoDev21-Jul-14 4:44
professionalZurdoDev21-Jul-14 4:44 
QuestionAsp Mvc 5 user registration fails Pin
AnCristina17-Jul-14 11:55
professionalAnCristina17-Jul-14 11:55 
QuestionASP.Net temporary Folder Pin
Member 260584316-Jul-14 21:03
Member 260584316-Jul-14 21:03 
QuestionIs it possible to run multiple websites on single port of iis? Pin
srinivas vadepally16-Jul-14 19:08
srinivas vadepally16-Jul-14 19:08 
AnswerRe: Is it possible to run multiple websites on single port of iis? Pin
Richard Deeming17-Jul-14 1:43
mveRichard Deeming17-Jul-14 1:43 
GeneralRe: Is it possible to run multiple websites on single port of iis? Pin
srinivas vadepally17-Jul-14 1:51
srinivas vadepally17-Jul-14 1:51 
GeneralRe: Is it possible to run multiple websites on single port of iis? Pin
Richard Deeming17-Jul-14 1:55
mveRichard Deeming17-Jul-14 1:55 
GeneralRe: Is it possible to run multiple websites on single port of iis? Pin
srinivas vadepally17-Jul-14 2:10
srinivas vadepally17-Jul-14 2:10 
QuestionDropdownlist and nested griview Pin
BHARATGARANDE16-Jul-14 17:53
BHARATGARANDE16-Jul-14 17:53 

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.