Click here to Skip to main content
15,915,336 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: website browsing error at local host Pin
kaushal_prabhakar16-Sep-07 23:39
kaushal_prabhakar16-Sep-07 23:39 
AnswerRe: website browsing error at local host Pin
ybasha17-Sep-07 16:21
ybasha17-Sep-07 16:21 
QuestionGive me sample code for How to Post a tutorial in My Project? Pin
yadlaprasad16-Sep-07 21:39
yadlaprasad16-Sep-07 21:39 
AnswerRe: Give me sample code for How to Post a tutorial in My Project? Pin
varshavmane16-Sep-07 22:55
varshavmane16-Sep-07 22:55 
AnswerRe: Give me sample code for How to Post a tutorial in My Project? Pin
N a v a n e e t h16-Sep-07 22:59
N a v a n e e t h16-Sep-07 22:59 
GeneralRe: Give me sample code for How to Post a tutorial in My Project? Pin
yadlaprasad16-Sep-07 23:37
yadlaprasad16-Sep-07 23:37 
GeneralRe: Give me sample code for How to Post a tutorial in My Project? Pin
N a v a n e e t h16-Sep-07 23:52
N a v a n e e t h16-Sep-07 23:52 
QuestionAJAX problem [modified] Pin
Vipin.d16-Sep-07 20:46
Vipin.d16-Sep-07 20:46 
hi Friends,
I am developing one web application in MS.NET 2005 and using some AJAX with the help of Ajax.dll(download from this site http://ajax.schwarz-interactive.de/csharpsample/default.aspx)

Also I am new to this AJAX wrold.

my doubt is through ajax we can enable or hide panal or assign value to textbox control from c# code.??
 <br />
Means I have a  code behind  function in c# like <br />
<br />
  [Ajax.AjaxMethod]<br />
  public string ChangeMe()<br />
  {<br />
<br />
        if (DrpDelMode.SelectedValue == "B")<br />
          {<br />
         Pnlcounter.Visible = false; <br />
         PnlBankDet.Visible = true;<br />
          TxtPaymentDetails.text="show bank"<br />
         }<br />
     else<br />
      {<br />
        Pnlcounter.Visible = true;<br />
       PnlBankDet.Visible = false;<br />
       TxtPaymentDetails. text="show Counter"<br />
     }<br />
<br />
    return "Hai Ajax";<br />
  }<br />
<br />


Onchange event of a dropdwon control i can invoke a JS function

 <br />
function showpanle()<br />
{<br />
alert('ha1');<br />
showpanel.ChangeMe(callback_Show);<br />
}<br />
<br />
function callback_Show(res)<br />
{<br />
document.getElementById("TxtName").innerText = res.value ;<br />
<br />
}<br />



in this above piece of code alert wrking fine and document.getElementById("TxtPaymentDetails").innerText value is null and assign value to TxtPaymentDetails textbox and panle visiblity settings are also not wroking.

how can i can solve this issue? or is it my Ajax.dll's probelm
if I comment the IF Else section in ChangeMe() function it is working.Means " Hai Ajax" shown in TxtName textbox.



-- modified at 2:54 Monday 17th September, 2007

All I ever wanted is what others have....
CrazySanker





AnswerRe: AJAX problem Pin
varshavmane16-Sep-07 20:52
varshavmane16-Sep-07 20:52 
GeneralRe: AJAX problem Pin
Vipin.d16-Sep-07 20:57
Vipin.d16-Sep-07 20:57 
AnswerRe: AJAX problem Pin
Parwej Ahamad16-Sep-07 20:57
professionalParwej Ahamad16-Sep-07 20:57 
GeneralRe: AJAX problem Pin
Vipin.d16-Sep-07 21:05
Vipin.d16-Sep-07 21:05 
QuestionHow to show HTML Editor value in the report Pin
RADSGR16-Sep-07 20:40
RADSGR16-Sep-07 20:40 
AnswerRe: How to show HTML Editor value in the report Pin
N a v a n e e t h16-Sep-07 23:07
N a v a n e e t h16-Sep-07 23:07 
QuestionMail in ASP.NET Pin
.NET- India 16-Sep-07 20:37
.NET- India 16-Sep-07 20:37 
AnswerRe: Mail in ASP.NET Pin
VenkataRamana.Gali16-Sep-07 21:12
VenkataRamana.Gali16-Sep-07 21:12 
GeneralRe: Mail in ASP.NET Pin
.NET- India 16-Sep-07 21:59
.NET- India 16-Sep-07 21:59 
Questiondiv tag Problem Pin
varshavmane16-Sep-07 20:33
varshavmane16-Sep-07 20:33 
AnswerRe: div tag Problem Pin
Sandeep Akhare16-Sep-07 20:36
Sandeep Akhare16-Sep-07 20:36 
GeneralRe: div tag Problem Pin
varshavmane16-Sep-07 20:41
varshavmane16-Sep-07 20:41 
AnswerRe: div tag Problem Pin
Sandeep Akhare16-Sep-07 20:42
Sandeep Akhare16-Sep-07 20:42 
GeneralRe: div tag Problem Pin
varshavmane16-Sep-07 20:50
varshavmane16-Sep-07 20:50 
GeneralRe: div tag Problem Pin
varshavmane16-Sep-07 21:27
varshavmane16-Sep-07 21:27 
GeneralRe: div tag Problem Pin
Sandeep Akhare16-Sep-07 21:29
Sandeep Akhare16-Sep-07 21:29 
GeneralRe: div tag Problem Pin
varshavmane16-Sep-07 21:35
varshavmane16-Sep-07 21:35 

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.