<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Ok, then you still have to do:<br>
<pre wrap="">Dim featureService as MgFeatureService = siteConnection.CreateService(MgServiceType.FeatureService)
featureService.CreateFeatureSource(resourceIdentifier, sdfParams)</pre>
<br>
In VB.Net, because you cannot call the Mg* classes from JavaScript.<br>
<br>
<pre class="moz-signature" cols="72">Regards, Kenneth Skovhede, GEOGRAF A/S
</pre>
<br>
<br>
Marius_360 skrev:
<blockquote cite="mid:18527742.post@talk.nabble.com" type="cite">
  <pre wrap="">Sorry, I’m using ASP.Net with JavaScript



Kenneth Skovhede, GEOGRAF A/S wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">What do you mean?

There is no MgServiceType declared in JavaScript?
You wrote that you used VB.Net in the original post.

You cannot use any of the Mg* classes from JavaScript because they are 
server side components.

Regards, Kenneth Skovhede, GEOGRAF A/S



Marius_360 skrev:
    </pre>
    <blockquote type="cite">
      <pre wrap="">I am using JavaScript :
var featureService =
siteConnection.CreateService(MgServiceType.FeatureService);

featureService.CreateFeatureSource(resourceIdentifier, sdfParams);



Kenneth Skovhede, GEOGRAF A/S wrote:
  
      </pre>
      <blockquote type="cite">
        <pre wrap="">How do you construct the featureService variable?

You should do something like:

Dim featureService as MgFeatureService  = 
connection.CreateService(MgServiceType.FeatureService)
featureService.CreateFeatureSource(...., ....)


Regards, Kenneth Skovhede, GEOGRAF A/S



Marius_360 skrev:
    
        </pre>
        <blockquote type="cite">
          <pre wrap="">Hi

I need to develop a redlining application for a client using VB.Net and
JavaScript.
I converted the demo code available, but get stuck with the
“featureService.CreateFeatureSource” command, it gives me a “Objects of
type
'OSGeo.MapGuide.MgService' do not have such a member” error

Marius
  
      
          </pre>
        </blockquote>
        <pre wrap="">_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>


    
        </pre>
      </blockquote>
      <pre wrap="">  
      </pre>
    </blockquote>
    <pre wrap="">_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>


    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
</blockquote>
</body>
</html>