Click here to Skip to main content
12,746,575 members (30,686 online)
   

ASP.NET

 
QuestionHow to add anchor tag in uploded html page Pin
VyasRavi677619-Dec-12 19:54
memberVyasRavi677619-Dec-12 19:54 
AnswerRe: How to add anchor tag in uploded html page Pin
@AmitGajjar20-Dec-12 6:39
member@AmitGajjar20-Dec-12 6:39 
GeneralRe: How to add anchor tag in uploded html page Pin
chirag774920-Dec-12 22:34
memberchirag774920-Dec-12 22:34 
AnswerRe: How to add anchor tag in uploded html page Pin
CommDev20-Dec-12 21:04
memberCommDev20-Dec-12 21:04 
GeneralRe: How to add anchor tag in uploded html page Pin
chirag774920-Dec-12 21:14
memberchirag774920-Dec-12 21:14 
GeneralRe: How to add anchor tag in uploded html page Pin
n.podbielski22-Dec-12 22:57
membern.podbielski22-Dec-12 22:57 
GeneralRe: How to add anchor tag in uploded html page Pin
n.podbielski22-Dec-12 22:57
membern.podbielski22-Dec-12 22:57 
Questionjquery for asp.net sometimes work sometimes doesn't work Pin
Dhyanga19-Dec-12 12:57
memberDhyanga19-Dec-12 12:57 
Hi,

I have jquery implemented for the popup confirmation on radio button select. So my radio button has yes or no options. so in each select, the popup should show up and based on the option, it has to hide and show the panel. But the problem is sometimes for the same option, jquery runs and sometimes for the same option jsquery doesn't run.

the following jquery is in my aspx page.
<script language="JavaScript" type="text/javascript">

        $(document).ready(function() {



    function confirmDelete()
         {
             if (confirm('It will delete your file. Is that Ok?'))
            {
                document.getElementById('<%= radbutSelector.ClientID %>').click();
                return true;
            }
            return false;
        }

    </script>


Now i have called this jquery on radio button select like this
 <asp:radiobuttonlist id="radWantEnter" runat="server"  
                 RepeatDirection="Horizontal" RepeatLayout="Flow" CssClass="radio" 
                    AutoPostBack="True" onclick="return confirmDelete();"
                    >
      <asp:Button Text="hiddenButton" ID="radbutSelector" runat="server" Style="display: none;"
        OnClick="radbutSelector_Click" />


And the code behind the radio button select is like this
  protected void radbutSelector_Click(object sender, EventArgs e)
        {
            
              
                if (radWantEnter.SelectedValue == "Yes")
                {
                    pnl1.Visible = true;
                   
                }

                else
                {
                    pnl2.Visible = false;
                    
                }
           
        }


sometimes the radbutSelector executes its codes and sometimes its not for the same event. Any idea and any solutions would be great help.
Dhyanga


modified 19-Dec-12 18:05pm.

AnswerRe: jquery for asp.net sometimes work sometimes doesn't work Pin
jkirkerx19-Dec-12 18:25
memberjkirkerx19-Dec-12 18:25 
GeneralRe: jquery for asp.net sometimes work sometimes doesn't work Pin
Dhyanga19-Dec-12 18:50
memberDhyanga19-Dec-12 18:50 
AnswerRe: jquery for asp.net sometimes work sometimes doesn't work Pin
jkirkerx19-Dec-12 19:09
memberjkirkerx19-Dec-12 19:09 
QuestionOnly 1 use for admin? Pin
xnaLearner19-Dec-12 2:28
memberxnaLearner19-Dec-12 2:28 
QuestionHave userID in view, need userName posted Pin
xnaLearner19-Dec-12 1:41
memberxnaLearner19-Dec-12 1:41 
AnswerRe: Have userID in view, need userName posted Pin
Matt U.19-Dec-12 5:11
memberMatt U.19-Dec-12 5:11 
AnswerRe: Have userID in view, need userName posted Pin
CommDev20-Dec-12 23:55
memberCommDev20-Dec-12 23:55 
QuestionUnable to start program http://localhost:1837/default.aspx using VS 2008 in Windows XP IE 8 Pin
sr15919-Dec-12 1:08
membersr15919-Dec-12 1:08 
QuestionHow to access 'name' given when user registers Pin
xnaLearner18-Dec-12 23:52
memberxnaLearner18-Dec-12 23:52 
AnswerRe: How to access 'name' given when user registers Pin
xnaLearner18-Dec-12 23:58
memberxnaLearner18-Dec-12 23:58 
Questionsequence contains no elements Pin
xnaLearner18-Dec-12 3:44
memberxnaLearner18-Dec-12 3:44 
AnswerRe: sequence contains no elements Pin
Matt U.18-Dec-12 8:23
memberMatt U.18-Dec-12 8:23 
GeneralRe: sequence contains no elements Pin
xnaLearner19-Dec-12 0:00
memberxnaLearner19-Dec-12 0:00 
GeneralRe: sequence contains no elements Pin
Matt U.19-Dec-12 2:47
memberMatt U.19-Dec-12 2:47 
Question[session] returns null Pin
xnaLearner18-Dec-12 0:20
memberxnaLearner18-Dec-12 0:20 
AnswerRe: [session] returns null Pin
Rahul Rajat Singh18-Dec-12 0:47
memberRahul Rajat Singh18-Dec-12 0:47 
GeneralRe: [session] returns null Pin
xnaLearner18-Dec-12 1:10
memberxnaLearner18-Dec-12 1:10 

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.170215.1 | Last Updated 19 Feb 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid