|
Hi,
can any one tell me how to check whether an email id entered by a user is a valid one or not. I think it should be done using socket programming. I don't have any idea in socket programming.
Kindly help me in solving this problem.
|
|
|
|
|
Please use regular Expression.
Continue...
|
|
|
|
|
Hi,
Email validation means not using Validation Controls in ASP.NET.
I want to check whether the domain and that emailid exist or not.
Suppose a user has entered an email like asd@yahoo.com
In that I want to check whether that domain exist or not. Afterwards
I want to check whether that email exist or not.
|
|
|
|
|
The best I've managed to do in the past is look up the MX record for the domain - if one returns then it's about as close as you can get. Goole for MX record and C#.
This[^] looks promising.
|
|
|
|
|
Hi,
I have to generate a report of absentees between two given dates using Crystal Reports in .NET. Suppose the user has entered two dates
01/01/2007 and 30/01/2007 I want to generate report on no. of absentees between the two dates.
This data is there in a table called tbl_Swipes. In this all the employees who attended the office will be recorded along with the date.
So if an employee does not have data on a particular date it means that he is absent on that day.
So, finally I have to generate report of absentees between two given dates.
|
|
|
|
|
what is u r problem. Give me details
|
|
|
|
|
hi
i have created a stored procedure in sql server with two parameters
todate and from date
i want to generate a crystal report using above procedure
i have no idea about what to write in add command of report for
executing a stored procedure with parameters
if anyone have any idea pls suggest
thanks in advance
|
|
|
|
|
im a newbie in c# could anyone help me with me a code.. i have a dropdown month which start FRom to To. I have a data through database accordingly to month so i want to to view the data according to their month for example data for january, data for feb, and so far an so on depending of what month did i choose in the dropdown.(hope you'll understand my situation. Please somebody help me out to this code.)
|
|
|
|
|
While no one here is going to help you write your code. Here's the approach to take.
Load the dropdown with options.
Add event handler for dropdown with code to select data based on the selectedItem or selectedIndex property of the dropdown.
Hold the returned data in a dataset or likewise, then bind the dataset to a datagridview or display the results in some other fashion as needed.
Just because we can; does not mean we should.
|
|
|
|
|
Hello All,
I am getting one error on server
"A namespace does not directly contain members such as fields or methods"
When i am requesting this page on server.
While page is working fine on Localhost.
Can any one suggest me what kind of error is this and why this error is coming.
Thanks and Regards
Avesh Agarwal
|
|
|
|
|
From some google results, check to make sure your namespace declaration is in lowercase.
Example: namespace myproject
Bad Example: Namespace myproject
Remember that C# is case-sensitive.
Just because we can; does not mean we should.
|
|
|
|
|
Hello All,
Pardon me if i am posting this question in the incorrect forum.
I am looking for an application that if needed i am ready to buy ,that will copy 100 GB single files over a 1GB network.
If anybody has any links to provide or any suggestions,i will be thankful.
Thanking you
j
|
|
|
|
|
Why do you need an application to do that? What exactly are you copying and to what destination? e.g. another computer in your network, another computer over the internet .. etc
|
|
|
|
|
Thanks for the reply.
We need to transfer 100gb files inside a "network" which is using 1GB network.It could be databases or files thst we are trying to transfer.
It could be between computers or servers inside teh same network.
Expecting your response.
Thanking You
|
|
|
|
|
I'm sorry I still don't understand the problem, you want to copy files from one computer to another you just copy them to a shared folder on the other computer or you could also use FTP ..
|
|
|
|
|
Hi,
I will explain my issue.I have a big office network with more than 100 systems.I use a 1gb network.i want to transfer files between the computers and between the computer and the servers i have.
So for this purpose i am looking for an application that "i am ready to buy" if its necessary that will help me to transfer 100 GB single files over a 1GB network.
I tried in Google and i am at a dead end.
Can you help me with this please.
Thanking You
|
|
|
|
|
Hi!
The application that "you are ready to buy" is called explorer.exe and part of each windows installation.
Or you can click start>run, enter cmd and then use the copy command to copy files.
It doesn't matter how large the files are or how fast your network is in principle, copying works exactly the same...
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Are you trying to copy the files to all the computers on your network?
|
|
|
|
|
Hello experts,
I have a desktop application and I want to give a utility to upgrade the application using web or apply patches.
Suppose I have two customers and one needs inventory module and other needs payroll module with actual application then how I can do this in single application...?
Also If I change some logic (Suppose bug fixes) then How I provide patches to end user...?
Regards
Pankaj Joshi
If you want to shape your dreams into reality, please wake-up...
|
|
|
|
|
Instalation pakage keep a registry key.The key contain the information where the file have place.
Make a patch file with a cab or zip file.
make a small application with a patch button.
if u click the button copy the file and paste to the destination location
the location read from the registery
It is a same one.
Continue...
|
|
|
|
|
Hi guys, I am trying to implement a design for my classes. So far everything seems to be working the way they are structured. However, there are a few problems:
a) How can I build a relationship between the Rectangle(store data) and RectangleUser(Control) classes
b) As you have noticed, the Rectangle class object is assigned to the PropertyGrid Control and its properties will be exposed to the PropertyGrid. Lets say, if i change the X property through the PropertyGrid control the actual RectangleControl object Location which is shown on the form1 wouldn't be changed becuase there is no relationship.
The way I am thinking is to have an object that would would listen if the data is changed in accordance to that it will change the RectangleControl class values. Is there any better way to do than this.
Form1.cs
{
PropertyGrid pg = new PropertyGrid();
Rectangle r = new Rectangle(0,0,200,200);
RectangleControl rc = new RectangleControl(r);
Form1.Controls.Add(rc);
pg.SelectedObject=r;
}
Shape
{
int _X;
int _Y;
int _Width;
int _Height;
public Shape(int x, int y, int width, int height)
{
this._X=x;
this._Y=y;
this._Width=width;
this._Height=height;
}
}
Rectangle:Shape
{
public Rectangle(int x, int y, int width, int height)
{
this._X=x;
this._Y=y;
this._Width=width;
this._Height=height;
}
}
ShapeControl:UserControl
{
}
RectangleControl:ShapeControl
{
public RectangleControl(Rectangle r)
{
this.Location = new Point(r._X,r._Y);
this.Width = r._Width;
this.Height = r._Height;
}
}
|
|
|
|
|
From what I can understand from your code, you have defined or are trying to define 3 classes (Shape, Rectangle, and RectangleControl).
All of these provide one constructor. But there is no implementation of any of these. In addition, I feel your over using the 'this' object.
I'd re-evaluate what your trying to accomplish and recode accordingly. If you are simply trying to change the width/height of your RectangleControl control, expose those properties and simply change the values.
<br />
RectangleControl rc = new RectangleControl(r);<br />
rc.width = 200;<br />
rc.height = 200;<br />
Just because we can; does not mean we should.
|
|
|
|
|
How can I alter this code
<br />
using System;<br />
<br />
public class Analysis<br />
{<br />
public void ProcessExamResults()<br />
{<br />
int passes = 0;
int failures = 0;
int studentCounter = 1;
int result;
<br />
while ( studentCounter <= 10 )<br />
{<br />
Console.Write( "Enter result (1 = pass, 2 = fail): " );<br />
result = Convert.ToInt32( Console.ReadLine() );<br />
<br />
if ( result == 1 )
passes = passes + 1;
else
failures = failures + 1;
<br />
studentCounter = studentCounter + 1;<br />
}
<br />
Console.WriteLine( "Passed: {0}\nFailed: {1}", passes, failures );<br />
<br />
if ( passes > 8 )<br />
Console.WriteLine( "Raise Tuition" );<br />
}
}
so that it can validate its inputs.I want the app to keep looping until the user enters a correct value.
Thnx!
|
|
|
|
|
Firstly, this looks surprisingly like a homework question.
Secondly, this is very simple.
Thirdly, it would help if you specified what valid inputs are (I know I could read them from the code but I'm lazy).
|
|
|
|
|
Write a static function that checks for a valid input entry. Then for each entry, pass it through the function
Example function
public static bool IsValidEntry(int entry)
{
switch(entry)
{
case 1:
return false;
break;
case 2:
return true;
break;
default:
return false;
}
}
|
|
|
|