Click here to Skip to main content
15,890,609 members

Comments by Imran Khan Pathan (Top 16 by date)

Imran Khan Pathan 5-Dec-13 1:52am View    
Yes, I have asp.net site, I have import action in the page, let me explain you in detail.

In my website, many companies can create their account and can upload all employee details, so it is a bed thing to insert one by one employee by a single form, rather then we provided a action to import all employee by uploading excel sheet.

Now in other page, suppose, I have question answer page for particular company, so company can create many questions and they can decide which employee should part of that question. so during creation of questions, company needs to select employees, company can select their employee either from the list or by uploading excel sheet again so in case if company choose to upload excel sheet again then we need to check that all employee should already part of that company.
Imran Khan Pathan 23-Sep-13 7:34am View    
Thanks Tadit Dash,

Is there any finding your side?
Imran Khan Pathan 16-Aug-13 5:49am View    
yes, actually my file name is "SampleExcelSheet" with sheet name is "Sample1" and when I copy, My file name will be "Sample1" with sheet "Sample1", but suppose, when you download first time, it will be "sample1" but second time, it will be "Sample1_1" something like that, no matter what will be file name during download, but sheet name should maintain its name
Imran Khan Pathan 28-Jun-13 8:15am View    
It was my mistake, My url like as "page.aspx?methodname" instead of "page.aspx/methodname".
Imran Khan Pathan 28-Jun-13 7:50am View    
JavaScriptSerializer js = new JavaScriptSerializer();
bool isAuthenticate = HttpContext.Current.User.Identity.IsAuthenticated;
bool hasSession = Sessions.LoginID != null; // internally used HttpContext.Current.Session["SessionName"]
string result = js.Serialize(new { isAuthenticate = isAuthenticate, hasSession = hasSession });
return result;