Lakshmi,
Please check this sample:
-
<%@ Page Language="C#" %>
-
-
<%@ Register TagPrefix="CuteWebUI" Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" %>
-
-
<script runat="server">
-
protected override void OnInit(EventArgs e)
-
{
-
base.OnPreRender(e);
-
-
tbnothing.Attributes["onclick"] = "document.getElementById('" + Uploader2.ClientID + "').startbrowse()";
-
}
-
public bool IsFireFox
-
{
-
get
-
{
-
string str = Request.UserAgent;
-
if (str == null)
-
return false;
-
return str.IndexOf("Firefox") != -1;
-
}
-
}
-
</script>
-
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
<html xmlns="http://www.w3.org/1999/xhtml">
-
<head runat="server">
-
<title>Sample</title>
-
</head>
-
<body>
-
<form id="form1" runat="server">
-
<div>
-
<%if (IsFireFox) %>
-
<%{ %>
-
<CuteWebUI:Uploader runat="server" ID="Uploader1" UploadType="IFrame" ShowFrameBrowseButton="True" />
-
<%} %>
-
<%else %>
-
<%{ %>
-
<asp:TextBox runat="server" ID="tbnothing" /><CuteWebUI:Uploader runat="server" ID="Uploader2"
-
UploadType="IFrame" InsertText="Browse" />
-
<%} %>
-
</div>
-
</form>
-
</body>
-
</html>
Regards,
Terry