|
how to import GenericClasses(how to add reference's of generic class).
using GenericClasses; when i am using this then error come
Error:-
The type or namespace name 'GenericClasses' could not be found (are you missing a using directive or an assembly reference?)
Piyush Vardhan Singh
|
|
|
|
|
try this :: using System.Collections.Generic;
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
i want to use generic classes
Piyush Vardhan Singh
|
|
|
|
|
Piyush if want how to use Generic Classes then go to Google or follow below URL. If you further any problem then let me know.
http://msdn2.microsoft.com/en-us/library/6sh2ey19.aspx
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
Hi,
I am using File Upload control to upload files.
Is there any way to find the size of the file before saving it.
Because I want to tell to the end user that 'ur File size exceeded the max limit'.
Thanks
Hari
|
|
|
|
|
FileUpload1.PostedFile.ContentLength ?
|
|
|
|
|
use this :
'flUpload is the name of File Upload control
flUpLoad.PostedFile.ContentLength
it will return the size of posted file in bytes...
Arun Singh
Noida.
|
|
|
|
|
Thanks,
Is there any way to find the same in button's Clientside click event
i.e 'OnClientClick' event
Because to avoid unnecessary postback.
Thanks
Hari
-- modified at 5:00 Friday 2nd November, 2007
|
|
|
|
|
Try this javacsript....
function A()
{
var oas = new ActiveXObject("Scripting.FileSystemObject");
var d = document.a.b.value;
var e = oas.getFile(d);
var f = e.size;
alert(f + " bytes");
}
Arif patel
Bangalore
|
|
|
|
|
Hi patel
I run the above code.
I'm getting javascript error at
'var oas = new ActiveXObject("Scripting.FileSystemObject");'
saying that 'Microsoft JScript runtime error: Automation server can't create object'
What I have to do?
Thanks
Hari
-- modified at 2:42 Monday 5th November, 2007
|
|
|
|
|
I am using C# DLL in ASP.NEt Web Application, I am using the object tag to communicate through DLL
<object id="aDLLt" classid="abc.efg.ijkl.MyDLL" height="4" width="4">
This application runs on many clients but on some clients machine it shows a run time JavaScript Error "Object doesn't support this property or method"
on function calling.
I know this is not better way to use DLL, What is the better way to use DLL's in ASP.NET Application, More this DLL are placed in the root folder of the website rather /BIN folder.
Suggestion and help would be appreciated.
Thanks n Regards
Schabaz
|
|
|
|
|
Schabaz wrote: I am using the object tag to communicate through DLL
What this DLL contains ? I don't think that you need a object tag to communicate. How about adding a reference to this DLL ?
|
|
|
|
|
This DLL contains all our business logic and database communications.
One more thing this application is not built using Visual Studion 2005.
this was built using Dreamweaver, and I am going to convert in Visual Studio 2005.
You are right .. we can use reference but this DLL have separate project(not the part of web application) and I only use its Assembled form in our web application.
I Hope you now understand.
Thanks for your reply
|
|
|
|
|
I want to refresh a page in ASP.Net automatically. What is the command ?
|
|
|
|
|
you have to write a javascript function that automatically refreshes page after sometime.
setTimeout("window.location.reload ()",5000);
Intelligence is measured by common sense not by how many scholarly books you read.
|
|
|
|
|
Hi ...
You can use also this <meta> HTML tag (refreshing for 10 seconds)
<meta http-equiv="refresh" content="10;url=http://www.president.ac.id" />
Replace content=10 with the second that you like.
Regards,
Riza Azmi
Simple thing should be simple, complex thing should be possible
|
|
|
|
|
|
Actually it is refreshing continuously for every 10 seconds. I want to refresh once before i close the page.
|
|
|
|
|
|
on clicking the button i want the iframe text is to be erased how it is possible.
|
|
|
|
|
Do you want to remove Iframe or the page it is displaying?
Intelligence is measured by common sense not by how many scholarly books you read.
|
|
|
|
|
sir i want the page it is displaying should be removed
|
|
|
|
|
Then just change the style property on the iFrame. Try using javascript to set it to:
yourObject.style.display="none";
|
|
|
|
|
How to use trim command in query string. query string is working but it was redirecting only the first word. if we give like hp & co. than it redirecting only hp, so the record was not found in the redirecting page. can u pls help me.
krishna
|
|
|
|
|
krishnavaradharajan wrote: hp & co.
You have to escape & symbol. Use Server.URlEncode() before passing such values. Do Server.URLDecode() when getting it.
|
|
|
|