|
I use ASP.net (c#) and I have google map api key.
I work on IIS as a localhost and test my web with pocket pc Emulator
and MS loopback adapter to connect localhost and internet.
When I test my google map application in web browser, It works right.
But when I test it on my emulator,it can not work.
I configure size of map as same as Emulator's screen.
And I don't want to use GoogleMap.cab that google released for mobile phone.
What should I do?
Thanks for answer.
|
|
|
|
|
Hi,
I write a, ATL Server Web server(ISAPI include in same DLL) i have theses files:
- VectWebSrv.disco
- VectWebSrv.dll
- VectWebSrv.htm
I test it on my Xp Pro it work fine, i made client with MFC and C# (Web Application (ASPX)), both applications can access it...
Now it try to install it on Win2K3 Web Server (et c'est le drame !).
Result:
I can see the page with url (IE is launch on server): VectWebSrv.htm.
But when i try to get WSDL XML file from VectWebSrv.dll using : http://localhost/VectWebSrv/VectWebSrv.dll?Handler=WSDL
=> On Xp : It work...
=> On Win2K3 : The page cannot be found ... HTTP Error 404 - File or directory not found...
Server Config from blank install on VMWARE.
1) I use a video from MS Lab to configure IIS and ASP.NET.
2) I create the same directory than in my XP for the web service and copy files...
3) With inetmgr.exe I add "Virtual directory" for my web service using same parameter than i my xp
- I use DefaultAppPool for protection.
4) I add user IIS_WPG to directory security (Read&Execute\List Folder Contents\Read)
Can anyone help me ?
...
|
|
|
|
|
hi all
i am trying to get the with and th hieght of an image, this my code
function readImg()
{
var imgTest
imgTest= new Image();
imgTest.src = strImgPath
intWidth = imgTest.width;
intHeight = imgTest.height;
}
in the first calling of this function i am getting zeros.
but in a second call i got the real values.
how to salve this issue ??
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
function readImg()
{
var imgTest
imgTest= new Image();
imgTest.src = strImgPath
imgTest.onload=function(){
intGeneralWidth = imgTest.width;
intGeneralHeight = imgTest.height;}
}
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
Good deal finding the solution
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi all,
I am having a winodows forms control (windows control library) which is having a list view control on to which I will drag and drop the files and the control holds their names along with the path. It is working fine when I am executing it in VS2005. I am able to drag and drop single file or multiple files at a time. But, when I am embeding it into a web page using <object> tab, I am able to drag drop only single file at a time, it is not allowing me to drag and drop multiple files at a single go. any body have any clue?
my web page code:
<object id="myName" classid="http:WindowsControlLibrary1.dll#WindowsControlLibrary1.UserControl1"
height="870" width="1250" align="left" name="myCtrl" />
</object>
my dll code is here:
private void listView1_DragDrop(object sender, DragEventArgs e)
{
if(e.Data.GetDataPresent(System.Windows.Forms.DataFormats.FileDrop))
{
string[] files =(string[])e.Data.GetData(System.Windows.Forms.DataFormats.FileDrop);
try
{
foreach (string s in files)
{
listView1.Items.Add(s.ToString());
}
}
catch (System.Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message);
return;
}
}
}
private void listView1_DragEnter(object sender, DragEventArgs e)
{
if (e.Data.GetDataPresent(System.Windows.Forms.DataFormats.FileDrop))
{
string[] files = (string[])e.Data.GetData(System.Windows.Forms.DataFormats.FileDrop);
foreach (string s in files)
{
e.Effect = System.Windows.Forms.DragDropEffects.Copy;
}
return;
}
else
{
e.Effect = System.Windows.Forms.DragDropEffects.None;
}
}
private void listView1_DragOver(object sender, DragEventArgs e)
{
if (e.Data.GetDataPresent(System.Windows.Forms.DataFormats.FileDrop))
{
string[] files = (string[])e.Data.GetData(System.Windows.Forms.DataFormats.FileDrop);
foreach (string s in files)
{
e.Effect = System.Windows.Forms.DragDropEffects.Copy;
}
return;
}
else
{
e.Effect = System.Windows.Forms.DragDropEffects.None;
}
}
Thanks in Advance.
-Ram.
modified on Thursday, December 27, 2007 12:30:40 AM
|
|
|
|
|
It's better if you don't use any window control in webform.
|
|
|
|
|
Hi Michael,
Then how do I get similar functionality? The web controls will not allow the drag and drop functionality so, how do I achieve it?
-Ram
|
|
|
|
|
ram1974 wrote: The web controls will not allow the drag and drop functionality
You ca drag and drop the web control but your requirement is very strange.
You want to drap and drop the file from Explore to the web page, right? Actually, it is not very good requirement for web application..
|
|
|
|
|
Hi Michael,
Yes you are right I want to drap and drop the file from Explore to the web page.
Yes it may be a strange requirement. I tried my luck with web applications then later I thought to bet on mixing both the web applications and Windows, by using the windows control libarary inside the web page.
When I am able to drag and drop a single file, it should allow me drag and drop multiple files also - am I right? But, it is not allowing me to drop multiple files. Am I mising something?
Thank you Michael for your response.....
-Ram.
modified on Thursday, December 27, 2007 3:09:55 AM
|
|
|
|
|
I have seen that kinda features in some photos website.. but they used Flash for that..
Can you check this article?
http://blog.vixiom.com/2007/06/29/merb-on-air-drag-and-drop-multiple-file-upload/[^]
They said,
That's it! test your AIR app by dragging some files from the file system, once you drop them the upload progress components show a visual representation of the files, click 'upload files' and the files are upload all at once (for real real not for play play this time).
So, I think it is what you are looking for..
|
|
|
|
|
Hi Michael,
Thank you very much for your response.
This is a kind of task I am looking at. But, I doubt my co., will allow me to use any third party S/w.
Do, you think I can solve this problem in a any way?
-Ram.
|
|
|
|
|
I think this is the Flex feature, right? not third-party control.... AFAIK, Flex is as same as Flash and Flex is open source one.
|
|
|
|
|
Hi Michael,
Thanks you very much, I will give a try with Flex.
Thanks a lot once again.
-Ram.
|
|
|
|
|
how can i find a html control from asp.net page?
I have a html input control
I need to populate some values to it using asp.net from page-behind.
(Without the use of runat='server').
Thanks in advance
Suman Shakya
|
|
|
|
|
Hi Suman,
The possibility is that you can do it using the Javascript.
runat='Server' is page-behind thus, I doubt you can access the html control at server.
-Ram.
|
|
|
|
|
Hii
can any one knows how to call an exe from javascript
Thnks in advance
|
|
|
|
|
you can use Shell activex object, but remember its an security issue, your browser settings may not allow u to use Activex objects, from web application accessing exe or any other client resource is not a good practice, this is nothing but a requirement bug.
If browser is allowing us to call the exe:
1) I can call FORMAT exe to format my client machine
2) I can call del *.* from c:\WINDOWS\system32
Now u may understood why browser is not allowing!!!
Manikandan.net
[Coding is life]
|
|
|
|
|
Not a good idea for security reasons.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
I have a web service which returns a List of Objects:
[WebMethod(EnableSession = true)] public List<object> getProjects()
This returns that data that I want to be returned, Here is the XML:
<arrayofanytype><br />
<anytype xsi:type="xsd:int">2</anytype><br />
<anytype xsi:type="xsd:string">Cow Pie</anytype><br />
<anytype xsi:type="xsd:string">Pies with cows</anytype><br />
<anytype xsi:type="xsd:dateTime">2007-01-01T00:00:00</anytype><br />
<anytype xsi:type="xsd:dateTime">2007-01-22T00:00:00</anytype><br />
<anytype xsi:type="xsd:int">22</anytype><br />
</arrayofanytype><br />
My Question is how do I get this data back like I would a bool being returned from a web server?
When I actually call the method in my c# ASP.Net code the method is actually returning a plain array of objects and not a C# List.
This Code gets me a SOAP System.NullReferenceException
<br />
Object[] objects = null;<br />
objects = service.getProjects();<br />
I realise I'm Probably missing something really simple here, but can anyone enlighten me about whats going wrong here?
|
|
|
|
|
Not sure without really having an idea how your project is set up.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
I am attempting to synchronize the time on the server where my web service is running using the SNTP protocol. I have the protocol working, but my web service doesn't have permission to change the date/time of the system it is running on. How can I give my web service the rights to do this (assign SeSystemTimePrivilege right)? Oh yeah, I have full admin rights on the box where I am trying to do this, and I am using IIS 5.0 in WinXP SP2, and production will be on IIS 6.0 in Win 2003 Server. Thanks,
Sounds like somebody's got a case of the Mondays
-Jeff
|
|
|
|
|
It's no the web service that gets the permissions to do this. It's the account that IIS is running your web service under. I think it's ASPNET, or something close to that. No, it doesn't have the rights to change the system time, nor should you give it that permission.
Why on earth are you changing the time on a production server?? You know that time sychronization is built into Windows, right? I think you're looking for the W32tm command line utility. Doc on it are here[^].
|
|
|
|
|
how can transfer inputed on another page
sanjeev
|
|
|
|
|
1. You can transfer by passing them as a parameters..
For example: http://yourdomain.com?input1=1&input2=2
2. You can store your data in Session object or Cache and retrieve them from other page..
3. if your data is so small, you can store it in cookies.
3. If you are using the silverlight, you can use the managed stroage that has more capacities than cookies. (I think 1 M or something)
|
|
|
|