|
Abhishek Sur wrote: Now to call just use myString.GetNumber.
I am not able to get it in intellisense when I am trying to get myString.GetNumber.
Thanks
Imrankhan
please don't forget to vote on the post that helped you.
|
|
|
|
|
I got the solution.I got error at compile time that says 'Extension methods must be static' so I create one class named StringHelpers as static.
public static class StringHelpers
{
public static int GetNumber(this string str)
{
return 1;
}
}
Thanks
Imrankhan
please don't forget to vote on the post that helped you.
|
|
|
|
|
Yes .. sorry.. I just overlook on that.
Really extension functions should be declared as static .
I think now you have made it working ..
cheers...
|
|
|
|
|
Hello,
Is their a way to open a dwg file format in IE.
I tried open it using the response.outputstream but it appear as text and not the drawing.
regards.
dghdfghdfghdfghdgh
|
|
|
|
|
Browser cant show binary content.
|
|
|
|
|
hii m using shopping cart in my application.
i have created it but it is open for anonymous user i want that only after log in one can use this facilitie.any idea or link.m using csharp(asp.net 2.0).thnks....
|
|
|
|
|
Create a Session when the user logs in ....
and check that session when a user tries to add an item into the
cart.
|
|
|
|
|
thnks....
can u give me any link or example which follow this.....
thnks......
|
|
|
|
|
|
|
Hi,
How to align the image to center when using e.Graphics.DrawImage
eg:
e.Graphics.DrawImage(image, new Point(150, 0));
i need to display the image in the center of position x ie 150
Thankyou
YPKI
|
|
|
|
|
How does this relate to ASP.NET ?
You do what you're talking about by using maths to calculate the point based on the two image sizes.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hello,
I want to insert only time into SQL. I have datetime field in database & also have taken datetime picker (ew) on the page.
How it can be done?
Please help me..
Thanx..
|
|
|
|
|
I'm not sure if there's a time field in SQL. If there's not, just set the date to always be the same, and ignore it and only use the time portion.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Sir,
I used the timepicker from EW & have written the statement as
objData.AddParameter("InTime", tpInTime.SelectedTime);
Here, tpInTime.SelectedTime has datetime as return value which is same in db.
Even its not fare.
Thanx Sir.
|
|
|
|
|
deepseeindeepsy wrote: I want to insert only time into SQL
You don't have to do that. Use datetime only and when you read, use the functions provided by SQL server to get only time.
Best wishes,
Navaneeth
|
|
|
|
|
Sir,
Which functions to use ? If I inserted it using nvarchar field in db, then its OK & done bt Will it affect when working on report making?
Thanx..
|
|
|
|
|
deepseeindeepsy wrote: If I inserted it using nvarchar field in db
That would be utterly retarded, because you'd lose the ability to work with it as a time.
This was my first google hit[^]. Was that so hard ? You can return just the time portion as a string from a datetime in the database, which is what was being suggested, use the functions in SQL Server to get back just the time, even if you store a datetime.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
In SQL Server 2008, there is Time Data Type so that you can insert only time value there.
|
|
|
|
|
hi!
i'm working on google maps api. i send hundreds of Geocode requests to google map api therefore its take to much time to load the page. Is there any way to show header and left menu while waiting for google maps. please share some ideas with code help... thanks in advance
|
|
|
|
|
Show the map on a iframe[^]. So other parts of your page will load while you wait for map to load.
Best wishes,
Navaneeth
|
|
|
|
|
iframe needs src="" to a page, but i have just one div where i'm showing the map.. how can i use iframe with my map?
|
|
|
|
|
putting it in a div and then hiding the div with javascript will work just fine.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi to All,
Could anyone please help me finding a proper control, or may be an plugin to display a sets of images with some description with it....I have 100 of images like that...the user should be able to see say 1 15-20 at a time...first he sud see without details...on some user interection on the page user can see the details of it...My main intension is to make UI very attractive too
I am new to asp.net and ajax...please help me out..
thanks in advance
-----------------------------
I am a beginner
|
|
|
|
|
hrishiS wrote: I am new to asp.net and ajax...please help me out..
If you're new, why are you working on a project like this ? Why are you using AJAX if you're new to ASP.NET ?
Is this for work, for for yourself ? If there's nothing in the ASP.NET AJAX library that you can use, you'd have to search the web, I assume writing something is not an option.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|