|
Point to the XLS and hope that the user has Excel on their machine ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
<a href ="REPORT1.XLS"class = "nav1">REPORT</a>
I USED THIS CODE TO OPEN EXCEL SHEET...
THE ABOVE EXCELL SHEET IS PRESENT IN MY PROJECT ITSELF....
I WANT TO JUST OPEN AND SEE THE EXCEL SHEET WHICH WAS LOCATED IN MY d:
|
|
|
|
|
kulandaivel_mca2007 wrote: I WANT TO JUST OPEN AND SEE THE EXCEL SHEET WHICH WAS LOCATED IN MY d:
Don't shout. If the sheet is on your local drive, how is that a real world situation ? You may be able to link to it in your HTML, but how do you know what excel sheets will be on your users local drives ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
u are right....
i have only the file name i have to open that how can do this...
|
|
|
|
|
protected void abc(object sender, EventArgs e)
{
//LinkButton lk = (LinkButton)sender;
//Response.Redirect("default.aspx");
// Server.Transfer("default.aspx?ArtID=" + lnk.Text);
// GridView gvr = (GridView)sender;
LinkButton lb = new LinkButton();
lb = ((LinkButton)sender);
string strUrl = "~\\aijaz\\" + lb.Text;
Response.Redirect(strUrl);
}
call this on linkbutton onclick="abc"
|
|
|
|
|
u are giving solution for excel file present in my project...
it is working fine....
but my requirement is opening the excel file present D:
|
|
|
|
|
http://www.codeproject.com/KB/aspnet/fileupload.aspx[^]
It covers the following 6 areas-
* How to set up a form for file uploading
* How to receive uploaded files on the server side
* How to save uploaded files to hard drive
* How to save uploaded files in a database
* How to retrieve a file that is stored in a database and return it to a client
* Security considerations running the demo project
|
|
|
|
|
|
So, this has NOTHING to do with ASP.NET ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Yes
I moved the question to C# forum
|
|
|
|
|
How to add seperator to contextmenu in C#.NET
I am using Visual Studio 2008.
|
|
|
|
|
Radhakrishnan G. wrote: How to add seperator to contextmenu in C#.NET
I am using Visual Studio 2008.
Is it anything related with ASP.Net ?
Adding Separator in Context Menu is only about using a '- ' in Menu /Context Menu
|
|
|
|
|
I also have this problem. My research has shown that is is caused by ASP.Net opening two files and copying what's typed in one form into the other automatically. Yet when you attempt to reference a control from one form it states the above error.
My findings revealed that this problem has been around for sometime. It seems like there should be one simple correction to prevent this type of error from ever occurring. But thats just a dream.
I like to think that I understand the major parts of what causes the error. Yet the bigger question still remains ... how do I fix it?
Please help ... Thanks in advance.
|
|
|
|
|
Perhaps if you told us what code creates this error ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I have a gridview and have following columns:
<br />
<asp:TemplateField HeaderText="Test" ><br />
<ItemTemplate> <br />
<asp:TextBox ID="txtTest" runat="server" <br />
Width="200px" MaxLength="30" <br />
Text='<%# Eval("TestString") %>' <br />
/> <br />
</ItemTemplate><br />
</asp:TemplateField> <br />
<br />
<asp:TemplateField HeaderText="Click Here" ><br />
<ItemTemplate><br />
<br />
<asp:Button ID="cmd1" <br />
CommandName="cmd1" <br />
CommandArgument='<%# Container.DisplayIndex %>'<br />
Text="ClickHere" <br />
OnClientClick="openpage2(this);return false;" <br />
runat="server" /> <br />
<br />
</ItemTemplate><br />
</asp:TemplateField> <br />
<br />
a textbox and a command button.
OnClientClick of the command button i have opened a new page
Now i need to pass the value to the clicked row textbox from the new window.
Do anyone know how to acheive this
|
|
|
|
|
rprateek wrote:
OnClientClick of the command button i have opened a new page
You can Pass The GridView Row Index or Any ID that is identical with this row and send this as Query string while opening the page. And Read the data from that same id in next page.
|
|
|
|
|
thanks for the reply
how would i pass row index that's what is my question
|
|
|
|
|
|
Hello Everybody
I want to valid customer email address. What I have done so far is follows:
1. I have kept new customer details into my database
2. Also I have added a column (name emailValidation, data type bit) into customer table
3. Initially it will be 0
4. After validation it will be 1
What I want to do is:
1. After resistered I want to send an auto email to customer where I want to send a link to active his or her account.
2. When they click that link I want to change emailValidation column to 1
Please tell the best way to do it.
Thanks in Advance
Sarafarj
Sarfarj Ahmed
|
|
|
|
|
Create a guid or some other unique key you can associate with the email. Put that on the URL in the email you send, so when they click on it, you can look up the email address and mark it as validated.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Thank you very much
it does make sense to me.
Sarfarj Ahmed
|
|
|
|
|
as i understood is:
1. Send Mail using coustomer email address including guid
2. Example: I have send an email to a customer where I have attached a url address
3. url addrss: http://www.mycompnay.co.uk/customeremailaddres/936DA01F-9ABD-4d9d-80C7-02AF85C822A8
my question is:
that url is not exists into my system. so how can i can valid customer email address
please tell me more about email varification
Sarfarj Ahmed
|
|
|
|
|
Sarfaraj Ahmed wrote: 3. url addrss: http://www.mycompnay.co.uk/customeremailaddres/936DA01F-9ABD-4d9d-80C7-02AF85C822A8
I think you can do like following :
Make the url like
http://www.mycompany.co.uk?custId=customer@mail.com&GUID=936DA01F-9ABD-4d9d-80C7-02AF85C822A8
While sending the Mail To Customer insert the mail id and Guid in DB or in a storage
CustID GUID
--------- ----------
customer@mail.com 936DA01F-9ABD-4d9d-80C7-02AF85C822A8
Now, When user Click on that url, he will comes to your sites, now you can retrieve CusID and GUID from query string. and validate with database if valid then you can also remove the entry from database too.
This is just my idea.
|
|
|
|
|
Thanks a lot.
I will follow the information.
If I get any problem I will let you know.
Thanks Again
Sarfarj Ahmed
|
|
|
|
|
Here is another suggestion. Read this[^] article. It talks about a different approach for user account verification.
|
|
|
|