|
Well, I think so you should do it with AnctionScript in Flash or Swish !
|
|
|
|
|
I have some code that works fine (brings up the open save cancel dialog to download the file) in the VS2008 IDE.
but when it is running on the server, the window just opens for few seconds then closes and no file download dialog shows.
Response.Charset = "";
Response.ContentType = "Application/x-msexcel"; //also tried Response.ContentType = "application/vnd.xls";
Response.AddHeader("Content-Disposition", "attachment;filename=StockIn_" + CurrentWarehouseS + ".xls");
System.IO.StringWriter stringWrite = new System.IO.StringWriter();
System.Web.UI.HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite);
gvInfo.RenderControl(htmlWrite); //gvInfo is a GridView
Response.Output.Write(stringWrite.ToString()); // Also tried Response.Write(stringWrite.ToString());
Response.End();
I get the same results even on the server itself
|
|
|
|
|
Hello,
I have a master page in my project and in master page i have defined all external links on header for javascript files and css files.
And all .aspx pages (including sub folder pages) are under that single master page.
all these are running Properly for .aspx page located in the root and not working properly for sub folder pages, when i am setting path like:
And Not running Properly for .aspx page located in the root and Working Properly for subfolder pages, when i am setting path like:
<script language="javascript" type="text/javascript" src="../scripts/myScript.js">
And link like src="~/scripts/myScript.js" not working for any one.
Please give me suggestion how can i define external java script path to work properly from all (root / sub folder) files..
I will be very thankful to you...
<div class="ForumSig">Dipak
</div>
|
|
|
|
|
Cross Post - DON'T!!!!!!!!!!!
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Hi all,
i need javascript for taxtbox to
allow only numbers and hyphen.
can any one send me the JS.
Thanks in advance
|
|
|
|
|
Hi, I'm having problems matching up my site's look and feel with Firefox and IE, I've tried setting it up differently via a CSS IF statement but haven't been able to get far in smoothing things out.
I'm not sure If I'm supposed to post the code here or just link the problem, I'm not sure how to explain it myself but you can see it at http://www.jeeney.com if you check both browsers, it looks cut up and chunky in IE.
I would be grateful for any suggestions
Thanks in advance!
PS let me know if I need to paste in the actual CSS i'm using.
|
|
|
|
|
|
|
Sendilkumar.M wrote: Urgent and critical
But not urgent and critical enough to contact MOSS support it seems.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Thank you verymuch
M.Sendilkumar
|
|
|
|
|
Sendilkumar.M wrote: Urgent and critical
Ah, one of the finest indicators for me to ignore your post.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Thank you very much
M.Sendilkumar
|
|
|
|
|
Hey everyone, this is my first post, been trying to find a solution to this problem for couple days now, but no luck so far. I got this to work on a site I worked on a long time ago, but have since forgot how I did it unfortanetly. My problem is I have a top_inc.php which holds the header menu as well as the left side content. The problem is when I include this into my index.php, it causes anything I enter into the html on this page to be pushed below the side left content which is in the top_inc.php. I'm new in this industry and any suggestions are greatly appreciated. Thanks in advance. http://www.hewittmediasolutions.com/sn/index.php for referance.
|
|
|
|
|
Hi dhewitt88 and welcome to CP.
I don't understand your meaning well, can you post your snippet code .
|
|
|
|
|
this is the index.php, I typed in hello just for testing
-------------------------
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Welcome to Stork News!</title>
<?php include ("top_inc.php"); ?>
</head>
<body>
<table align="right" width="841">
<tr><td>hello</td></tr></table>
</body>
</html>
-------------------------
this is the top_inc.php that is for the php include (i took out the mapping to reduce the code length):
-------------------------
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
</head>
<body background="images/pagebckground.jpg" topmargin="5">
<table width="1024" border="0" align="center" cellpadding="0" cellspacing="0">
<tr><td align="center"><img src="images/header_banner.gif" width="1024" height="159" border="0" usemap="#Map" />
</tr>
<tr><td><img src="images/babiesrus.gif" width="182" height="123" border="0" usemap="#Map2" /></tr></td>
<tr><td><img src="images/left_2.gif" width="182" height="122" /></tr></td>
<tr><td><img src="images/left_3.gif" width="182" height="123" /></tr></td>
<tr><td><img src="images/left_4.gif" width="182" height="122" /></tr></td>
<tr><td><img src="images/left_bottom.gif" width="182" height="123" /></tr></td>
</table>
</body>
</html>
|
|
|
|
|
You should write something like this :
Index.php
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Welcome to Stork News!</title>
<?php
include ("top_inc.php" ) ;
?>
</head>
<body>
<table align="right" width="841">
<tr>
<td>hello</td>
</tr>
</table>
</body>
</html>
top_inc.php
<table width="1024" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center"><img src="images/header_banner.gif" width="1024" height="159" border="0" usemap="#Map" />
</tr>
<tr>
<td><img src="images/babiesrus.gif" width="182" height="123" border="0" usemap="#Map2" />
</tr>
</td>
<tr>
<td><img src="images/left_2.gif" width="182" height="122" />
</tr>
</td>
<tr>
<td><img src="images/left_3.gif" width="182" height="123" />
</tr>
</td>
<tr>
<td><img src="images/left_4.gif" width="182" height="122" />
</tr>
</td>
<tr>
<td><img src="images/left_bottom.gif" width="182" height="123" />
</tr>
</td>
</table>
|
|
|
|
|
I changed the files accordingly and uploaded them to the server. I'm still having the problem where the html from the index.php
is showing up below the include file. you can see the problem at http://www.hewittmediasolutions.com/sn/index.php
thanks for the help btw
|
|
|
|
|
I couldn't see your web page. it doesn't show ( why ? )
try this :
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Welcome to Stork News!</title>
</head>
<body>
<?php include ("top_inc.php" ); ?>
<table align="right" width="841">
<tr>
<td>hello</td>
</tr>
</table>
</body>
</html>
|
|
|
|
|
|
Atm you have 2 tables ... one with a width of 1024 and right after a table with 100% width ... so you need to do something like this:
<table width="1024" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" colspan="2"><img src="images/header_banner.gif" width="1024" height="159" border="0" />
</td>
</tr>
<tr>
<td width="182"><img src="images/babiesrus.gif" width="182" height="123" border="0" />
<td rowspan="5"><?php include("that_header_file");?></td>
</tr>
</td>
<tr><td><img src="images/left_2.gif" width="182" height="122" />
</tr>
</td>
<tr><td><img src="images/left_3.gif" width="182" height="123" />
</tr>
</td>
<tr><td><img src="images/left_4.gif" width="182" height="122" />
</tr>
</td>
<tr><td><img src="images/left_bottom.gif" width="182" height="123" />
</tr>
</td>
</table>
</body>
</html>
modified on Saturday, November 8, 2008 9:35 PM
|
|
|
|
|
Hi All,
I am new to asp.I am trying to execute "Select" query in asp that uses "Between" & "And" Clause.But it is giving me error of "Type mismatch" and the query description.
But when i executed the same query given in error description in database it is executing properly and giving results.Why this is happening.
Can any one Help me in this.
Regards,
Lokesh
|
|
|
|
|
Hi friends,
i have one query ,using one of my webmethod i need to send mail.
for this i used this code
StringBuilder mailMessage1 = new StringBuilder(reader1.ReadToEnd());
MailMessage msgMail1 = new MailMessage();
from = "abc@y.com";
msgMail1.From = new MailAddress(from);
msgMail1.To.Add(new MailAddress(toID));//toID coming from database
msgMail1.Priority = MailPriority.High;
msgMail1.Subject = "Service Next:Ticket No" + "" + ticketID;
msgMail1.Body = mailMessage1.ToString();
msgMail1.IsBodyHtml = true;
SmtpClient smtpClient1 = new SmtpClient();
smtpClient1.Host = "172.17.0.16";
smtpClient1.Send(msgMail1);
problem is in my database toID has 2 values
1.mail format(ex:x@y.com)
1.Not Available
if toID=mail format means i can send mails perfectly and i am returning flag from database
if toID=Not Available means i am getting error (ex:email is not in correct format)i am not returning any flag.
if toID=Not Available means i need to send message through webmethod .
how to do this ,if anybody have idea please help me
Regards
RamaDevi.
samrama
|
|
|
|
|
Hai...
How can view the summary field of a previous page in the current crystal report page........
It's very urgent can any one help me for this .........
|
|
|
|
|
|
As a student surely you have come across the concept of research? there are literally thousands of examples available if you look.
Bob
Ashfield Consultants Ltd
|
|
|
|