|
Ha ha, he didn't came today. This is a newbie to CP
|
|
|
|
|
hello to everyone...........
i want to provide downloading of a document in my project.
but how?
thnx in advance
yogesh
|
|
|
|
|
Just redirect (Response.Redirect(filename) ) to file would do that.
|
|
|
|
|
how to convert html,pdf,xml into doc
|
|
|
|
|
Obviously not an ASP.NET question.
HTML/XML, paste into Word. PDF, buy a library.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
Expanding CG's answer, use XSLT to style your XML file and save the output as doc extension.
|
|
|
|
|
I want to import data from any database system to SAP database,
so if u have any idea about this then please tell me
|
|
|
|
|
This is the ASP.NET forum, this question is off topic here.
Christian Graus - Microsoft MVP - C++
"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 When i installed Vs2003,
I just create some web projects and to run that i will give
http://systemname/projectname/formname
So it will display consider page,
Now i installed vs2005,
I created one project,
If i give same like vs2003
Its giving error in webconfig file as Configuration Error:
Whats the probs?,
Plz any one help me
Thanks & Regards,
Mageshh,
please don't forget to vote on the post
|
|
|
|
|
It's because you have some issue with your configuration. If you tell us the error you get and show us what's going on, I'm sure we can be more specific.
ASP.NET 2.0 is very different from 1.1 tho. And, the machine you're browsing to needs to have IIS configured to use 2.0, not 1.1.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
U can try this.
Check your project's Property in IIS then lookout for Version of ASP.NET
Now if u want to run the project for VS2005 then set ASP.NET version to 2.0.
HMagesh wrote: If i give same like vs2003
I m not getting what this line mean?
It will be easy for us if u post error.
Believe Yourself™ ™
|
|
|
|
|
I changed a way of storing user information from many session to one session object with storing a class into that session.
I have a class like:
public class UserInfo
{
string _username;
int _id;
bool _somePermission;
...
and so on
}
When user logs in and if user have all necessary permissions, I create a new instance of a UserInfo class
UserInfo user = new UserInfo();
And then read user permissions, from database, for every page on a site and store it in each property that correspond to
user.Username = dataReader["username"];
user.ID = dataReader["id"];
user.SomePermission = dataReader["some_permission"];
And finally, store that class into session like
Session.Add("UserInfo", user);
On every page, where I need information from session, I do
UserInfo user = (UserInfo)Session["UserInfo"];
And then use
user.Username, user.ID or user.SomePermission
But, theres something wrong about it.
When I try to compile it, I get an error (marking Session)
An object reference is required for the nonstatic field, method, or property 'System.Web.UI.Page.Session.get'
I am missing something, thats for sure, but I don't know what.
Anyone would help me with this?
Thanks in advanced.
|
|
|
|
|
Kasic Slobodan wrote: On every page, where I need information from session, I do
UserInfo user = (UserInfo)Session["UserInfo"];
Are you doing this outside the events, I meant on the declarative part of the Page Class? Session object get initialized after the Page Init event. May be you are try to assign the Session value to your class before the Page Load like,
UserInfo user = (UserInfo)Session["UserInfo"];
protected void Page_Load (object sender, EventArgs e){
}
|
|
|
|
|
Yes. I was doing outside the events.
Thank you for your reply and your time.
If I asked later, I would save some time figuring out what went wrong .
And thank you Navaneeth for a tip about casting.
Best regards and thanks both of you.
|
|
|
|
|
Venkatesh is correct. Also when you do type casting you can use as keyword which is much faster than this type of casts.
Kasic Slobodan wrote: (UserInfo)Session["UserInfo"];
So this can be written like UserInfo user = Session["UserInfo"] as UserInfo;
|
|
|
|
|
I'm making a ASP.NET 2.0 program. I need to display page information to new windows. This is my code.
string cPSCRIP = "" +
"window.open('test.aspx','test',"+
"'width=auto,height=auto,toolbar=no,menubar=no,"+
"scrollbar=yes,resizable=yes')" +
"";
ClientScript.RegisterStartupScript(typeof(Page),"Testscript",cPSCRIP);
At MS WindowXP with IE7, this works. However, at MS Vista with IE7, this code is not working. It only show 'done, but there is error on page' message at statusbar. How can I solve this problem? Can anyone help me?
PS) MS Vista with IE7 -> protected mode:on
|
|
|
|
|
And what does the error message say?
only two letters away from being an asset
|
|
|
|
|
no error message. At MS Vista, it just not show a new IE windows.
|
|
|
|
|
Dong Kim wrote: It only show 'done, but there is error on page' message at statusbar
Double click the icon and show what the error is
only two letters away from being an asset
|
|
|
|
|
Hi All,
I a page in ASP.net i want this page to run every two hours with out any manual intervation.
How could i do it please?
Inshort,i want the application to execute itself every two hours.
Thank you.
|
|
|
|
|
Have you considered that this is not what ASP.NET is used for? There are other, much more appropriate ways to achieve this such as sheduled tasks, or windows services.
|
|
|
|
|
Thank you very much for your response.
How will i setup the following URL to run every 2 hour.
http://localhost:1257/Update_Table/Default.aspx
Thank you
kibrom
|
|
|
|
|
You thanked me for my response, but did you actually read it?
|
|
|
|
|
whats wrong with you man!Can you please be Polite.
Take it easy.
|
|
|
|
|
He is in fact polite, calm and poised and he has helped out in great depth. You ought to first read his full suggestion before embarking on your journey of throwing a counter-thread for clarification.
Coming to your question, you can actually have a simple VBScript (VBS) file to use XmlHttp to hit the URL and get the response. You can have this VBS file scheduled to execute from your Windows Scheduled Tasks.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|