StreamReader sr = new StreamReader("D:\\PODB.txt");
string line;
while (( line = sr.ReadLine()) != null)
{
Response.Write(line);
}
Every Question..What does it mean? Why is this? How it works?
Microsoft .Net (pronounced dot (.) net) may be a package element that runs on the Windows software package.
.Net provides tools and libraries that change developers to form Windows package a lot of quicker and easier.
Microsoft describes it as:".Net is that the Microsoft internet Service strategy to attach data, people,
system and devices through software".I'm Choulla Naresh..!
Friday, June 27, 2014
Wednesday, June 25, 2014
Text To Voice Converter
Design Like this
Add References
After....
.Cs File
Add References
After....
.Cs File
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Speech;
using System.Speech.Synthesis;
using System.Text;
using System.Windows.Forms;
namespace TextToVoice_Convert
{
public partial class Form1 : Form
{
SpeechSynthesizer ss=new
SpeechSynthesizer();
public Form1()
{
}
private void
btnRead_Click(object sender, EventArgs e)
{
ss.Rate = TraceBarSpeed.Value;
ss.Volume = TrackBarVolume.Value;
ss.SpeakAsync(Txtmsg.Text);
}
private void
btnPause_Click(object sender, EventArgs e)
{
ss.Pause();
}
private void
btnContinue_Click(object sender, EventArgs e)
{
ss.Resume();
}
private void
btnLoad_Click(object sender, EventArgs e)
{
OpenFileDialog ofd = new
OpenFileDialog();
ofd.Filter = "Text files |*.txt";
ofd.ShowDialog();
string fname;
fname = ofd.FileName;
var sr = new
System.IO.StreamReader(fname);
Txtmsg.Text = sr.ReadToEnd();
sr.Close();
}
private void
btnExit_Click(object sender, EventArgs e)
{
Application.Exit();
}
private void
btnRecord_Click(object sender, EventArgs e)
{
SaveFileDialog sfd = new
SaveFileDialog();
sfd.Filter = "wave Files |*.wav";
sfd.ShowDialog();
String fname;
fname = sfd.FileName;
//SpeechSynthesizer ss = new SpeechSynthesizer();
ss.Rate = TraceBarSpeed.Value;
ss.Volume = TrackBarVolume.Value;
ss.SetOutputToWaveFile(fname);
ss.Speak(Txtmsg.Text);
ss.SetOutputToDefaultAudioDevice();
MessageBox.Show("Text
Recorded as voice", "conform");
}
}
}
Tuesday, June 24, 2014
DataTypes In C#
Sql-------------C#
varchar----------string
int ---------------convert.toint32--------int
bigint------------convert.toint64-------- long
date------------convert.todate..
varchar----------string
int ---------------convert.toint32--------int
bigint------------convert.toint64-------- long
date------------convert.todate..
Monday, June 23, 2014
Date And Time in Master Page Using Java Script
<head runat="server">
<title>JavaScript display current time on webpage</title>
<script type="text/javascript">
function ShowCurrentTime() {
var dt = new Date();
document.getElementById("lblTime").innerHTML =
dt.toLocaleTimeString();
window.setTimeout("ShowCurrentTime()", 1000); // Here
1000(milliseconds) means one 1 Sec
}
</script>
</head>
<body onload="ShowCurrentTime()">
<form id="form1" runat="server">
<div>
JavaScript Display current time second by second.
<label id="lblTime" style=" font-weight:bold"></label>
</div>
</form>
</body>
</html>
What is CTS (Common Type System) ?
The common type system defines how types are declared, used, and managed in the runtime, and is also an important part of the runtime's support for cross-language integration. The common type system performs the following functions:
Establishes a framework that helps enable cross-language integration, type safety, and high performance code execution.
Provides an object-oriented model that supports the complete implementation of many programming languages.
Defines rules that languages must follow, which helps ensure that objects written in different languages can interact with each other.
Establishes a framework that helps enable cross-language integration, type safety, and high performance code execution.
Provides an object-oriented model that supports the complete implementation of many programming languages.
Defines rules that languages must follow, which helps ensure that objects written in different languages can interact with each other.
What’s SingleCall activation mode used for?
If the server object is instantiated for responding to just one single request, the request should be made in SingleCall mode.
What is .Net Framework?
.Net Framework provides a foundation upon which .net application and xml webservices are built and executed.
What's the difference between login controls and Forms authentication?
Login controls are an easy way to implement Forms authentication without having to write any code. For example, the Login control performs the same functions you would normally perform when using the FormsAuthentication class—prompt for user credentials, validate them, and issue the authentication ticket—but with all the functionality wrapped in a control that you can just drag from the Toolbox in Visual Studio. Under the covers, the login control uses the FormsAuthentication class (for example, to issue the authentication ticket) and ASP.NET membership (to validate the user credentials). Naturally, you can still use Forms authentication yourself, and applications you have that currently use it will continue to run.
What is .Net Platform?
Microsoft .NET is a software development platform based on virtual machine architecture. Dot Net Platform is:
Language Independent – dot net application can be developed different languages (such as C#, VB, C++, etc.)
Platform Independent – dot net application can be run on any operating system which has .net framework installed.
Hardware Independent – dot net application can run on any hardware configuration
It allows us to build windows based application, web based application, web service, mobile application, etc.
Language Independent – dot net application can be developed different languages (such as C#, VB, C++, etc.)
Platform Independent – dot net application can be run on any operating system which has .net framework installed.
Hardware Independent – dot net application can run on any hardware configuration
It allows us to build windows based application, web based application, web service, mobile application, etc.
Subscribe to:
Posts (Atom)