|
I have a solution containing about 5 projects. One of these is "CommonClass" witch contains a class User with a public property ReportName. In my web site i check this property on an user object (if (usr.ReportName) ...) Intellisens works on the property, and when i right click and "go to definition" i go to the correct file and definiton. However when i build i get the following error:
'Project.CommonClass.User' does not contain a definition for 'ReportName'
How can i fix this error?
Thanks
modified on Thursday, April 9, 2009 1:45 AM
|
|
|
|
|
nilam2477 wrote: 'Project.CommonClass.User' does not contain a definition for 'ReportName'
In which project are you getting the error? or in every project ?
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
In one project Web Site project where i'm calling the ReportName property
|
|
|
|
|
All,
<pre>
<li id="img2">
<a class="current">
<img src="Images/about_pic.jpg" id="MapHead" alt="Around the world"
/>
</a>
</li></pre>
As shown in the code snippet above, I'm trying to populate a list item (Li) which is part of an Unordered list (UL). As you can see the image I'm trying to display underneath the first couple of items which happens to be hyperlink does not fill the entire space (i.e the class current that is applied to the anchor tag sort of create a border within which the image needs to be displayed, the problem is that in its original resolution (i can't simply change the width adn height of the image as it distorts the resolution) the image does not appear to fill the entire space that is it is sort of in the center of that border created using the class = current as shown above.
The question is this, is there any attribute that I can apply to the image either inline or using a class in a css which will enable it to fill the entire area created by the border.
Thanks
Tina
|
|
|
|
|
Does anybody know of a good chat application written in ASP.NET
modified on Wednesday, April 8, 2009 10:11 PM
|
|
|
|
|
...at all levels
[edit] the original question was "Does anybody know of a good chat application" [/edit]
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
modified on Thursday, April 9, 2009 12:57 AM
|
|
|
|
|
i m not understanding...what is wrong in this question...
|
|
|
|
|
I see, the OP modified the post.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
ha ha ha
|
|
|
|
|
I don't think ASP.NET is the right was to write a chat app, personally, although google chat is OK, MSN is much better for a variety of reasons, most of which have to do with it not being a web app.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
there are more chat applications available in google...
and.. if u want u can create your own chat control..with application variable...
i m using my own chat application in my asp.net application.
http://cutesoft.net/asp.net+chat/Default.aspx
this is one version...from CUTE soft
Regards
Rajeesh MP
|
|
|
|
|
Hi Rajesh, while posting in forum please make sure to whom you are replying. In this thread you have replied to CG message, but I believe you should reply it to the original tread rather than CG. Your post may help to the 'dotnetmember', but not CG . So this is my suggestion to you, that while posting make sure you are replying to the right post.
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
thank you Abhijith..
now i checked yesterday posts....i did same like this for u also...sorry
Regards
Rajeesh MP
|
|
|
|
|
|
(I'm from germany but I try my best speaking english)
Hello everybody,
We are currently developing a webpage where people can upload pictures. Therefor we created an asp.net webservice to be able to upload pictures from various clients and operating systems via soap. This webservice has an "upload(byte[] b)" method. I'm currently working on a C# client. When uploading small files with a size of about 5kb, everything works perfect, but when I try to upload pictures in full size (which is 800x600 at about 40kb) upload sometimes fails due to timeout, although I set the time to 60 seconds, which is definitly enough. The maxRequestLength and requestLengthDiskThreshold are big enough. I wonder if there's another limitation which I have to edit (web.config, IIS, firewall) or if the problem is something different.
The webservice runs on win 2003 server and the client on win xp
Thanks in advance
|
|
|
|
|
circle-driver wrote: although I set the time to 60 seconds,
Where did you set your timeout?
Look Here[^] and here[^] ( see the timeouts section )
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
<pre><system.web>
<httpruntime executiontimeout="12136" maxrequestlength="12204" requestlengthdiskthreshold="12512" /></system.web></pre>
if u r increasing this values in web config....your session will not timeout
Regards
Rajeesh MP
modified on Thursday, April 9, 2009 1:05 AM
|
|
|
|
|
How do you know it does not time out? I don't know how the request is handled inside of the framework, but when we were making a java client and writing the soap-handler-class on our own with sockets and streams, the requests timed out, because we did some miscalculation on "Content-Length" and the Server waited for more, thus a bigger waiting-time wouldn't help.
Nevertheless I will give it a try and use extreme large values to make sure it doesn't help (No offence!).
|
|
|
|
|
Client:
UploadService.Service myService = new UploadService.Service();
myService.Timeout = 60000; Webservice(web.config):
<httpRuntime maxRequestLength="2048" executionTimeout="120" requestLengthDiskThreshold="tried different numbers" /> Since some pictures upload within a few seconds and others timeout after 60 seconds although they only have a slightly different size I guess there has to be another reason.
To make sure I give you all information you might need, here's how I created the proxy class in case it's important.
Wsdl /language:cs /protocol:soap /namespace:UploadService /out:UploadService.cs http:
|
|
|
|
|
maxRequestLength=".........." executionTimeout="....."
you give a big number
|
|
|
|
|
Meanwhile I found the problem and fixed it. Since I'm sitting on an ubuntu computer and use VirtualBox to emulate Windows for .net development the problem where the network settings of the virtual machine.
Thanks for your help.
|
|
|
|
|
cool
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
I have new interesting and weird information for you. Most of the bytes uploaded reach the Server and when the request times out or if I kill the client after some seconds (no difference) the bytes get written into the file and the picture looks like crap in the lower part. I tried it three times with the same pic which has 113919 bytes. On server side I once counted 113094 and twice 113318 bytes. For some reason those last bytes don't reach the server. I now hope wsdl.exe gave me a corrupt file, and I will create a new one. Since I don't really believe in that, more suggestions are welcome.
Edit:
I tried not using wsdl.exe and create a web reference in visual studio instead. Same problem like before.
Edit2:
I guess we are making process . Well, not really. After I found the following blog entry while searching the web for "asp.net webservice packet loss" I really thought that's it. But after I finished reading, I realized that there's no solution given at all. I started wireshark and I found these "tcp/ip retransmissions" as well, but still I have no clue what that's all about. By the way, I meanwhile moved to another server (new provider, more ram and cpu, fresh install) and nothing changed.
modified on Thursday, April 9, 2009 6:41 PM
|
|
|
|
|
Hello, I'm relatively new to c# and even newer to asp.net and ado.net.
I'm trying to improve my skills in the asp.net and ado.net areas.
I'm working on an a sample app where I want to display items in a web page based on what the user has selected from a drop-down list.
A couple of questions I have while on this learning path:
1 -Are all database queries and "presentation" done within the .aspx files, or are some done in the .cs files?
Thanks in advance.
---------
Jeff
|
|
|
|
|
Good question. In fact, your database queries SHOULD come from a seperate dll which encapsulates DB code. Microsoft have added ways to do database stuff in the ASPX, but no-one uses them except hobbyists and people who don't know/don't care about writing good code. You should run from any control that has you typing SQL into your aspx. You should try to wrap your database code into a seperate layer. Ideally, your database layer would not return database objects but take and return lists of classes in your project.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|