|
|
Hello All,
i made an aspx page and created an html input control with button type
and onclick i entered the following command "javascript:window.print()" and it work fine but the problem is the page is printed missing a part from the right side (the page contain table which is contain all controls)
i resized the table which containe everything but it did not work so can you help me plz ?
Final Fantasy Maniac
|
|
|
|
|
This could be something to do with the margins set up for the page.
On the page you are trying to print go to print setup and try and view the print margin lines to see if any information is outside of these
hope this helps
|
|
|
|
|
thank you .netman
it works fine now
Final Fantasy Maniac
|
|
|
|
|
glad to hear it, what was the problem? just so that we can show other users if they ever have the same problem
|
|
|
|
|
i have a treeview , which contains four root nodes , each node contains it's sub nodes , i want to display each root nodes along with it's sub nodes seperately in datalist. I mean datalist will have four template columns .How should i do it?
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
The obvious way would be to reshape the data from the data source so it represents a table in the format you want, and then bind to it.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I noticed that gridview fires the selectedindexchanged twice
I read that thas the way it works and theres nothing wrong with my code
If i have a sqldatasource that has the selectedvalue of the grid as a parameter
Does this sqldatasource also access the database twice??
Alexei Rodriguez
|
|
|
|
|
Write your own database code, so you have control over stuff like this
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I cant believe how inneficient this controls are
I guess that if one wants an optimal solution, one would have to rewrite the whole framework
Alexei Rodriguez
|
|
|
|
|
Hi Friends,
I am developing an web application which will download the files from a specified FTP folder (source) and copy it to a network shared folder (Destination). The network shared folder is given full rights to a particular user.
The application should log on to the shared folder using this credentials (credentials can be hardcoded) and copy the files from FTP to this location.
Can any of my friends help me out to achieve this...
Thanks & Regards,
S. Ranganathan
|
|
|
|
|
I don't think ASP.NET is the way to do this, you're assuming your browser has permission to wander the network file system, it does not.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
The application is working fine for a destinaation folder with full rights for "EVERYONE" and run from local computer and but the same is not working when deployed in server...
|
|
|
|
|
this is what christian has told you dear
Ashish Sehajpal
|
|
|
|
|
No other way to to accomplish it?
|
|
|
|
|
Black magic, perhaps. Your local machine has those rights, that's why it works. It cannot work on another machine, you need to write a client app for that.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
hi,i want to send an email,containing embedded images.i have written a code for it and that's what i have written--
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.IO;
using System.Net.Mail;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void btnSubmit_Click(object sender, EventArgs e)
{
string fileName = FileUploadReciepent.PostedFile.FileName;
fileName = fileName.Substring(fileName.LastIndexOf('\\') + 1);
string filePath = Server.MapPath(".") + fileName;
FileUploadReciepent.PostedFile.SaveAs(filePath);
ExcelReader reader = new ExcelReader(filePath); //Create an Excel file Reader
reader.setCurrentWorksheet(1); //Set current worksheet as 1
Array al = reader.getRange("A1", "A3"); //Get A1 to A3 from worksheet 1
foreach (object cell in al) //Loop through all the cells
{
TxtTo.Text += cell + ",";
MailMessage message = new MailMessage();
message.From = new MailAddress(txtName.Text);
message.To.Add(TxtReceipent.Text);
message.Subject = txtsubject.Text;
message.IsBodyHtml = true;
message.Body = Literal1.Text;
LinkedResource image = new LinkedResource("C:\\My Documents\\My Pictures\\anything.jpg");
image.ContentId = "anything";
//add the LinkedResource to the appropriate view
//htmlView.LinkedResources.Add(image);
SmtpClient client = new SmtpClient("smtp.xxx.com");
client.Host = "xxx.xxx.xxx.xxx";
client.Send(message);
}
}
protected void BtnUpload_Click(object sender, EventArgs e)
{
TextReader a = new StreamReader(FileUploadContent.FileContent);
Literal1.Text = a.ReadToEnd();
}
}
FileUploadReciepent-file upload control that gets all the email ida from my excel sheet.
fileUploadContent-uploads the html content,with embedded image from my system.
I have searched all over the internet,but couldnt find any solution.hope u'll help me finding One!!!!!!
this code works fine for outlook.but in gmail or yahoo,i cant c the picture.please help me where i am wrong.???
can u tell me the code please...its kind of important for my project
|
|
|
|
|
Varun123 wrote: LinkedResource image = new LinkedResource("C:\\My Documents\\My Pictures\\anything.jpg");
You need to do some serious study, you are missing some very basic things. Outlook can access your file system. Can the person on the other end who gets this email, even if they have outlook, access your local file system ? Didn't I tell you earlier today - the image needs to be hosted on the web.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
i know that..but its also true that while sending embedded mails thru outlook also,the person on other system is able to view that image.how is that possible.???????i need to know only this thing...
|
|
|
|
|
hai, how do execute the textbox script value at dynamically in .net with c#
.if know the answer replay to me....
|
|
|
|
|
This question has nothing to do with ASP.NET. you posted in the right forum, don't post here, too
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Does anyone know how to prevent the page from going to the beggining after a selection is made on the rating control?
Its kind of weird, really weird
It also happens on the official site of the ajaxtoolkit samples
Thanks in advance
Alexei Rodriguez
|
|
|
|
|
How to authenticate the user name and password in real time not using Login controls given in VS 2005?
and how to assign roles dynamically(i am using forms authentication)?In real time do we use Login controls given by VS 2005 or do we need to create DB for login and retrieve values from DB and compare the login values with DB?
Thanks
|
|
|
|
|
dotnetprogrammer1984 wrote: How to authenticate the user name and password in real time not using Login controls given in VS 2005?
By writing code that checks them against your own membership system, probably a database. That seems obvious to me, is this really what you meant to ask ?
dotnetprogrammer1984 wrote: how to assign roles dynamically
Depends, how do you want to assign them ? I mean, you have control over your role system, on what basis do you want to assign them dynamically ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi there
I saw in directories that they display a category and its subs in links like
* Agriculture (258)
Agriculture & By-product Agents , Animal Fodders , Beans , Dried Fruits , .....
* Apparel (85)
Accessories , Athletic Wear , Children Garment , Footwear , Leisure Wear , .....
and all is links
how could i do this in asp.net 2.0 using VS 2005
Could any one help me please ?
|
|
|
|