|
You need SQL Server Management Studio for it. Please Install SSMS.
|
|
|
|
|
Do u have yahoo id..i want to solve my some queries..they are headache from long time please..my id is dorian_yates2007@yahoo.co.in
|
|
|
|
|
greendragons wrote: Do u have yahoo id..i want to solve my some queries.
You are welcome. Check my ID from my profile Page. Feel free to drop me mail.
Thanks.
|
|
|
|
|
Sure..but what about my problem is ther anyway that i can get just date part from datetime object..?
|
|
|
|
|
greendragons wrote: that i can get just date part from datetime object..?
U are asking for C# or SQL ?
here it for SQL
DECLARE @DateOnly DATETIME<br />
SET @DateOnly = CAST(FLOOR(CAST(GetDate() AS FLOAT)) AS DATETIME)
Details Source : Check
|
|
|
|
|
|
greendragons wrote: For c#
This is genral syntax.
DateTime.Now.ToShortDateString();
Some more clarification :
DateTime dt=DateTime.Now;
int year=dt.Year;
int month=dt.Month;
int day=dt.Day;
Hope this will help you
|
|
|
|
|
Thnx alot it's working..
Timespan ko = date1.subtract(dtc);
int day= ko.days;
now i can eaisly check dates THNX!
|
|
|
|
|
You are welcome !
|
|
|
|
|
string dateValue = DateTime.Now.ToString("dd.MM.yyyy");
Just hoping this will helps you more.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|
|
I am developing an asp.net map control application to help people who cannot find their way to their destination when they go to events, any tips on how i can find something similar to google earth in order to make my application functional?
ML Lingwati
|
|
|
|
|
|
Good day!
I have an ASP.NET web application , but i want to add a forum.
I've choosen the YAF ( Yet Another Forum ). Since its a whole new ( different ) web application i'm having trouble hosting both ( because that way i'll have to pay for hosting every individual application ).
My goal is to achieve by url rewriting : forum.XXXXXXXX.com - the forum where www.XXXXXXXXX.com is the main domain name.
Is it possible for somehow merge the two applications ?
I'm not quite sure what to google
Regards, Hris
|
|
|
|
|
Are you not able to create a sub-domain for your
main domain without having to pay extra?
|
|
|
|
|
Good evening. Thanks for your quick response !
So what you are saying is that i need to buy a subdomain and host the forum application separately ?
Regards, Hris
|
|
|
|
|
I have an C# .NET web app...small but perfectly formed. We have upgraded to .NET2. We now get an error on navigating off 1 page. When the user clicks 1 of the 2 buttons the app crashes with the well know error.....
'Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.
Now before you all shout 'put the machine code in the webconfig', I have, on all 7 of the the front ends. And it hasn't cured it. And if it is so important, then how come the rest of the app was working fine without it?
Now I know it's related to viewstate and the fact that the postback can go to another server but I don't know much more.
I have added <enableViewStateMac="false"> , this works a treat, cures my problem but has been deemed an unnacceptable fix by our solution architect. Something to do with security.
And suggestions on my next move would be welcome.
Thanks
|
|
|
|
|
|
Hello friends,
I made a simple ASP.NET Webservice with one methode that needs some parameters:
[WebMethod]
public String Person(string Id, string username, string pw)
{
}
My question is, can a PHP client use this service?
Thanks in advance.
|
|
|
|
|
Web Service can be consume by any one. As this is an SOAP XML format
|
|
|
|
|
I want to know how to be able to interact with asp page controls like buttons and dropdown lists without the whole page refreshing and also be able to use the query string to update the content within the contols without the whole page refreshing itself. Thank you in advance
ML Lingwati
|
|
|
|
|
You can use Ajax. UpdatePanel
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
How do i call the following method which is declared in a vb files
Public Function byteArrayToImage(ByVal byteArrayIn As Byte()) As Image
Dim ms As New MemoryStream(byteArrayIn)
Dim returnImage As Image = Image.FromStream(ms)
Return returnImage
End Function
I need to call this function here(Below)
Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles GridView1.SelectedIndexChanged
End Sub
|
|
|
|
|
kaining89 wrote: How do i call the following method which is declared in a vb files
As this is inside a file, means it should have a class. Create the object of that class and call the method.
|
|
|
|
|
Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles GridView1.SelectedIndexChanged
obj.byteArrayToImage()
End Sub
but i do not know how to pass the parameter in obj.byteArrayToImage(), what shld be inside ()?
|
|
|
|
|
You have declare your Function like this
Public Function byteArrayToImage(ByVal byteArrayIn As Byte()) As Image
Dim ms As New MemoryStream(byteArrayIn)
Dim returnImage As Image = Image.FromStream(ms)
Return returnImage
End Function
now if you have declare this in same page , then you can access it like this
Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles GridView1.SelectedIndexChanged
obj.byteArrayToImage(byteArrayIn)
End Sub
but if you have this in a Different class , then you have to create an object of a Class like this
MyClass obj = new MyClass
obj.byteArrayToImage(byteArrayIn)
Hope this Helps
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|