Software Development Network Logo
  • VS Team System
  • SQL Server
  • IE Development
  • Visual Studio
  • Microsoft ISV
  • Game Technologies
  • Visual Basic
  • .NET Development
  • Smart Devicet
  • Visual FoxPro
  • SharePoint Products
  • Visual C++
  • Visual C#
  • Audio and Video
  • Windows Vista

Software Development Network >> AamirHabib's Q&A profile

AamirHabib

Member List

aliasx
Mike Martin24365
Taylor Brown
Tom Janssen
Artmark
XNA Rockstar
FuNeedsHelp
GRK
pOopOo
Steven Twitchell - MSFT
mike11d11
LneWlf
djsavlon
Goran _
Allengp
Wilton Kwok
mangu
Batikit
Pockey
gabriel_333
Only Title

AamirHabib's Q&A profile

  • Visual Studio 2008 (Pre-release) The protocol 'https' is not supported

    I have written a sample WCF application playing with basicHttpBinding and Username and with TransportWithMessageCredential. heres the web.config services> <!-- Before deployment, you should remove the returnFaults behavior configuration to avoid disclosing information in exception messages --> <service name="MyService" behaviorConfiguration="returnFaults"> <endpoint address="https://localhost:2265/Host" contract="IMyService" bindingConfiguration="Binding1" binding="basicHttpBinding"/> </service> </services> <bindings> <basicHttpBinding> <binding name="Binding1" r ...Show All

  • SQL Server Nested XML with XML Explicit

    I am using SQL Server 2005. I want to assign the result of a SELECT FOR XML EXPLICIT statement having an order by clause to a XML Variable such as DECLARE @outputXML as XML SET @outputXML = ( SELECT 1 as TAG , NULL as PARENT , BatchID as [Batch!1!id] , NULL as [Sequence!2!id] ,NULL as [Step!3!id] , NULL as [Device!4!DeviceName] FROM BatchDeviceMapping WHERE BatchID = 32 UNION     SELECT 2 as Tag , 1 as Parent , BatchID , SequenceID , NULL,NULL FROM BatchDeviceMapping WHERE batchID = 32 UNION     SELECT 3 as Tag , 2 as Parent , BatchID , SequenceID , StepID , NULL FROM BatchDeviceMapping WHERE batchID = 32 UNION   &n ...Show All

  • Visual Studio Tools for Office How to retrieve the title property from a word document(template) in c#

    Hi, I'am trying to get the value of the title property from a word document. I thought it could be done with the following code: Microsoft.Office.Core. DocumentProperties documentProperties = (Microsoft.Office.Core. DocumentProperties ) Globals .ThisDocument.CustomDocumentProperties; foreach (Microsoft.Office.Core. DocumentProperty property in documentProperties) { if (property.Name == "Title" ) ; { //string title = property.Value; } } but this code only gives me the custom properties of the document. Any help would be most appreciated. Joe Thanks, Steve. This code does the job: Microsoft.Office.Core. DocumentProperties documentProperties ...Show All

  • Community Chat Password Stars

    Windows Forms apps make it too easy to create something without writing much (if any) code. For example, to have a user enter a password displaying only asterisks is simply done by changing the textbox property. But isn't it more satisfying to actually program your own code for it, as in this Console application Module Module1 Sub Main() Dim ch, word As String word = "" Console.Write( "Enter your password: " ) Do ch = Console.ReadKey( True ).KeyChar 'get character without display If ch = Chr(8) And word.Length > 0 Then 'backspace to delete Console.CursorLeft = Console.CursorLeft - 1 'move back one column Console.Write( " " ) 'erase last star Co ...Show All

  • Visual Basic Cannot initialize variable with Textbox.Text? Any clues?

    Hello, I have an interesting problem that i have never ran into before. Can you help I basically have am trying to do something simple like this: (txtSerNumber is the name of my textbox) Dim mySerial As String = txtSerNumber.Text mySerial.Trim() Dim firstChar As String = Strings.Left(mySerial, 1) Basically, when i look at the contents of the variables when i step through my program, it does this: When i use the value "pos", it shows up in txtSerNumber.Text, but not mySerial. Whats really weird is that in firstChar, it shows the "p" like its supposed to! When i try the value "postest", it again shows up in txtSerNumber.Text like it was typed in, but in mySerial, i ...Show All

  • SharePoint Products and Technologies How to get authenticated password of sharepoint site user to pass on NetworkCredential() method as parameters

    I am creating a user control page(ascx) using the web services from SharePoint Services/Project Server site. As we know that the user name and password needs to access the sites of them. I used the following code(C#) to access the web services, it will work fine. There is already Windows Authentication in Sharepoint Site. //UserGroupWS is Added Web Service private static UserGroupWS.UserGroup userGroup = new UserGroupWS.UserGroup(); userGroup.Url = " http://DomainName/_vti_bin/UserGroup.asmx "; userGroup.Credentials = new System.Net.NetworkCredential("UserName", "Password", "DomainName"); Note that there are the parameters namded "Password" also in NetworkCredential() method. W ...Show All

  • SQL Server Sql Express and Windows Server 2003 SBS

    I have installed sqlexpress on windows server 2003 sbs. When the server reboots the sql server service manager starts but does not start any services. In the Server pull down box I have the following "server" and "server\sqlexpress" it defaults to server and therefore for services pull down is blank. When I manually change the Server pull down to "server\sqlexpress" then I am able to start the services. Is there a way to have it default to "server\sqlexpress". ...Show All

  • .NET Development Calling Javascript from C#.NET

    Hi, I have an HTML page with contains both Javascript and a .NET control on it. the html is: <html> <head> </head> <body> <SCRIPT LANGUAGE="JavaScript" src="javascript/projectJS.js"> </SCRIPT> <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" WIDTH="100%" HEIGHT="100%" id="project"> <param name="allowScriptAccess" value="always" /> <param name='src' value='index.mxml.swf'> <param name="quality" value="high" /> <param name="b ...Show All

  • Visual Studio Nested SQL For Crystal Report

    Dear All, I am very new to crystal report. My problem is quite simple. First I have a table as branch and another one is employee. So I am doing first a select * from branch. Then based on each branchID I do another sql search called as select * from employee where employee.branchID=branchID.branchID. So how do I go about crystal to create this form of reports.Thus the second query is nested in the first query. I want my report to be formatted in this way Branch 1 Employee 1 Employee 2 Branch 2 Employee 3 Employee 4 Employee 5 Can some one pls help me I am very new to crystal reports. Thanks in advance. Hi, I have removed the "+" and put th ...Show All

  • Visual Studio Tools for Office outlook add-in 2002 vs 2003

    I have built an outlook add-in on my machine (has outlook 2003) and is running fine. But when running the same dll in another machine (has outlook 2002) it fails. Any idea why it does not throw error message. however, it's error message in COM Add-Ins dialog says "Not Loaded. A runtime error occurred during the loading of the COM add-in.". The registry LoadBehaviour value was changed to 2. I am not able to debug as i dont have a debuger on the other machine. ...Show All

  • Internet Explorer Development How to hide "Open, Save & Cancel" Dialog box when opening MS PPT file

    Hi, We are creating LMS. We have requirement that we have to load the PPT file in the content and when user comes to the system can read the content. For that we are launching the PPT file in the IE. At this time we are getting problem that any MS file we try to open is showing us "Open, Save & Cancel" dialog box. Can anyone help on that.....We donot want this dialog. Regards ...Show All

  • Visual Studio Express Editions out of memory exception while loading a tif image

    Hi, Im loading a tif image of size more than 4MB, into the picture box. With the help of following code snippet. FileStream fs = File.OpenRead(imagePath); Image img = Image.FromStream(fs); But while executing the statement Image.fromstream(), Im getting the exception System.Outof memory exception. Any suggestion for this problem.......... And This kind of error may occour when one of the following conditions is true: ? The image file is corrupted. ? The image file is incomplete. ? The program does not have permissions to access the image file. Resolution may be: Make sure that the image file is not corrupte ...Show All

  • .NET Development loading assembly for serialization

    Hello, I have tried in several ways to deserialize a file serialized in another application. I tried to use a custom SerializationBinder to overwrite the assembly name, but this did not work ("cannot find assembly XXX..."), which is strange but is not a question for this forum. I then tried to load the complete assembly beforehand using the Reflection namespace. As this: FileStream stream = new FileStream("test.up", FileMode.Open); AppDomain app = AppDomain.CurrentDomain; System.Reflection.Assembly asm = System.Reflection.Assembly.LoadFile(@"C:\Documents and Settings\rowa\Desktop\Source\EASW\EASW\bin\Debug\96wellShuttleSW.exe"); Type t = asm.GetType("EASW.ParameterFile&qu ...Show All

  • Audio and Video Development NO HDMI link

    hi has someone met this problme when play a disc on toshiba hd xa1 player You need to get the latest firmware update for the Toshiba player; it has troulbe connecting to some TVs such as Samsung DLPs. Just plug an ethernet cable into the back of the player and go to the Setup menu and configure it to get updates (assuming you have a home network and get a DHCP address, etc. this will be trivial). It takes a while for the update to download and then apply to the player. After the update, it should work OK with HDMI. ...Show All

  • Visual Studio Express Editions forum comparisation..

    Hello, I'm sure I'm in the wrong forum with this thread, but that's only because I want some attention of you 'VB' people at the moment. I've been 'studying' the VC++ forum here, and I noticed that the average 'top poster' in that forum posts about 50 posts a month.. In this forum, I see 'top posters' with about 120 posts a month Now I'm not sure about this one, but aren't here some coders who also know some VC++ that could sometimes have a look at the VC++ forum to see if they can't help I'm asking this because I posted a question a couple of days before, and whereas I would have had about 10 reply's in this forum, I don't even have 1 in the VC++ forum.. This could be because it might be a difficult question, but it might ...Show All

©2008 Software Development Network