Click here to Skip to main content
15,920,005 members

Comments by mehalanandu (Top 16 by date)

mehalanandu 25-Aug-10 2:02am View    
public partial class Normal_File : Form
{

string fileDes,fileini;
int len;
public Normal_File()
{
InitializeComponent();
}
private void Normal_File_Load(object sender, EventArgs e)
{

btnSend.Enabled = false;
this.openFileDialog1.Multiselect = true;


}

private void btnOpen_Click(object sender, EventArgs e)
{
DialogResult dr = this.openFileDialog1.ShowDialog();
if (dr == System.Windows.Forms.DialogResult.OK)
{
foreach (string file in openFileDialog1.FileNames)
{
txtFilePath.Text = "";
openFileDialog1.ShowDialog();
txtFilePath.Text = openFileDialog1.FileName;
fileDes = openFileDialog1.FileName;
if (fileDes == "openFileDialog1")
{
lblError.Text = "";
lblError.Text = "Select a File first";
txtFilePath.Text = "";
btnSend.Enabled = false;
}
else
{
len = fileDes.Length;
fileini = fileDes.Substring(fileDes.IndexOf("\") + 1);
btnSend.Enabled = true;
}


}
}
this is was i tried,but it is not retrieved the files.......plz,help me.
mehalanandu 24-Aug-10 8:40am View    
n server and client applicatn
mehalanandu 6-Aug-10 3:33am View    
i replace tat but remains t sam pbm..wat i do sir sir
mehalanandu 6-Aug-10 2:54am View    
I attach the code ...
refer tat..plz
mehalanandu 6-Aug-10 2:52am View    
Source code:
<asp:gridview id="GridView1" runat="server" allowpaging="True" autogeneratecolumns="False"
="" cellpadding="3" cellspacing="2" onpageindexchanging="GridView1_PageIndexChanging" onrowcancelingedit="GridView1_RowCancelingEdit" onrowediting="GridView1_RowEditing" onrowupdating="GridView1_RowUpdating" pagesize="3">
<columns>
<asp:commandfield showeditbutton="True">
<asp:boundfield datafield="name" headertext="Name">