|
Kumar,
Thanks for that information. The office components are installed on the web server but still I cannot access the spell checker remotely. The web application hangs when the spell checker is called.
Any more ideas will be much appreciated
Thanks
Tony
|
|
|
|
|
Hello
Im trying to make a function that will access a label on an aspx file. I think im supposed to use something along the lines
System.Web.UI.WebControls.Label etc
Does anyone know if im on the right track or way off? Any help greatly appreciated!
|
|
|
|
|
livez wrote:
Im trying to make a function that will access a label on an aspx file
From a windows application?
|
|
|
|
|
LongHC wrote:
From a windows application? yeah
looking like this atm
foreach (Control ctrl in currentPage.Controls)<br />
{<br />
foreach (Control c in ctrl.Controls)<br />
{<br />
<br />
if (c.ID == "myLabel")<br />
{<br />
i = ctrl.Controls.IndexOf(c);<br />
j = currentPage.Controls.IndexOf(ctrl);<br />
<br />
((System.Web.UI.WebControls.Label)(currentPage.Controls[j]).Controls[i]).Text = "<script>alert('warning')</script>";<br />
}<br />
}<br />
}
and is working ok. But it looks so clumsy
|
|
|
|
|
|
Vasudevan Deepak Kumar wrote:
Did you try FindControl?
thx for the tip, ill check it out.
|
|
|
|
|
Hi all,
I have a webservice to which a client will send up several attachments using DIME and a WebMethod call, which could reach no more than 20mb. I understand that on the server I will either need to update the machine.config or the web.config to increase the maxRequestLength.
I also have the ability through the client app, to call a WebMethod which attaches files using DIME, and the client can then retrieve them. At the moment I'm having a difficulty replicating this, so I was just curious if there needs to be a maxRequestLength fields modified for the application (myapp.exe.config)? or in some other area?
Thanx
"If you're too careful, your whole life can become a f---in' grind." - Mike McD (Rounders)
|
|
|
|
|
The maxRequestLength parameter has to be set in your webservice.
In your web.config you can add the following line under the system.web tag
<br />
<httpRuntime executionTimeout="90" maxRequestLength="4096" <br />
useFullyQualifiedRedirectUrl="false" minFreeThreads="8" <br />
minLocalRequestFreeThreads="4" appRequestQueueLimit="100" <br />
enableVersionHeader="true"/><br />
maxRequestLength is the maximum size allowed in KB
Hope it helps
|
|
|
|
|
Thank you Asad..
"If you're too careful, your whole life can become a f---in' grind." - Mike McD (Rounders)
|
|
|
|
|
Hi Asad,
Something else i've noticed, is that WSE has its own limitations.
Therefore I had to add the following :
<br />
<microsoft.web.services2><br />
<messaging><br />
<maxRequestLength><br />
262144<br />
</maxRequestLength><br />
</messaging><br />
</microsoft.web.services2><br />
Cheers
Jubjub
"If you're too careful, your whole life can become a f---in' grind." - Mike McD (Rounders)
|
|
|
|
|
Hi all,
I am trying to develop a Wireless Network Monitoring tool. I have seen WRAPI and Rawether, these things doesn't work for me. Because WRAPI needs some of the header files that is for only MSDN subscribers only, and Rawether for .Net, they have given 4 drivers as options to be chosen by User. But none of the driver seem to be present on my system. I am using Windows 2000 professional. I am using 'C' API's as Dll, I have taken some of the OIDs by querying using CreateFile and DeviceIoControl, the IOCTL code which i am using in DeviceIoControl is IOCTL_QUERY_GLOBAL_STATS. This is working very fine for some of the OIDs but when i try to use OID_802_11_STATISTICS,OID_802_11_RTS_THRESHOLD. The DeviceIoControl returns an error 31 ie Device attached is not functioning.
My questions are,
1. Is there a way to make Rawether Work.
2. Why this DeviceIoControl returning an error 31 for certain OIDs.
somebody help me please
With regards,
Mohan
|
|
|
|
|
im wotking on an application of remote desktop sharing. when i get an image of the desktop, it is frist saved at a temporary location. but it is not being transferred on the network. im using sockets. the application works fine on local machine.
|
|
|
|
|
No-one on the world will be able to help you with this amount of information.
It's like going to a doctor and telling him "I'm ill. What can I do?".
What's the problem exactly?
How do you send the image via sockets, for example? What are you doing different when you're on a local machine?
mav
|
|
|
|
|
Hi,
I am writing a C# component to make files associate with .exe and applications.
The first part, with .exe is done by adding "shell\open\command" with the path of the .exe.
But how about with applications?
I want to know what has an application(e.g.winrar, winamp) with installer done to the registry.
What information about the application is need to write a C# component to register a file extension associating with the application?
Thanks
|
|
|
|
|
Run regedit. Open HKEY_CLASSES_ROOT. All those first entries are file extensions, you can see there what info is stored to make it work.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hey all,
I'm sending a large number of JPGs in a sequence over a LAN via a socket. I'm getting the data across the wire no problem. The problem is, all my files are getting broken during transmission, and I don't know how to reassemble them. For them to get broken up is only natural b/c of the underlying network system... So, how can I reassemble my files on the other end of the wire??
|
|
|
|
|
Well... are you using TCP or UDP?
UDP has no connection or flow control. It simply sends data and if the data gets lost, there is no way of getting it back. Packets might even "switch" position during transit.
TCP has builtin functionality to prevent packet loss during network transit. That means, if you sent something over the network with TCP, every byte WILL arrive (in your app) in the same order it was sent - or you get an exception because the connection was lost without proper "FIN"-procedure.
If you ARE using TCP, your software is doing something wrong because with TCP, lost packages can't happen (with the usual exceptions of connection loss and exploding power supplies etc.)
Cheers,
Sebastian
--
Contra vim mortem non est medicamen in hortem.
|
|
|
|
|
Ah.. perhaps my first explanation was poor.
I am using TCP. I am not losing any packets. I just need a way to deliniate between the end of one file and the beginning of another. If memory serves (its been a long time since my networking course..) I need to be using a protocol of some sort?
SO... I guess i'm asking what's the best way to go implementing a protocol in the application layer, or is this even the correct approach??
Thx!
|
|
|
|
|
i need to create a matrix that contain an integer value 1-7, another integer value 1-20, and 24 chars.
How can i struct this matrix?
like this my_matrix[6,19,23], but is it correct?
|
|
|
|
|
|
Sasuko wrote:
like this my_matrix[6,19,23], but is it correct?
No, you want to do this:
my_matrix[8,22,25]
Now you can access items starting at 1, and ending at 7/21/24 and just ignore the items that exist in the zero index of each array.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I have a try/catch block around my entire application ( in my static void main ) which catches all errors and writes them to a log file. Sometimes, this fails, and instead an ugly error/no log file is created. However, I've had some clients send me a log file that is obviously not generated by me, and it seems that some other program is catching my errors and logging them for them. Is there a reason my generic try/catch fails ? Can some other program supercede it ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Can I ask you something that I asked my self many time?,What if an error has been found in the try block and then the control goes to the catch block and for the bad luck another error happened in the catch block (As the try/catch doesn't have a parent try block)?,and :
Christian Graus wrote:
and instead an ugly error/no log file is created
this may be because of this,accourding to no file creation permission.
And also what if this happened in the Finaly block itself ?(This is going to be executed whatever happened).
|
|
|
|
|
Yeah, I discovered this morning that my static file instance can be accessed in my single threaded application in such a way that it is still null, while it's been set to open the file already a moment before ( so I get a cannot open file exception ). I have to work out why this is, but in the meantime, I think a rethrow here has to be the problem. The thing is, no error log is being created at all for my client, and the exception they catch and report is not generated by code within my catch block.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Is it giving him an exception or its somehing wrong in your code?
|
|
|
|