User Profile

Collapse

Profile Sidebar

Collapse
ZiadElmalki
ZiadElmalki
Last Activity: Nov 16 '12, 07:49 AM
Joined: Sep 22 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ZiadElmalki
    replied to Casting oledb to Sqlclient objects
    in .NET
    That is not possible because neither the OleDbConnection or SqlConnection derive from each other. In the System.Data namespace there are some basic classes and interface for ADO.NET. For connection could use IDbConnection interface as abstraction
    See more | Go to post

    Leave a comment:


  • ZiadElmalki
    replied to Linq to SQL
    in .NET
    linq to sql is kinda deprecated. It requires you make some strongly typed classes and decorate them with attributes or use sqlmetal or something to gen up. That will not work for you since you do not know the schema until runtime.

    The replacement entity framework also doesnt handle untyped data well.
    See more | Go to post

    Leave a comment:


  • is the type in the db ntext or nvarchar? Can we see the code you are using to save
    See more | Go to post

    Leave a comment:


  • HttpResponseMes sage represents the http response that is returned to the client. You cannot just return bool it has to be a valid http message. Is the bool just to indicate success or failure? You could set the status code on the HttpResponseMes sage to like 200 for success and 500 or something for failure.

    If you need to return something more complex to the client you can set the content of the httpresponsemes sage to something, like...
    See more | Go to post

    Leave a comment:


  • ZiadElmalki
    replied to NNTP reply to a post
    i wrote an nntp proxy like 5 years back. The references is supposed to be the message id of the message you are responding to if I remember correctly. Is this the correct message-id k2cg81$2ke$1@an tares.drimm.u-bordeaux1.fr?
    See more | Go to post

    Leave a comment:


  • ZiadElmalki
    replied to How to open video ocx file?
    Your question is not clear. If you have an OCX and want to use in C# you can create a RCW. After you have registered with regsvr32 you can just do add reference from VS and it will create for you or there is a command line app called tlbimp
    See more | Go to post

    Leave a comment:


  • ZiadElmalki
    replied to Ado.net connection problem
    It doesnt look like you are trying to connect to oracle. It looks like you are trying to use the OLE provider for ADSI. Can you please provide more info including code
    See more | Go to post

    Leave a comment:


  • ZiadElmalki
    replied to Problem with media player
    in .NET
    I a on a Windows machine so obviously yes. Sorry Frinavale it seems like I offended you. I was not trying to be rude.

    Can you please provide a working example though or a link to some documentation or blog confirming this. Object tags are used to plugins as far as I know. If there is another way I would love to learn. Please provide the information.
    See more | Go to post

    Leave a comment:


  • ZiadElmalki
    replied to How to make an application look busy?
    in .NET
    Why don't you just disable the controls while the application is "busy"? There is an enabled property on the base control class. Just set this to false and then when you are done set it back to true.
    See more | Go to post

    Leave a comment:


  • This means there was an unhandled exception in your application that caused it to crash. From the error we can see where the exception occured.

    EventType clr20r3,
    P1 (Service name).exe,
    P2 1.0.0.0, --app version
    P3 4c8ea600, --app time stamp
    P4 system.servicep rocess, -- module
    P5 2.0.0.0, -- Assmple version
    P6 4333aef4, -- Assembly timestamp
    P7 3a, -- method def. metadata token.
    ...
    See more | Go to post
    Last edited by ZiadElmalki; Sep 24 '10, 05:05 AM. Reason: added code blocks

    Leave a comment:


  • ZiadElmalki
    replied to Configuration Error in asp.net
    I am guessing it is already defined in the machine.config?
    See more | Go to post

    Leave a comment:


  • What browsers don't support GIF? I think IE6 just has problems with transparencies in gifs.

    There are some legal reasons not to use GIF. Mainly some compression algorithm in GIF is proprietary. Because of that PNG was created. For simple pictures you should prefer PNG or GIF.

    Like Frinny said these is probably some kind of browser specific issue and you need to create css that targets whatever browsers seperately or...
    See more | Go to post
    Last edited by ZiadElmalki; Sep 23 '10, 11:16 PM. Reason: removed extra link.

    Leave a comment:


  • This is an asmx webservice. You should be posting an xml soap message.

    Why are you not using the automatically generated proxy?

    Use wsdl.exe http://localhost/myservice.asmx?wsdl

    This will create a code file that you can use to talk to the webservice. Wsdl exe comes with visual studio and the .net sdks.
    See more | Go to post

    Leave a comment:


  • Big companies that have public web api's often implement some kind of delegated authorization. This is where someone clicks on link to your page, they get redirected facebook's or whoever page to type in their credentials, and get redirected back to where they came from with some type of token that can be used to call whatever apis.

    All yahoo sites support OAuth I believe, same with google. Microsoft has something called WLDA (windows...
    See more | Go to post

    Leave a comment:


  • Excel 2003 introduced XML file format for excel files called SpreadSheetML. You can create an XSLT that generates the Excel file without word being installed.

    Bing/Google Excel and XSLT and you will find tons of examples on the internet. You do the xslt on the server and give the user the file.

    Another option is using the OLEDB jet provider on the server. You can read and write to excel files in SQLish way with...
    See more | Go to post

    Leave a comment:


  • ZiadElmalki
    replied to Linkbutton is not doing Postback
    Does the event handler work when the page gets posted back eventually. Looks like the AsyncPostBackTr igger both say linkbutton1
    See more | Go to post

    Leave a comment:


  • ZiadElmalki
    replied to Problem with media player
    in .NET
    Again can you point me to an example.

    The only thing I can find is this they use object element inside an iframe.
    http://nunzioweb.com/misc/movies/ifr...ed_example.htm


    I am pretty sure it will just open the file. It will not play in the browser.

    I made a little test and tried in firefox and IE and it doesnt work.

    <html>
    <body>
    <IFRAME src="http://nunzioweb.com/misc/wacky/Dogsmoke.mpg"...
    See more | Go to post

    Leave a comment:


  • You can use the OnClientClick property. Return false to cancel the submit.

    <asp:Button
    runat="server"
    Text="Ok"
    OnClientClick=" javascript:retu rn confirm('Do you want to submit?');" />...
    See more | Go to post

    Leave a comment:


  • ZiadElmalki
    replied to Problem with media player
    in .NET
    Can you provide an example of playing a video with just an iframe? As far as I know you need some kind of pluggin to play the video in a browser. Flash, windows media player activex control, silverlight, etc. An Iframe is just used to nest another documents with different uris in a single window.

    If working in other OS besides windows is important than probably a silverlight or flash video player would be what you need.
    ...
    See more | Go to post

    Leave a comment:


  • ZiadElmalki
    replied to Problem with media player
    in .NET
    The browser cannot just determine how to play it. In HTL5 there is the new video element. Otherwise you need to use something to play the video in a browser.
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...