|
|
|
Hello friends,
I am a asp.net c# programmer .I need your help and suggestions..in my project there is a content management section is there...i got one sample from net but it's not working in the case of images.like it's not uploading images in to server like that..can any body help me to solve this issue...
I am waiting for your valuable suggestions
Reagards
Alex Malayil
|
|
|
|
|
FCK Editor or TinyMCE are the best free ones I know of.
|
|
|
|
|
|
|
|
|
|
how to send sms in asp.net without any third party sms gateway.How to create own sms gateway.i want a code or any reference website address.i know if its possible to create own sms gateway.please tell me everyone and help me .
Advance thanks
Bala
|
|
|
|
|
how to send sms in asp.net without any third party sms gateway.How to create own sms gateway.i want a code or any reference website address.i know if its possible to create own sms gateway.please tell me everyone and help me .
Advance thanks
|
|
|
|
|
|
Hey All,
i am new to programming and they asked me to create a struct for calculating Area with the length and width.
I have coded but it shows error and please help me to correct the error and i will paste my code here.
<br />
Struct Area<br />
<br />
{<br />
<br />
Public int length;<br />
<br />
Public int width;<br />
<br />
Public int area;<br />
<br />
<br />
<br />
Public Area(int _length, int _width)<br />
<br />
{<br />
<br />
this.length=_length;<br />
<br />
this.width=_width;<br />
<br />
this.area=(_length* _width);<br />
<br />
}<br />
<br />
Public int GetArea()<br />
<br />
{<br />
<br />
return area;<br />
<br />
}<br />
<br />
static void main(int[] args)<br />
<br />
{<br />
<br />
Area area=new Area();<br />
<br />
Console.Writeline(area.GetArea());<br />
<br />
}<br />
<br />
}<br />
<br />
<br />
Chitra
|
|
|
|
|
chitra4sat wrote: Area area=new Area();
You have no public constructor with this signature. Your only constructor takes two arguments, (int _length and int _width). Either add a new constructor with no parameters, or call the existing constuctor with the appropriate arguments;
<br />
Area area=new Area(0, 0);<br />
Rhys
ELYSIUM, n. An imaginary delightful country which the ancients foolishly believed to be inhabited by the spirits of the good. This ridiculous and mischievous fable was swept off the face of the earth by the early Christians -- may their souls be happy in Heaven!
Ambrose Bierce (1842 - 1914)
Behind every argument is someone's ignorance.
Louis D. Brandeis (1856 - 1941)
|
|
|
|
|
Hey guys,
My website contains a messagebox where visitors can (obviously) post messages. The right side of my website contains an area where the latest three messages are shown. Now I want to truncate these messages to a maximum of 150 characters (if the're shorter, leave them alone). This is easy, not a problem, however, the string can contain image tags (smiley's) now when truncating the string, I want to leave those image tags alone and not truncate in the middle of a tag.
I want to remove all html tags (which in fact can only be image tags) then truncate the text to 150 chars as needed and restore the image tags at the original position if needed. Anyone a good approach or idea?
I change the image tokens which mean a smiley into image tokens before I store them in the database, this prevents me from checking for image tokens each time I read the message from the database. If I don't convert the tokens into image tags before storing, the problem still exists because a token may be multiple characters (for example a semicolon and a ) sign for a wink smiley) and I don't want to truncate the string in the middle of a token leaving me with a semicolon only.
|
|
|
|
|
Hi
I have one idea but I am not sure whether it is possible.
You need to break words not letters (or any characters) as smileys will not contain spaces between each character. So you can truncate your messages to a maximum number of words. Assume word can have a maximum 30 characters and truncate 10 words maximum. Hope that will be perfect to display in your web pages.
Rate this message. Thank you. Harini
|
|
|
|
|
In fact your solution gives my an idea which will furfill my needs... I can count till the desired number of characters, let's say 140 and then truncate the string as soon as the next space occures, or if character 140 is in the middle of a html tag, as soon as the tag ends....
Thanks for bringing up the lighbulb above my head
|
|
|
|
|
Yeah that is correct. You are most welcome
Rate this message. Thank you. Harini
|
|
|
|
|
Hello ALL,
I have an ASP page acting as a parent window from where I open a new third Party(lets say yahoo.com) child window, I am able to control the child window position on the screen but wht I also want is that I want the bottom half of the child page to be displayed when it loads in the window..? Any suggestions on this??
Thnks all!
|
|
|
|
|
Erhm, I think I don't understand your question... Do you mean you want to scroll down that window to the bottom while it loads, and then scroll up when loading is done?
|
|
|
|
|
below is an javascript example
var popup = window.open('WebForm2.asp')
popup.document.body.onload = 'self.scrollTo(x,y)';
HC
Best Regards,
Haissam Abdul Malak
My Blog
|
|
|
|
|
This little issue is really freaking me.
I have this vanilla web service that returns a typeed DataSet (DataSet1). The web service works fine in IE and also with a test application.
But when I try to use WebService Studio to test the web service, it gives me the following error:
c:\Documents and Settings\atul.dua\Local Settings\Temp\d3y5tjap.0.cs(523,14) : error CS0260: Missing partial modifier on declaration of type 'DataSet1'; another partial declaration of this type exists
c:\Documents and Settings\atul.dua\Local Settings\Temp\d3y5tjap.0.cs(664,26) : error CS0102: The type 'DataSet1' already contains a definition for 'DataTable1RowChangeEventHandler'
c:\Documents and Settings\atul.dua\Local Settings\Temp\d3y5tjap.0.cs(668,18) : error CS0260: Missing partial modifier on declaration of type 'DataSet1.DataTable1DataTable'; another partial declaration of this type exists
Does any one has any clue whats wrong with web service studio.
NOTE: I am using .NET 2.0 / VS 2005
Atul
|
|
|
|
|
Partial classes allow you do devide classes into multiple files... for example
file1.cs contains
<br />
namespace one.two.three<br />
{<br />
partial class four()
{<br />
public const string a = "a";<br />
}<br />
}<br />
and file2.cs contains
<br />
namespace one.two.three<br />
{<br />
partial class four()
{<br />
public const string b = "b";<br />
}<br />
}<br />
The compiler would think the same of those two files, as if it was a single code file containing
<br />
namespace one.two.three<br />
{<br />
class four()
{<br />
public const string a = "a";<br />
public const string b = "b";<br />
}<br />
}<br />
(not the partial modifier is missing in the class declaration)
Now when you use this feature (which is very usefull and handy by the way) you MUST use the 'partial' modifier in each code file containing the same class... In other words, if either the class declaration in my example above (code file file1.cs and file2.cs) misses the partial modifier, your compiler doesn't understand what you want and gives that message.
|
|
|
|
|
Will anyone help me in building a sample website in Asp.net with c# or VB.net code behind, where the application has to follow the .net layers, a simple web service.. i need that the UI interact with a web servivce and web service interact with business layer, and business layer interat with data layer and database. The database can be simple database with one or two table and a stored procedure in it..We ghave to call only the sp to store and fetch the datas from UI. The main purpose , i want to understand the .net layers concept through this application..
Will anyone plzz guide me in this...
Advance thanks
umashanker
|
|
|
|
|