.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

SP.UI.DialogOptions description needed

Posted By:      Posted Date: October 05, 2010    Points: 0   Category :SharePoint

Is there a description of properties of SP.UI.DialogOptions?

        var options = SP.UI.$create_DialogOptions();
        options.url = url;
        options.height = 600;
        options.width = 900;       

What else other than height, width, url can be set?

There is nothing about it in SDK..

View Complete Post

More Related Resource Links

Response.BinaryWrite help needed


Hi all

Im new to .NET and stuck now, so i hope anyone can help my with my problem.

I have a MS SQL database where i have stored some documents as Binary data. I cant figure out how to retrieve them and show/download them in my browser.

I found some guides online and have try to put something together.


private void Write()
 int id = 0;
 string strID = Request.QueryString["id"];
 int.TryParse(strID, out id);

 var db = new ModelDataContext();
 var doc = db.DocumentDatas.Where(x => x.ID == id).FirstOrDefault();

 byte[] byteArray = File.ReadAllBytes(doc);


How do i fill the byteArray with the data?

Thanks in advance :)


help needed: Ldap User authentication using userDN and password



Is it possible to authenticate a user using userDN and password? If so, then tell me the syntax.So far i have tried to authenticate using username and password from my c# code using directoryentry which takes the parameters like domainname,username and password. But i need to authenticate using Userdn and password.

helped needed: ASP LDAP authentication failed in IE 8


I use the following code to do the user authentication through Active Directory using LDAP.

entry = new DirectoryEntry("LDAP://" + server, user_name, password);
if (!string.IsNullOrEmpty(entry.Name))
EmployeeNetId = entry.Username.Substring(0, 3);

// Retrieve EmployeeId, and Employee Full Name
EmployeeId = -1;

It works for Chrome, Firefox with no problem. But with IE 8, it works sometimes, and failed on some computers. When it failed, I figured that I need to check SSL 2.0 in IE 8 Internet Options.  It's weird because in those computers that IE 8 works, SSL 2.0 is also unchecked.

Am I using some deprecated method? Or How do I specifiy the SSL version options in the LDAP connection?

Help needed in selecting coulmns from 2 tables using entity framework


Hi all,

I have two tabels as mentioned below. I am using entity framework and vs2010.I am not able to write linq query to get data from both the tables. there is one to many relationship(for one category ther can be multiple articles). Please help me out as this is very urgent. Thanks in advance.

1) Article

ArticleID bigint Unchecked
CategoryID int Unchecked
ArticleName varchar(500) Unchecked
ArticleDesc nchar(1024) Unchecked

Is the REST Starter Kit still needed with WCF 4?


The REST Starter Kit was targeted at WCF 3.5. I am wondering if it is still needed with WCF 4?

Open a link in new window from a custom fields description MOSS 2007



