Click here to Skip to main content
15,905,563 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
XML
<div class="col-sm-2">
              <div class="form-group">
                <label for="checkin">Check-in</label>
                <div class="popover-icon" data-container="body" data-toggle="popover" data-trigger="hover" data-placement="right" data-content="Check-In is from 11:00"> <i class="fa fa-info-circle fa-lg"> </i> </div>
                <i class="fa fa-calendar infield"></i>
                <input name="checkin" type="text" id="checkin"  value="" class="form-control" placeholder="Check-in"/>
              </div>
            </div>
            <div class="col-sm-2">
              <div class="form-group">
                <label for="checkout">Check-out</label>
                <div class="popover-icon" data-container="body" data-toggle="popover" data-trigger="hover" data-placement="right" data-content="Check-out is from 12:00"> <i class="fa fa-info-circle fa-lg"> </i> </div>
                <i class="fa fa-calendar infield"></i>
                <input name="checkout" type="text" id="checkout" runat="server" value="" class="form-control" placeholder="Check-out"/>
              </div>
            </div>



When I use runat="server" the calender are not display .
Please tell me what is problem?
Posted
Comments
Schatak 11-Sep-15 4:24am    
you can see into chrome console that what is not rendering, i think you are using bootstap here, so without runat if its working then probably your ids are not rendering properly, see console for this.

1 solution

When you use runat on what? The problem is probably because adding runat is changing the ids of your controls and your client is probably attaching to your controls using the id that is listed in your markup (eg $("#checkout")), but .net changes the ids of server controls so the javascript can't find your control (view the source and try to find an element with the id of checkout).

That's a lot of assumptions but you haven't really supplied enough relevant information. We can't run your code, you'll need to debug it to see why your code isn't working, we can only make guesses.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900