|
Asp.net menu in Safari
|
|
06.08.2008 15:59:18
- Filed under :
Asp.net
|
|
|
Asp.Net 2.0 Menu Control is not working with Mac Safari browser properly. The mouseovers simply do not work, and when you click on one of the links, the menu disappears completely. This is a known issue. First off, Safari gets served the menu adaptor which is fully functional but does not support the dynamic fly-outs.
Use below code to your page_load event and see the magic.if (Request.UserAgent.IndexOf("AppleWebKit") > 0) { Request.Browser.Adapters.Clear(); } If you are using Master page then paste this code into master page code behind page.
Keywords : Mac Safari, asp.net, hack
|
with 0 comments
|
|
|
IE Tab for Firefox
|
|
05.08.2008 07:40:33
- Filed under :
|
|
|
IE Tab - an extension from Taiwan, features: Embedding Internet Explorer in tabs of Mozilla/Firefox.
It's useful for all developers to test their website.
Click here to download and install.
Keywords : IE Tab, add-ons, firefox
|
with 0 comments
|
|
|
Check if a object already exists in arraylist
|
|
10.07.2008 10:50:44
- Filed under :
C#
|
|
|
DataView dv = new DataView(dt, "oyverdimi is null", "altkategoriID Asc", DataViewRowState.CurrentRows);
ArrayList arr = new ArrayList(); for (int i = 0; i < dv.Count; i++) { if (!arr.Contains(dv[i]["KategoriAdi"].ToString())) { arr.Add(dv[i]["KategoriAdi"].ToString()); } }
Keywords : Arraylist, contains, add unique item to arraylist.
|
with 0 comments
|
|
|
Get the UserID of the User
|
|
07.07.2008 18:19:43
- Filed under :
Asp.net
|
|
|
If you use the new comfortable Login Controls of ASP.NET v2, here is how you resolve the UserID of the currently logged in user:MembershipUser myObject = Membership.GetUser(); string UserID = myObject.ProviderUserKey.ToString(); PS. You should GUID for UserID if you use SQL Server as a DB
MembershipUser myObject = System.Web.Security.Membership.GetUser();
Guid UserID = new Guid(myObject.ProviderUserKey.ToString());
Keywords :Asp.net, Membership framework
|
with 0 comments
|
|
|
Find a control in masterpage (contentplaceholder)
|
|
11.01.2008 11:30:36
- Filed under :
Asp.net
|
|
|
// to call :
CheckCheckBoxes(Page);
// function :
private string CheckCheckBoxes(Control oControl)
{
string str = string.Empty;
foreach (Control c in oControl.Controls)
{
if (c is CheckBox)
{
CheckBox chk = (CheckBox)c.FindControl(c.ID);
if (chk.Checked)
{
str += chk.ID;
}
}
if (c.HasControls())
{
CheckCheckBoxes(c);
}
}
return str;
}
Keywords : Loop in controls.
|
with 1 comments
|
|
Previous
|
Next
Current Page: 1
|