Posts

Showing posts from November, 2014

Generate Link In Dynamicaly in Literal Control asp.net c#

 Literal.Text="<a href='"+ConfigurationManager.AppSettings["WebSiteBasePath"] + "Find/" + ViewState["CityName"] + "/" + DataBinder.Eval(e.Item.DataItem, "Name").ToString()+"' >"+DataBinder.Eval(e.Item.DataItem, "Name").ToString()+"</a>"; 

Showing Top Repeater items with More link

  < asp : Repeater ID = " rpt " runat = " server " DataSourceID = " sql " OnItemDataBound = " rpt_ItemDataBound " > < HeaderTemplate > < ul id = " list " > </ HeaderTemplate > < ItemTemplate > < li id = " listItem " runat = " server " > <%# Eval("au_lname") %> </ li > </ ItemTemplate > < FooterTemplate > </ ul > < a id = " show " href = " javascript:show(); " > Show All </ a > < a id = " hide " href = " javascript:hide(); " style = " display:none; " > Hide </ a > </ FooterTemplate > </ asp : Repeater > < asp : SqlDataSource ID = " sql " runat = " server " ConnectionString = " <%$ ConnectionStrings:Pubs %> ...

Dynamic Link in Javascript in asp.net

window.location.href=" <%=ConfigurationManager.AppSettings["WebSiteBasePath"]%>View/" + CityName + "/Doctor/" + FirstName + "-" + MiddleName + "" +LastName+"/"+ID;

Opening For New Window in Browser in Javascript

            var obj=window.parent.document.getElementById('DoctorListing.aspx');              if(obj!=null)              {               obj.disabled=true;                            }              else              {              alert('Close Window');              } window.open(url,'PopupWindow','left=50,top=50,height=400,width=800,toolbar=no,menubar=no,location=no,scrollbars=no,unadorned=...