I have kept a help link (ex: http://www.msdn.com) under a document library field's description. i want this link to be opened in a new window with out navigating from that page.

any ideas greatly appreciated.




WCF over mobile modem link - performance help needed

I am looking for ways to improve the performance of my WCF communications over a mobile modem. I have a system where the clients are connected to the internet via a mobile (GPRS/3G/HSDPA) connection. This is NOT a windows mobile client, it is a full XP Professional system running .Net4.0. The clients basically use a USB mobile modem (SIM card etc) to get their internet connection. The server is connected directly to the internet via broadband. My WCF interface has 2 main methods, one sends 2 int values from the client to the server and the other sends 3 images (JPGs) to the server. As you can see one is going to take less than a second and the other is going to take maybe 30-60 seconds depending on the images size and connection speed. If we have a good mobile modem connection to the internet then everything works perfectly. The problem I have is a lot of the time I do not have a good connection. The timeout on the WCF binding is set to 120 seconds. This gives the images enough time to get across even if the connection is a bit slow.  The problem comes when the connection stops - this is a network (mobile network) problem, something like the signal drops etc. Communications never recovers. At this point after about 10 seconds of inactivity (no communications) I know that the connection will never recover. At this point the best thing I have found to do it res

SQL Server 2005 Log Shipping and subsequent FULL backups that are needed

Afternoon,   I have a few Log Shipped DBs that are working great.   Currently they are set to fire off every 15 minutes 24/7.   My question is this ... I need to get FULL backups of the source DBs in order to restore them on certain Dev boxes.   If I were to execute the full backup on one of these Log Shipped DBs ... how would it affect the log shipping process?   Is there a special method to accomplish this?   As a side note, what would be some concerns/issues if in being able to create the FULL backups and not interupt log shipping, I were to create the backup using a 3rd party tool like Quest LiteSpeed?   I sure wish we were on Enterprise, then I could create a mirror and then snapshot off it to create my backups BUT ... that is not the case as we stand today.   Thanks

How to Get the Title, Description Property of a WebPage

Hi Guys! I'm doing up a search engine & what i want to happen is to get the title and description from the page as in below:<%@ Page Title="WHSCT - Health Care Management Plans" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="healthcare.aspx.vb" Inherits="mainpage" Description="List of care plans under Gynaecology, Obstetrics, NNICU & Paediatrics" %> And here is the code that gets the meta tags:Public Shared Sub GetFileInfo(ByVal FPath As String, ByVal srchFile As Page) Dim fileInform As New FileInfo(FPath) Dim strBldFile As New StringBuilder() Dim fileSize As Decimal = fileInform.Length \ 1024 srchFile.Size = fileSize GetFilePath(FPath, srchFile) If InStr(1, ClassSite.DynamicFilesTypesToSearch, fileInform.Extension, vbTextCompare) > 0 Then m_page.Trace.Warn("Path", String.Format("{0}/{1}", "", srchFile.Path)) GetDynamicFileContent(srchFile) Else GetStaticFileContent(FPath, srchFile) End If If Not srchFile.Contents.Equals("") Then 'Read in the title of the file 'Path.GetFileName(FPath).Substring(0, Path.GetFileName(FPath).LastIndexOf(".")) s

errorCode=-1073573417 description=No connection manager is specified.

Hi again,It's me once again trying to migrate a dabatabase from SQL 2000 to SQL 2008 x64. During the migration of one of my databases I get the following error:OnError,LISSQLTEST3,SQLServices,LISSQLTEST2_LISSQLTEST3_Transfer Objects Task,{3CF1D4C8-28CB-4B82-B405-A261E0A173BE},{221EA3F0-32E2-412D-BFDE-76AD1D1715A0},16/08/2009 11:53:07,16/08/2009 11:53:07,0,0x,ERROR : errorCode=-1073573417 description=No connection manager is specified. helpFile= helpContext=0 idofInterfaceWithError={C81DFC5A-3B22-4DA3-BD3B-10BF861A7F9C}StackTrace:    at Microsoft.SqlServer.Management.Dts.DtsTransferProvider.ExecuteTransfer()   at Microsoft.SqlServer.Management.Smo.Transfer.TransferData()   at Microsoft.SqlServer.Dts.Tasks.TransferObjectsTask.TransferObjectsTask.TransferDatabasesUsingSMOTransfer()OnError,LISSQLTEST3,SQLServices,CDW_LISSQLTEST2_LISSQLTEST3_15(atashtiot),{E47ED1C2-0D25-48D2-9B4F-14A5DAF96F0A},{221EA3F0-32E2-412D-BFDE-76AD1D1715A0},16/08/2009 11:53:07,16/08/2009 11:53:07,0,0x,ERROR : errorCode=-1073573417 description=No connection manager is specified. helpFile= helpContext=0 idofInterfaceWithError={C81DFC5A-3B22-4DA3-BD3B-10BF861A7F9C}StackTrace:    at Microsoft.SqlServer.Management.Dts.DtsTransferProvider.ExecuteTransfer()   at Microsoft.SqlServer.Management.Smo.Transfer.TransferData()   at Microsoft.SqlServer.Dts.Tasks.TransferObjectsTask.TransferObjectsTask.TransferDatabasesUsi

Remove items from a list literally not working as needed

This is why SharePoint drives me insane.  Everything I have been able to find on the web says I *can* programmatically remove list items from a list, all I have to do is a declining loop.  I have even copied verbatium several code examples found in this forum and on the web and every last one of them gives me a "Collection was modified; enumeration operation may not execute." error in the Event log.  This is a C# Windows Form Application we want to use to remove a common announcement from any announcement list in our entire site (top down).  We can *add* it to every announcement list without issue (seperate code).  Can anyone point out to us the error in our code below? using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using Microsoft.SharePoint; using System.Text; using System.Reflection; using System.IO; using System.Diagnostics; using System.Xml; namespace RemoveAnnouncement { public partial class RAForm : Form { public RAForm() { InitializeComponent(); } private void removeAnnouncment_Click(object sender, EventArgs e) { const string a = "Application"; try { if (tlsURL.Text.ToString() == "http://" || tlsURL.Text.ToString() == &qu

Wanted to know if windows 7 pro is needed to install sharepoint 2010? or it is better to do vmware a

Wanted to know if windows 7 pro is needed to install sharepoint 2010? or it is better to do vmware and then do virtual sharepoint 2010 development environment?

urgent help needed regarding transactional replication2005

urgent help needed regarding transactional replication2005   I did set up transactional replication on sql 2005 and also in article properties have selected to replicate foreign keys,default constraints and indexes. I checked the schema properties at publisher and subscriber and found that on one table a foreign key is not replicated which has an on delete cascade. I am not sure why is not replicating that constraint.The other table has a foreign key which is also not replicated.   I would appreciate all your help. thanks, Satya

Microsoft.SqlServer.Dts.Runtime.DtsRuntimeException: No description found

Hi, I'm getting the following error: Microsoft.SqlServer.Dts.Runtime.DtsRuntimeException: No description found  when I try and add a excel connection manager to a package being generated programmatically.   I'm working with SQL Server 2008 SP1 (64bit) and Microsoft Office 2007 Data Components (32bit) on a Windows Server 2008 R2 (64bit) The code is executed by a WCF service hosted on IIS7 with the app pool running in 32bit mode. Since this is the 4th environment on which the app is being deployed and the only one that throws the error, I don't think it's an actual problem with the code. One thing that could be significant is that the new box I'm trying to deploy my app to is a VMWare virtual machine whereas all the others are physical servers. What could possibly throw this error? It's very non-descript :( Any suggestions and ideas would be greatly appreciated.

Help needed generating filenames

I have a sorted array of files saved in the following format of filenames: XXX XXX_XX XXX_XX_XX I want to insert a new file (with a unique filename) between two given filenames (which could be in any of the 3 formats above). For eg., a new file between 401 and 403 could be inserted with name 402 and a new file between 401_01 and 401_02 could be inserted with name 401_01_01. etc The idea is to conform to the sorted list. Is there a way I could generate filenames for the files to be inserted, given the two filenames between which it needs to be inserted? Please help. PS: would it be helpful to use regex?

Displaying Calendar Description Field In Calendar View

In the default "out of the box" calendar view it only shows the Title of a calendar event. Is there any way to show not only the Title field but also the Description field?

Issues with Web Part Title and Description information

I have created a series of visual web parts for my clients SharePoint 2010 server farm and for each one I have altered the default values for the visual web part title and description, both of which can be found in the visual web part control's .webpart file. Example ... <?xml version="1.0" encoding="utf-8"?> <webParts>   <webPart xmlns="http://schemas.microsoft.com/WebPart/v3">     <metaData>       <type name="ECUserContWebPart.ECUserCont, $SharePoint.Project.AssemblyFullName$" />       <importErrorMessage>$Resources:core,ImportErrorMessage;</importErrorMessage>     </metaData>     <data>       <properties>         <property name="Title" type="string">Employee Centre User Content Web Part</property>         <property name="Description" type="string">Staff Events Calendar - Discussions - Blogs for Employee Centre</property>       </properties>     </data>   </webPart> </webParts> When I deploy this to my local development environment using Visual Studio 20
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