|
thanks for your reply, i do understand it but the problem i have is i am not sure how to host and how to make other people access it, get code to be pasted on their blog etc. Developing i know is no different. Can you please help me how to get started.
Cheers ...
Shafaqat Ali
|
|
|
|
|
What the most of site do is that they just give the DIV with inline CSS to the user.. and they shows those div and css in textarea so that other people can copy it easily...
|
|
|
|
|
i wants to paging if record posted by employee in more then 10 then otion to view next go to next page first page is work fine but the page number don't work so how can paging it with employee number
[code]
<td> <%If page>1 Then %> <a href="userprofile1.asp?opt=<%=R("empno") "& <%=page-1%>&" %>">Previous</a>
<%end if %>
<% If page < Rpage Then %> <a href="userprofile1.asp?opt=<%=R("empno") &<%=page+1%>">Next</a>
<% end if %>
<%if Rpage>2 then
for i=1 to Rpage
response.write "<a href=""userprofile1.asp?opt=<%=R("empno") & page="&i&""">"&i&"</a> "
next
end if
%> </td>
[/code]
Thanks
sanjeev
|
|
|
|
|
Will ASP.Net Ajax work with VB.Net?
|
|
|
|
|
Member 4648491 wrote: Will ASP.Net Ajax work with VB.Net?
Yes.
|
|
|
|
|
Hi,
I have a ASP form that sends an email. My code looks like that :
Set objMail = CreateObject("CDONTS.Newmail") <br />
objMail.To = "jo@jo.net" <br />
objMail.From = "jo@jo.net" <br />
objMail.Subject = "jo.com order" <br />
objMail.Body = string1 + vbCrLf + string2 + vbCrLf + ... <br />
objMail.Send
The code works fine, the email is delivered and all that. The problem is that sometimes, one of the strings in the email body is a bit long, and when it's long, extra vbCrLf are added where I don't want them.
For example, if string1 was "this string is starting to be a bit long", the email would look like this
this string is starting<br />
to be a bit long
when I view it in my email client (after it's been delivered)
So my question is : is there a line length limit when using CDONTS? What is it? Is there a way I can make sure that no line feed / carriage return characters are inserted in my message where I don't want them, no mather how long one string is?
I am using Outlook 2007 as a mail client if that makes a difference.
Thanks for any help on this!
|
|
|
|
|
Message Closed
modified 13-Jul-15 4:05am.
|
|
|
|
|
I am in the process of creating a desktop-style website. I have an image map which has hotspots for all the different icons on my website. When an icon is clicked a div should popup.
Below is my div code from the css:
#about {
border: 1px solid #ccc;
height: 120px;
width: 400px;
overflow: auto;
margin: 1em 0;
}
Here is my image map code:
<img src="map/map.png" alt="Desktop Image map" border="0" usemap="#desktop" />
<map name="desktop" id="desktop"><area shape="rect" coords="20,78,87,152" href="#" alt="Home Icon" />
<area shape="rect" coords="123,77,177,153" href="#" alt="About Icons" />
<area shape="rect" coords="220,81,271,157" href="#">onclick="" target="_self" alt="Work Icon" />
</area></map>
What do I need to put in the onClick section for the about div to pop up on top of the image map, not above or below!
Thanks in advance
Adam
|
|
|
|
|
I'm not sure if the CodeProject parser has mangled your HTML, but there are several syntax errors that will cause you a lot of problems. The first is that your map element is self terminated, but you have another terminating element at the very end (
I don't see anything in this code that would indicate a popup div. Instead you have a popup window, as specified by the target="_self". Full details on popup windows can be found here, while popup divs are.
Finally, nothing to do with your question, but I'd personally reconsider having an image map for your website when a simple text menu would be much better, easier, and more accessible. Sites that emulate desktops always tend to feel awkward.
|
|
|
|
|
I have used ASP.New Ajax Extension in my web project,
In a login section that uses ajax for first time with click on login button, this message Box appears:
---------------------------
Windows Internet Explorer
---------------------------
Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near 'r-width:0px;" />
|<html>
<head>
'.
---------------------------
OK
---------------------------
What is this?
Best wishes
|
|
|
|
|
I have the following code, in order to redirect a browser:
function Redirect(redirectURL, delaySeconds) {<br />
setTimeout("RedirectPage(redirectURL)", delaySeconds * 1000);<br />
<br />
}<br />
<br />
function RedirectPage(redirectURL){<br />
window.location = redirectURL; <br />
}
I've included the the functions in the tag of the page, then made a call to the Redirect Function. The setTimout Line is called as I can see it being called in the fireforx java Script debugger.
However, the function pointed to by the setTimoutLine is never called even after 5 seconds has passed. Anyone know what I'm doing wrong?
I'm just using this in order to have a delay of 5 seconds before a page is redirected.
|
|
|
|
|
You mean, RedirectPage() is never called?
It's strange.. I suggest you to test with very simple things.
function Redirect(redirectURL, delaySeconds) {<br />
setTimeout("RedirectPage('a')", 5000);<br />
}<br />
<br />
function RedirectPage(redirectURL){<br />
alert('This is RedirectPage().');<br />
}
Try this and let us know whether you got alert or not..
gunner_uk2000 wrote: setTimeout("RedirectPage(redirectURL)", delaySeconds * 1000);
This code should be like that too.. setTimeout("RedirectPage(" + redirectURL + ")", delaySeconds * 1000);
|
|
|
|
|
Thats fixed it
Thanks very much for your help.
|
|
|
|
|
hi folks,
actually i hv 2 dropdownlistboxes,based on the firstdropdownlist value,corresponding value will be binded to the second dropdownlist.i have done using javascript and xml.bt the problem is when i posted back to the server, i got the error says invalid callback/postback............ if i addded enableeventvalidation=false means i wont get any error bt not capturing the value.i donot know how to overcome this prob.
plz help me out.
|
|
|
|
|
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..
|
|
|
|