Click here to Skip to main content
15,892,298 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Display user friendly records in datagrid Pin
Tarik Guney10-Jun-07 1:11
Tarik Guney10-Jun-07 1:11 
QuestionVersion Problem Pin
iamdking9-Jun-07 1:45
iamdking9-Jun-07 1:45 
AnswerRe: Version Problem Pin
Not Active9-Jun-07 2:27
mentorNot Active9-Jun-07 2:27 
Questionhow to check file size in java script Pin
kuwl_mark9-Jun-07 0:39
kuwl_mark9-Jun-07 0:39 
AnswerRe: how to check file size in java script Pin
Christian Graus9-Jun-07 1:23
protectorChristian Graus9-Jun-07 1:23 
GeneralRe: how to check file size in java script Pin
kuwl_mark9-Jun-07 3:17
kuwl_mark9-Jun-07 3:17 
AnswerRe: how to check file size in java script Pin
Guffa9-Jun-07 22:49
Guffa9-Jun-07 22:49 
AnswerRe: how to check file size in java script Pin
Tarik Guney10-Jun-07 1:26
Tarik Guney10-Jun-07 1:26 
I hope it helps : i found something in some search engines and i suggest you to search before open an message to forums Smile | :) because you can find answers more quickly..

check them out : http://www.jguru.com/faq/view.jsp?EID=330134[^]





function getStats(fName){

nullIMG.src = fName;
fullName = fName;
shortName = fullName.match(/[^\/\\]+$/);
splitName = fullName.split(".");
fileType = splitName[1];
fileType = fileType.toLowerCase();
if (fileType == 'gif' || fileType == 'jpg' || fileType == 'jpeg')
{
checkIt = fileSize(fullName);
if (parseInt(checkIt) > 30000){alert('Max File Size is 30Kb');Form1.reset()}
else {
Form1.dispSize.value = checkIt;
Form1.dispName.value = shortName;
Form1.dispW.value = nullIMG.width;
Form1.dispH.value = nullIMG.height;
}
}
else {
alert("You must select an image file!");
Form1.reset();
}
}

divStr = "<Div Style='Position:Absolute;Top:-2000'><IMG Src=Null ID=nullIMG></Div>"
document.write(divStr)




Function fileSize(fileSpec)
Dim isSize
Set fso = CreateObject("Scripting.FileSystemObject")
Set contentFile = fso.GetFile(fileSpec)
isSize = contentFile.Size
fileSize = isSize
Set contentFile = Nothing
Set fso = Nothing
End Function





Choose an image:

File Name:

File Size:

Width:

Height:







AnswerRe: how to check file size in java script Pin
Tarik Guney10-Jun-07 1:27
Tarik Guney10-Jun-07 1:27 
QuestionHow to consume the web service if only WSDL file is exposed. Pin
AmarjeetSinghMatharu8-Jun-07 23:44
AmarjeetSinghMatharu8-Jun-07 23:44 
QuestionGridView with DropDownList ? Pin
Vertyg08-Jun-07 23:15
Vertyg08-Jun-07 23:15 
AnswerRe: GridView with DropDownList ? Pin
Tarik Guney10-Jun-07 1:15
Tarik Guney10-Jun-07 1:15 
QuestionInstance of page loaded? Pin
deepaks38-Jun-07 21:11
deepaks38-Jun-07 21:11 
AnswerRe: Instance of page loaded? Pin
Christian Graus9-Jun-07 0:03
protectorChristian Graus9-Jun-07 0:03 
QuestionSystem.Request .PageRequestManagerServerException Pin
yogita charhate8-Jun-07 19:53
yogita charhate8-Jun-07 19:53 
Questionaspx pages are slow Pin
anujose8-Jun-07 19:18
anujose8-Jun-07 19:18 
AnswerRe: aspx pages are slow Pin
Expert Coming8-Jun-07 22:15
Expert Coming8-Jun-07 22:15 
QuestionHow to convert a single http page into https using SSL in IIS? Pin
vijay_838-Jun-07 19:08
vijay_838-Jun-07 19:08 
AnswerRe: How to convert a single http page into https using SSL in IIS? Pin
Expert Coming8-Jun-07 22:24
Expert Coming8-Jun-07 22:24 
GeneralRe: How to convert a single http page into https using SSL in IIS? Pin
vijay_838-Jun-07 23:05
vijay_838-Jun-07 23:05 
GeneralRe: How to convert a single http page into https using SSL in IIS? Pin
Expert Coming8-Jun-07 23:57
Expert Coming8-Jun-07 23:57 
GeneralRe: How to convert a single http page into https using SSL in IIS? Pin
vijay_839-Jun-07 1:33
vijay_839-Jun-07 1:33 
GeneralRe: How to convert a single http page into https using SSL in IIS? Pin
Expert Coming9-Jun-07 10:57
Expert Coming9-Jun-07 10:57 
QuestionError while uploading Pin
Prakash_Mishra8-Jun-07 18:54
Prakash_Mishra8-Jun-07 18:54 
AnswerRe: Error while uploading Pin
Sathesh Sakthivel8-Jun-07 18:59
Sathesh Sakthivel8-Jun-07 18:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.