to install plugin Click here.
Link in Firefox
Website
to install plugin Click here.
Link in Firefox
Website
Labels: Internet
in notepad save this text as lowdisk.reg and then run it
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoDriveTypeAutoRun"=dword:00000091
"NoLowDiskSpacechecks"=dword:00000001
Labels: Windows
Add this tag inside
<head>
<link href="'http://website.com/favicon.ico'" rel="'shortcut" type="'image/ico'/">
head>
Labels: HTML
<asp:TemplateColumn HeaderText="Link">
<ItemTemplate>Link
<asp:HyperLink runat="server" Text="<%# DataBinder.Eval(Container.DataItem, FLD)%>" NavigateUrl="http://localhost" title="<%#DataBinder.Eval(Container.DataItem, FLD)%>" >
asp:HyperLink>
ItemTemplate>
asp:TemplateColumn>
<asp:HyperLinkColumn Text="Link" DataNavigateUrlField="Code" DataNavigateUrlFormatString="/web/frmrpr.aspx?codeId={0}"
HeaderText="Link">
asp:HyperLinkColumn>
Labels: ASP.NET
div title="<%# DataBinder.Eval(Container.DataItem,"ColName") %> - <%# DataBinder.Eval(Container.DataItem,"note") %>"><asp:Label runat="server" ID="LblName" ToolTip='' Text='<%# Bind("ColName") %>' />div>
Labels: ASP.NET
<%@ Page Language="C#" Debug="true"%>
<script runat="server">
void Button1_Click(object Source, EventArgs e)
{
txtMsg.InnerHtml = saveFiles();
}
string saveFiles() {
string strMessage = "";
string strFileName;
HttpPostedFile objFile;
for (int i=0; i
objFile = Request.Files[i];
if (objFile.FileName != "") {
strFileName = objFile.FileName;
strFileName = strFileName.Substring(strFileName.LastIndexOf("\\")+1);
try {
objFile.SaveAs("c:\\upload\\"+strFileName);
strMessage+= "Uploaded: c:\\upload\\"+strFileName+"
";
}
catch (Exception err) {
strMessage+= "Failed uploading "+strFileName+": "+err.ToString()+"
";
}
}
}
return strMessage;
}
script>
<html>
<head>
<title>Multiple File Upload with ASP.NETtitle>
head>
<body>
<b>Multiple File Upload Sampleb>
<form id="frmUp" enctype="multipart/form-data" runat="server">
Select file for upload:
<input id="txtFile" type="file" runat="server">
<br>
Select file for upload:
<input id="txtFile2" type="file" runat="server">
<br>
Select file for upload:
<input id="txtFile3" type="file" runat="server">
<br>
<span id=txtMsg runat="server" />
<br>
<input type=button id="Button1" value="Upload" OnServerClick="Button1_Click" runat="server">
form>
</body>
html>
Labels: ASP.NET
ReportDocument CrReport = new ReportDocument();
CrReport.Load("report\\report.rpt");
ParameterFields ParamFields=new ParameterFields();
ParamField=new ParameterField();
ParameterDiscreteValue spValue1=new ParameterDiscreteValue();
ParamField.ParameterFieldName ="@field";
ParamField.ParameterType = CrystalDecisions.Shared.ParameterType.StoreProcedureParameter;
spValue1.Value = value;
ParamField.CurrentValues.Add(spValue1);
ParamFields.Add(ParamField);
TableLogOnInfo myTableLogonInfo = new
CrystalDecisions.Shared.TableLogOnInfo();
myTableLogonInfo = CrReport.Database.Tables[0].LogOnInfo;
myTableLogonInfo.ConnectionInfo.ServerName = "Servername";
myTableLogonInfo.ConnectionInfo.DatabaseName = "DB";
myTableLogonInfo.ConnectionInfo.UserID = "sa";
myTableLogonInfo.ConnectionInfo.Password="pass";
CrReport.Database.Tables[0].ApplyLogOnInfo( myTableLogonInfo);
CrystalReportViewer1.ParameterFieldInfo = ParamFields;
CrystalReportViewer1.ReportSource = CrReport ;
Labels: C#, Crystal Report