|
saravanan05 wrote: i changed instead of
to what u have replaced ??
koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
hi,
can anybody help me out to open a word,txt and xls file respective to file type through asp.net web page using hyperlink.
inshort have a list of file, i want a link on each filename that can open it.
I tried with the hard path like E:\.. but it doesnt work.
Jayesh Talsaniya
|
|
|
|
|
If you just link to it, and send it down via the link with the right MIME type, it should just open in the browser
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
may i please have some hard code help as i am not aware how to specify mime type.
|
|
|
|
|
There is anArticle by Michela here in CP. Open a FIle[^]
Hope this Article will help you.
Regards,
Satips.
|
|
|
|
|
Response.TransmitFile("workbook.xls");
Response.ContentType = "application/vnd.ms-excel"; //"application/vnd.ms-word" for .doc, "text/plain" for .txt
Response.End();
|
|
|
|
|
hi
thanx for rplaying
but i want to do it on a hyperlink.
Jayesh Talsaniya
|
|
|
|
|
Go with Custom Hyperlinks Using Asynchronous Pluggable Protocols. that will be easy.
Regards,
Satips.
|
|
|
|
|
Try use LinkButton, instead of HyperLink. LinkButton behaves like a Button control; but looks like a hyperlink.
Regards,
Jay
|
|
|
|
|
hi,
i have developed a web application on asp.net 1.1 with c# on sql server 2000.
now the problem is how to run this on client mechine ,so that they can see the project,
plz suggest the shortest way ie the least things which i will have to insttal on client mechine & how to run this on same.........
plz do it as soon as possible..plzzzzzzzzzzzzzzz
i am on line....
arayanbullu29
|
|
|
|
|
The simplest solution I can think of is:
- Cassini webserver
- MSDE 2000
That should get things running pretty quickly.
WM.
What about weapons of mass-construction?
"What? Its an Apple MacBook Pro. They are sexy!" - Paul Watson
My blog
|
|
|
|
|
I have designed a small application in ASP.Net 2.0 where I have to know the code for Exit button present in the login page.
Please send me the code urgently
thanx in advance
|
|
|
|
|
It is Very Simple.
Get it
Regards,
Satips.
|
|
|
|
|
try
btnexit(--- ---)
{end;
}
Aryan
|
|
|
|
|
write this in the button click event(C#)
Response.Write("javascript: parent.opener=''; " +
"parent.close();");
|
|
|
|
|
I am new to VS 2005 and I have designed an application in ASP.net 2.0 . For running the same application in another computer,but its not working. Even I have removed "Use proxy server for LAN connection" also in that computer. and I have entered
http://computerame/webpage.aspx, its not working
even I checked for
http://computername/application folder/webpage.aspx, it is not working
Please help me urgently
Thanx in advance
|
|
|
|
|
Do you have IIS configured to serve the ASP.NET app on your PC, or were you just using the built in web server ? The built in one that runs with F5 is local only, you need to host it in IIS.
Define 'not working', what happens in the browser on the other machine ? Can the other machine 'ping' yours ? Can it get to the point of accessing your file system ( it doesn't need to do this, of course )
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hi frnd,
have you yet tried Virtual Directory
hope it will help you
-koolprasad2003
If the message is useful for U then please Rate This message...
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
How can i refresh a page without using a javascript code?im using asp.net+c#..
|
|
|
|
|
GO for F5.
Regards,
Satips.
|
|
|
|
|
i need c# code..any possibility?
|
|
|
|
|
Hi
You can implement the refresh process with the help of a Button.
Check this code for counting how many times the page is refreshed
static int pageRefresh;
protected void Page_Load(object sender, EventArgs e)
{
lblRefresh.Text = "The page is refreshed '"+pageRefresh+"' times";
}
protected void btnRefresh_click(object sender, EventArgs e)
{
pageRefresh += 1;
Page_Load(sender,e);
}
Cheers
Chandu
|
|
|
|
|
you can refresh the page with the below code
nn is the seconds. if nn=5 then evry 5 mins it will get refershed.
add this in aspx page above form tag.
you can also do a Response.Redirect(Samepage.aspx)
|
|
|
|
|
Hello;
Iam using asp.net 2.0 and Added Gridview to my webpage
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="NewsID" EmptyDataText="There are no data records to display."
DataSourceID="SqlDataSource1" Style="position: relative; left: 4px; top: 44px;" OnRowCommand="Grid1_Command" AllowPaging="True" PageSize="8" >
<Columns>
<asp:ButtonField ButtonType="Image" CommandName="CmdUp" ..>
.......
protected void Grid1_Command(object sender, System.Web.UI.WebControls.GridViewCommandEventArgs e)
{
// Object o = sender;
String ERR = (String)e.CommandArgument;
case "CmdUp":
{
break}
in this command i make modefeaction on databse in colum order
and the dataview displayed in order feild in database
my problem i have tried to trace the code and i found that commad excute twice
why????
aj123
|
|
|
|
|
Hmm, it looks like you haven't set e.Handled = true;
WM.
What about weapons of mass-construction?
"What? Its an Apple MacBook Pro. They are sexy!" - Paul Watson
My blog
|
|
|
|