Click here to Skip to main content
16,005,038 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionnewbie help Pin
vila321023-Apr-12 20:44
vila321023-Apr-12 20:44 
AnswerRe: newbie help Pin
Bernhard Hiller23-Apr-12 23:24
Bernhard Hiller23-Apr-12 23:24 
Questionanyone can help me with my code? i got object must implement iconvertible error after i put file upload in my source code..please help me..im new in asp.net Pin
alip rosli23-Apr-12 10:51
alip rosli23-Apr-12 10:51 
AnswerRe: anyone can help me with my code? i got object must implement iconvertible error after i put file upload in my source code..please help me..im new in asp.net Pin
jkirkerx23-Apr-12 11:48
professionaljkirkerx23-Apr-12 11:48 
GeneralRe: anyone can help me with my code? i got object must implement iconvertible error after i put file upload in my source code..please help me..im new in asp.net Pin
vvashishta24-Apr-12 18:15
vvashishta24-Apr-12 18:15 
GeneralRe: anyone can help me with my code? i got object must implement iconvertible error after i put file upload in my source code..please help me..im new in asp.net Pin
jkirkerx24-Apr-12 19:29
professionaljkirkerx24-Apr-12 19:29 
QuestionUpdate Listbox values after AJAX call doesn't work Pin
papy-boom23-Apr-12 9:36
papy-boom23-Apr-12 9:36 
AnswerRe: Update Listbox values after AJAX call doesn't work Pin
jkirkerx23-Apr-12 12:02
professionaljkirkerx23-Apr-12 12:02 
That would be onClientClick to run javasccript before the page submits a postback

papy-boom wrote:
The data that returns the webservice is

 

HTML
<option value="1">toto</option><option value="2">titi</option><option value="3">tata</option>


That's because you didn't include the selected attribute in the option tag when you wrote the new value in javascript.

Also, according to .net law, you can't populate a listbox or dropdown box in code behind, or from the server, and delete the values with javascript, and send the new selected value back to the server on postback, because the server has a temp list of the values it sent to the browser the first time, and it won't match the list on the postback.

You'll get nothing selected, because the original values are gone.

If your going to use javascript to populate the values via web service, you have to use an empty box, populate it, get the selection, send it back via web service,
AnswerRe: Update Listbox values after AJAX call doesn't work Pin
vvashishta23-Apr-12 18:31
vvashishta23-Apr-12 18:31 
GeneralRe: Update Listbox values after AJAX call doesn't work Pin
jkirkerx24-Apr-12 8:57
professionaljkirkerx24-Apr-12 8:57 
Questionimage in the body tag is not printing Pin
indian14323-Apr-12 7:14
indian14323-Apr-12 7:14 
AnswerRe: image in the body tag is not printing Pin
Not Active23-Apr-12 8:25
mentorNot Active23-Apr-12 8:25 
GeneralRe: image in the body tag is not printing Pin
indian14323-Apr-12 8:34
indian14323-Apr-12 8:34 
GeneralRe: image in the body tag is not printing Pin
Pete O'Hanlon23-Apr-12 9:12
mvePete O'Hanlon23-Apr-12 9:12 
GeneralRe: image in the body tag is not printing Pin
indian14323-Apr-12 10:24
indian14323-Apr-12 10:24 
GeneralRe: image in the body tag is not printing Pin
Pete O'Hanlon23-Apr-12 10:37
mvePete O'Hanlon23-Apr-12 10:37 
GeneralRe: image in the body tag is not printing Pin
indian14329-Apr-12 22:05
indian14329-Apr-12 22:05 
GeneralRe: image in the body tag is not printing Pin
Not Active23-Apr-12 12:21
mentorNot Active23-Apr-12 12:21 
QuestionCustomize HttpWebRequest in Compact Framework Pin
Tripathi Swati22-Apr-12 23:58
Tripathi Swati22-Apr-12 23:58 
AnswerRe: Customize HttpWebRequest in Compact Framework Pin
jkirkerx23-Apr-12 12:23
professionaljkirkerx23-Apr-12 12:23 
QuestionASP.Net Pin
fire_hawk22-Apr-12 21:15
fire_hawk22-Apr-12 21:15 
SuggestionRe: ASP.Net Pin
Richard MacCutchan22-Apr-12 21:28
mveRichard MacCutchan22-Apr-12 21:28 
AnswerRe: ASP.Net Pin
Chamila Nishantha22-Apr-12 22:16
Chamila Nishantha22-Apr-12 22:16 
AnswerRe: ASP.Net Pin
vvashishta24-Apr-12 18:27
vvashishta24-Apr-12 18:27 
QuestionGrouping in dropdown Pin
RA|-|UL PATEL22-Apr-12 20:56
RA|-|UL PATEL22-Apr-12 20:56 

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.