|
Well...in my PC i have created the virtual directory .I uploaded them the precompiles files with the virtual directory.I do not know whether they need to create another virtual directory there in their PC pointing to the file i have uploaded in their desktop or my virtual directory is sufficient.I do not know what they have been doing.But i just tried to view the site here in my PC giving the said URL.I am just worried coz it dint work..and i was wondering if there is any thing i still have to work on
Thanks!
confused
|
|
|
|
|
is that mean you just upload your virtual directory to their server? and didn't or don't know if they make the virtual directory to you?
if so, please ask them to create one to you, since you couldn't upload the virtual directory setting...
|
|
|
|
|
hai all
i have 2 date column, receive date n due date. RD should be greater than DD. am entering the date in the form dd/mm/yyyy. and For validation am using a function validatedate. the code is given below.
string dd=Convert.ToString(fld.Month);
string dd1=Convert.ToString(fld1.Month);
string mm=Convert.ToString(fld.Day);
string mm1=Convert.ToString(fld1.Day);
string yy=Convert.ToString(fld.Year);
string yy1=Convert.ToString(fld1.Year);
string date=mm+"/"+dd+"/"+yy;
string date1=mm1+"/"+dd1+"/"+yy1;
if((String.Compare(yy,yy1)>0)||(String.Compare(mm,mm1)>0)||((String.Compare(dd,dd1)>0)&&(String.Compare(mm,mm1)==0))||((String.Compare(dd,dd1)<=0)&&(String.Compare(mm,mm1)>0)))
{
lblmsg.Text="error";
RegisterStartupScript("startup","<script>window.alert('Error:"+date.ToString()+">"+date1.ToString()+" ')</script>");
}
else
{
RegisterStartupScript("startup","<script>window.alert('correct:"+date1.ToString()+">"+date.ToString()+" ')</script>");
}
but for 1,2,3,up to 9 it is taking only one digit and not validation properly. how to include 0 also along with the date.
plz help me.
plz......
i poted a quest before. but didnt get any reply. so i tried it in this format. plz do help me
|
|
|
|
|
so what's wrong with
if (fld > fld1)
???
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
since am inserting value as dd/mm/yyyy,the system is taking this as mm/dd/yyyy. to validate that i wrote all these code. but still am finding some error.
|
|
|
|
|
P_Elza wrote: since am inserting value as dd/mm/yyyy,the system is taking this as mm/dd/yyyy
So what ? A datetime is a datetime. What you're talking about is a rendering detail. If you're getting a date as a string, parse it with DateTime.TryParse and specify the format used. Then you have a datetime object. It doesn't care what order you want the date in, it has the values individually named.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
am getting the date as datetime format only. it is working only for small dates like below 20 and within one month. if it goes to 2 different month, it is taking only one value. and not showing the error also. if the 2 dates r 02/10/2007 n 22/10 2007 also it is not working. and i tried with what u said. the same problem is comming.
|
|
|
|
|
will it become easy to use CompareTo in your case?
two DateTime object:
DateTime dt1 = new DateTime(2007, 10, 2);
DateTime dt2 = new DateTime(2007, 10, 22);
int result = dt1.CompareTo(dt2);
if (result == 1)
{
//dt1 is after dt2
}
else if (result == -1)
{
//dt2 is after dt1
}
else if (result == 0)
{
//dt1 is equal to dt2
}
|
|
|
|
|
That's because you are comparing the values as strings. If you just compare the DateTime values, it's not a problem.
---
single minded; short sighted; long gone;
|
|
|
|
|
if(DateTime.TryParseExact(fieldtext, DATETIMEPATTERN, null, DateTimeStyles.None, out doctime)) {
}
fieldtext is the string representation of the date eg "23/04/1978", DATETIMEPATTERN is the format "dd/MM/yyyy". doctime will contain a valid DateTime object if the method returns true.
For more info, check out the MSDN website.
A general hint, work with DateTime objects as much as possible and use the DateTime's ToString method at the very last moment...
good luck.
V.
No hurries, no worries
|
|
|
|
|
Is it possible to make aliases for elements in an XML Schema for Xsd.exe tool? I want to have localized elements/attributtes names in an XML file and english names in the generated code.
It would be also nice to have <summary> blocks in the generated code. I do not want to modify it manually because I update the schema and generate a new code sometimes. Is there some kind of 'comment' attribute or sth like that?
Maybe there is some free tool which would do these tasks for me, whatever. Please help.
Greetings - Gajatko
Portable.NET is part of DotGNU, a project to build a complete Free Software replacement for .NET - a system that truly belongs to the developers.
|
|
|
|
|
I have to embed multiple icons in my application so that windows can access it (i.e. Not as a managed resource). Is there any way to do it programatically/changing any prop settings of the project. Including the icons as 'embedded resource' will not help.
Now I am achieving this by opening the executable in VS IDE after building and manually adding the resource.
*jaans
|
|
|
|
|
Hello,
you can try the following C# compiler options
/win32res:<file> Specify a Win32 resource file (.res)
/win32icon:<file> Use this icon for the output
/resource:<resinfo> Embed the specified resource (Short form: /res)
/linkresource:<resinfo> Link the specified resource to this assembly
(Short form: /linkres)
Where the resinfo format is <file>[,<string
name>[,public|private]]
for more compiler options check the belwo link
http://msdn2.microsoft.com/en-us/library/2fdbz5xd(vs.80).aspx[^]
Cheers,
Suresh
|
|
|
|
|
Hi, i want to send & receive SMS in C# using USB Port , how i do this, it is good if you give me a code.
|
|
|
|
|
What makes you sure you can ? Do you mean the USB is used to connect to the phone ? If so, I don't get why you need to involve a PC at all. If not, from where do you hope to recieve SMS ? Is there an SDK for this, or are you just making it up ?
Sending SMS is possible through a number of webservice, easily found with google.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
What exactly are you trying to do. Explain your situation, what hardware you are using, etc...
I am using a gsm modem connected through a serial connection. With this gsm modem i send and receive sms messages.
|
|
|
|
|
Dear ALL,
I AM FACING PROBLEM I AM DEVLOPING DESKTOP APPLICATION NOW I WANT TO UPLODE THE FILES TO MY SERVER HOW CAN I DO THIS THING.
REGARDS
s REHMAN
|
|
|
|
|
Using FTP, IIS... or adding a shared folder on your server and adding on client computer
Visit my blog at http://dotnetforeveryone.blogspot.com/
|
|
|
|
|
Help me!!
I'm launching an external app using System.Diagnostics.ProcessStart() to download data from an inventory pistol. I can't integrate this app, I only can execute it. But my problem is that it download data from comm port, and when I launch it from windows all is fine and works, but when I start It from my app doesn't communicate. Seems that can open comm port.
Can somebody hel me?
Visit my blog at http://dotnetforeveryone.blogspot.com/
|
|
|
|
|
Some things to check:
1. How are you starting it outside of your application? If you are using a short-cut or a batch file, check to make sure you are using the same commad-line parameters.
2. I believe only 1 application can have the COM port open, so are you sure it's not already open when you launch it from your application?
3. Are you launching the application using the same credentials? If you are changing users in your application (using impersonation) or are launching your application as a different user, then maybe that person doesn't have rights. This includes rights to open the COM port and/or write to the "download" directory, if any.
4. Finally, as a test try launching it using a small test app that only starts the third-party app. This would help rule out ProcessStart as the culprit.
Take care,
Tom
-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com
|
|
|
|
|
Hi,
How can I find all textbox in a form at runtime?
Thank you
|
|
|
|
|
By iterating over the controls collection of the form and check each control to see if it's a textbox
foreach(Control control in Controls)
{
TextBox tb = control as Textbox;
if (tb != null)
{
tb.Text = string.Empty;
}
}
An ASP.NET app would require a recursive solution.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
May still need to do a recursive for container such as panel, tablelayout, group, etc.
<br />
protected virtual void UnbindControls(Control control)<br />
{<br />
foreach (Control obj in control.Controls)<br />
{<br />
if (obj is Panel)<br />
{<br />
UnbindControls(obj);<br />
}<br />
else if (obj is GroupBox)<br />
{<br />
UnbindControls(obj);<br />
}<br />
else if (obj is TabControl)<br />
{<br />
UnbindControls(obj);<br />
}<br />
<br />
<br />
if (obj is TextBox)<br />
{<br />
}<br />
}<br />
}<br />
|
|
|
|
|
Good point.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I have to make an application for windows as well as a same application for mobile. It is final project of my master degree and i m very confused to decide that which type of application should i have to design.
Ahmed
|
|
|
|