|
Yes it is. But is not mine. You should answer to the question not mine answer.
Take care.
No more Mister Nice Guy... >: |
|
|
|
|
|
why don't you try to do this??:
@foreach(var inmate in Model)
{
@inmate.inmateid
}
|
|
|
|
|
Anyone have idea about Payroll Management System and Human Resource Management System in .net?
Please guide me how can I Start these projects.
|
|
|
|
|
First you need to know about each of the systems[^]. Explore, see the existing features you need, understand the product.
Once you are sure, start off features wise. Try out and post specific issues if you face.
|
|
|
|
|
That's specialty software, and you really have to know the industry or process before you start evaluating packages or start writing code.
And your heart has to be in it to take on payroll processing, because it's a boring subject. Plus the rules keep changing, so your app has to be adaptive.
Plus if you make a mistake, in the US, there's a huge penalty to pay.
|
|
|
|
|
Thanks in advance,
Back End : SQL Server 2012
Front End : ASP.net 4.0
My question is can we save files to a specified folder from ASP.net in a specific folder (C:\Download).
Right now browser prompts the dialogue box that do you want to save or open and if user saves it saves that file to the user's download folder,So is there a way that it does not prompts/Show download dialogue box and will save file to desired folder
any suggestion ?
SOFTDEV
Luck in life always exists in the form of an abstract class that cannot be instantiated directly and needs to be inherited by hard work and dedication.
|
|
|
|
|
εїзεїзεїз wrote: can we save files to a specified folder from ASP.net in a specific folder (C:\Download).
Yes.
εїзεїзεїз wrote: So is there a way that it does not prompts/Show download dialogue box and will save file to desired folder
You can use WebClient class to do it.
Following discussion will help: want to suppress filedownload dialog box [^]
|
|
|
|
|
Thanks for the post, i had changed response.addheader from attachment to inline and
its not asking for and message and saving to specific folder i will go through the link
SOFTDEV
Luck in life always exists in the form of an abstract class that cannot be instantiated directly and needs to be inherited by hard work and dedication.
|
|
|
|
|
As with many people asking questions related to the web here on CP, also you ought to learn to differentiate where what happens! ASP.Net runs on the web server. That is normally not the machine where the user looks at your web pages in a browser - though many developers do both things on the same one computer. The "save file dialog" is opened by the browser on the client - that is not an ASP.Net function.
If a web page wants to write some files onto my hard disk without asking me for permission, I would not trust it: I'd think of malware. Yes, there are security holes in many browsers allowing for such bad things, and they ought to get fixed as soon as possible.
|
|
|
|
|
εїзεїзεїз wrote: is there a way that it does not prompts/Show download dialogue box and will save file to desired folder
No.
If there was any way for the server to force the browser to save a file to a particular folder without prompting the user, that would be a massive security risk.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Yes, I do agree
To kill a DEER, You need Guns, knives, Ropes and many people to help But To kill
a DEAR,
You need just ignorance and silence
|
|
|
|
|
In my application i have to use singleton class.. and also enough single worker process. case is, when i start a application, it has created then working and if have any crash occurred, worker process created new one so it(singleton object) has been created again.. now i want to modify this single object getting entire( worker process).. my idea is
1) Can we create separate service for single instance application for processing. with service to iis communication via tcp using wcf.
or
2) Can we assign that object to httpContext for keeping object to entire application. if i used this, its applicable all webservice method (ajax callback).. please clarify
Any other idea?? please give proper idea for this concept..
|
|
|
|
|
Use IoC container and inject this singleton instance wherever you need it.
No more Mister Nice Guy... >: |
|
|
|
|
|
IOC Container is new to me.. can you give some article related with web app.. i have doubt with this, it is applicable to asp.net web application ( page ) and also framework3.5
|
|
|
|
|
Why not? Try this maybe.
stefanoricciardi.com/2011/01/21/ninject-mini-tutorial-part-1/[^]
It's so easy that is hard to find any tutorials.
Try also ninject documentation. And wikipedia on IoC and DI. I using this container because it is hosted on nuget. Just add the package and it works.
No more Mister Nice Guy... >: |
|
|
|
|
|
Dear all..
i have develop small project in asp.net and VB.net..and i have page name updates.aspx and this page is visit by devise to update some data... the devise go to the page using the URL:
http://mydomin.com/nic/update?hostname=yourhostname&myip=ipaddress&wildcard=NOCHG&mx=NOCHG&backmx=NOCHG
so i need to hide the extenuation and use the query string..
Thank you all..
|
|
|
|
|
Have a look at this[^] article. Pay particular attention to the last two techniques - depending on your ASP.NET environment, these are the techniques you need to put in place.
|
|
|
|
|
Thank you Pete O'Hanlon
i have read this article many time and i did not understand..
it is a little complicated..
Thank you..
|
|
|
|
|
Read bit about URL Rewriting. Since ASP.NET 4.0 you can use Routing Engine in Web Forms. All wath you need is write following code:
void RegistarRoutes(System.Web.Routing.RouteCollection routes)
{
routes.MapPageRoute("main", "/homepage", "~/Default.aspx");
}
void Application_Start(object sender, EventArgs e)
{
RegistarRoutes(System.Web.Routing.RouteTable.Routes);
}
The first argument in MapPageRoute is name of route, second one is route, and third one is physical path to file.
|
|
|
|
|
Thank you Senaid Maksumic..
where i can use this code exactly
..and if i use it with page "update.aspx" do you think that the user can visit the page using (ourdomin.com/nic/update) and i will be abule to read the QueryString?
thanks
|
|
|
|
|
|
Hello guys,
I know that the title of this question i am putting here may be confusing, but i will explain what is about.
I have this web application in ASP.NET, where among all pages i have created already, i would like to have a page for each user when they log in, where in this page users will add , delete and sort their personal services(e.g., Facebook, Twitter), and have an overall overview of what services they have chosen.
This overview i want it to be like the New Tab overview in Google Chrome where we see the previous links we have visited, and we can also drag/move them, sort them or delete them.
I would like to do the same in my web application, in a content page, which for each user will be different since they will log in to their account. The services that each user will choose to include in his account will be stored in a custom table called Services in my database where the Membership provider is installed, and every time users log in to their account, the personal services they have chosen will be read form the database and presented in this content page in the form of New Tab in Google Chrome.
My question is how would you recommend that i start, or if you have any ideas about this drag thing how it can be done. I completely have no clue or any approach in my mind of how to go with this. Any ideas and suggestions are most welcomed
This is the last part that i have to finish for my web application to be completed.
Thank very much !
|
|
|
|
|
Sounds like you are talking about ASP.NET Web Parts. You can find an article on using them here[^].
|
|
|
|
|
Thank you mate, i will take a look at the site.
Anyone else with any ideas or suggestion, please feel free to tell me anything relevant with my question.
Thank you,
TheS@int
|
|
|
|
|
If you want to make some web sites thumbs i saw somewhere some nifty tool for that. I don't know what was it exactly by i almost sure that this is it: http://www.thumbalizr.com/apitools.php
No more Mister Nice Guy... >: |
|
|
|
|