.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

C++ Q&A: Getting a Menu Handle, Declaring GetParam, and Filtering File Names

Posted By:      Posted Date: August 21, 2010    Points: 0   Category :ASP.Net

More Related Resource Links

Where is the document library setting "Unique file names"?

Live can be so simple if only… ;-).   When using DMS functionality unique file names must be possible. The name is an unimportant attribute when using Meta data. So why can I not choose somewhere in the document library settings something like:   ·         Generate unique filenames Or ·         Do not allow overwrite existing filenames   Maybe in the first service pack?   MS? Please, please, please  

SSIS - XML Source to SQL Server Destination. How to handle new tags in xml file?

Hi, I've created a SSIS package, which reads my XML file using XML Source, using SCD(Slowly Changing Dimension) to identify whether to do an Insert/Update and everything's fine so far. But there are chances that my xml file will have new tags added apart from what are already there. So In that case, i'm not able to figure out whether to alter the table to add new column or something like that. Need your suggestion. Thanks in advance Vijay

How to read all function/method names from .cs file


 Hi everyone,

Normally i answer to the peoples questions here but today i am posting a question for a answer :)

I have a .cs file and i want to read all function/method names from it.

This .cs file is not part of my project or solution other wise i would have used reflection or codedom to do so.

The .cs file is a file on a disk to which i can accessing by giving its physical path say "C:\Sample.cs"

Is there any possibility that i can fetch all the function names declared in Sample.cs

Note: I am doing this for one of my requirement to find out dependencies in code

For example If class A is using some function from class B then class A is dependent on class B. this i need to find out and both this class files are simply a files residing on disk not even part of my project. 

User will select a directory first then any one of the .cs file in that directory and will click on button to find dependencies of that .cs file.

The application should traverse all other .cs files in that directory and find out on how many other .cs files the selected file is dependent.

Import file names from a folder


First of all, I only know VB (I know that isn't great but it's all I got).

Second, I have a folder with 200+ pictures.  I want to get the names of each of the pictures to the database. 

Last, would it be easier to import and export the images into the database (I want my webpage to be able to show the images once they are in the database)?



Handle file openig from windows while app is running


Hi everyone,

I have an application that I have associated in Windows with a certain extension type.

I'd like that every time a user is trying to open this kind of file, my application handle the file. Another thing is that my application must not open twice.

So I don't have any idea how these thing are working,  any help will be welcome.

Thanks a lot

Can't find "Recent files" in File menu SQL Management Studio 2008


After installing SSMS 2008 the menu item File->Recent files   disappeared. I tried to add this item via Tools-> Customize. Now I can see it in menu "File" but it still doesn't work. I click on it but there is no result. What should I do to fix this problem. It is very inconvenient to open files with File->Open->File.

how to collect all file names from remote server in c#



I have many images on remote server say http://images.foo.com/222 & i want to access file names of all files that resides in the folder 222 on http://images.foo.com/.

i have tried following code but getting error "virtual path is not valid" :

imageserver = http://images.foo.com/222;
DirectoryInfo di = new DirectoryInfo(imageserver); // line giving exception
FileInfo[] rgFiles = di.GetFiles();
string simagename = "";
if (rgFiles.Count() > 0)
foreach (FileInfo fi in rgFiles)
//collect each filename from here

Please help
thanks in advance

Import List of Worksheet Names from Multiple Sheets Excel File

I am only interested in OPENROWSET/OPENQUERY or xp_cmdshell solutions. Thanks.
Kalman Toth, SQL Server & Business Intelligence Training; SQL 2008 GRAND SLAM

The filtering process could not be initialized. Verify that the file extension is a known type and i


I have medium farm in sharepoint 2007 and sql 2005.

I see errors in the crawl log due to file extension is not known for PPTX .

Where can I add file extension? What is the best way to handle this error?



"Close Solution" not showing on SSMS File menu

I upgraded to SQL Server 2008 R2 on 4 different PCs.  On only one of them, when I open SSMS and click File on the menu, the option to "Close" is available, but the option to "Close Solution" is not.  Further, if I right click on the menu bar and click Customize, under the Commands tab, I click on File under Categories, and again "Close" is available, but "Close Solution" is not.  "Close Solution" is available on the other 3 PCs that I upgraded to R2 on.  I tried using the installation disk and clicked on Repar, but it did not fix the problem.  How can I get "Close Solution" to appear on the File menu?

Remove subsite names from global navigation (top) menu


I'm fairly new to SharePoint 2010 so don't take this as a more difficult question than it probably is.  The way I'm organizing my site is to hide current navigation (left menu) and have only the global navigation (top menu) with drop downs.  The only active links that I am showing are links to lists within my subsites.  I don't want users to be able to click on subsite links that seem to appear automatically in my top navigation.

I understand that I can turn off "show subsites" in Site Settings --> Navigation, but even with these boxes not checked, I still get links to my subsites showing up in the global navigation (top) menu. 

Ideally I just want the drop down menus and their links to to show, not the subsite names which I can't seem to turn off.  Any assistance is appreciated!




Cumulative update file names

I'm looking to install Cumulative Update 4 for SQL 2008 R2 on my dev machine. I've got to the download page but I'm stuck on the file names. I can pick some or all of these files:
 1. 2008R2_RTM_SNAC_CU4_2345451_10_50_1746_x64
 2. 2008R2_RTM_MDS_CU4_2345451_10_50_1746_x64
 3. 2008R2_RTM_SapBI_CU4_2345451_10_50_1746_x64
 4. 2008R2_RTM_RSShrPnt_CU4_2345451_10_50_1746_x64
 5. SQLServer2008R2_RTM_CU4_2345451_10_50_1746_x64
I can guess some of them (I think): SNAC=native client, MDS=Master Data Services. But what are the rest? There's no explanation on the page but presumably it's explained somewhere. Does anyone know where, please?

Dynamic tables using file names



      I am having 28 fixed length files. All are of different data types, lenghts and do have millions of records. I have to load this data into 28 tables, which has to be dynamically created based on the columns of the input files. Can some one suggest me on how to achieve this ?

Thanks a lot.


Ansul G

Export Visio Database Table Names to Excel

If you use the Enterprise Architect edition of Microsoft Visio for data modeling regularly, then there is a good chance that at some point you've wanted to export just the table names into Excel. You might want to do this to map logical ERD entities to physical data model tables, track project status by entity, or track overlap between database versions.

File Splitter in .Net

I love to do utility programs in .Net. And this is one of them. As I was playing with JSplit (a free file splitter program), I wondered if I could do it in .Net. The framework supports file operations like reading files in bytes and creating them. It is indeed easy to do file operations in .Net Basics on File operations

GridView Filtering In ASP.NET

In this tutorial you will learn how to add a filter to a Grid View Control, To modify the query with a parameterized filter, the WHERE Clause, Parameter properties, Parameter Value Editor and To test filtering.

Upload Multiple File using JQuery in asp.net

In this article I have explained how to upload multiple files using file upload control. I have used jQuery plugin for uploading multiple files.

I have also explained how to check for file type, file maximum size limit using jQuery & also using server side validation code.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend