Click here to Skip to main content
       

ASP.NET

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page  Show 
GeneralRe: Problem with foreach loop in MVC 3 Razor Viewmembern.podbielski29 Nov '12 - 6:22 
Yes it is. But is not mine. You should answer to the question not mine answer.
Take care.
No more Mister Nice Guy... >: |

AnswerRe: Problem with foreach loop in MVC 3 Razor Viewmembervicent estevan19 Nov '12 - 2:11 
why don't you try to do this??:
 
@foreach(var inmate in Model)
{
@inmate.inmateid
}
QuestionHRM and Payrollmembersilentspeaker13 Nov '12 - 19:59 
Anyone have idea about Payroll Management System and Human Resource Management System in .net?
 
Please guide me how can I Start these projects.
AnswerRe: HRM and PayrollmvpSandeep Mewara13 Nov '12 - 21:18 
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.
Sandeep Mewara
Microsoft ASP.NET MVP 2012
 

[My Latest Article(s)]:
How to extend a WPF Textbox to Custom Picker
Server side Delimiters in ASP.NET

GeneralRe: HRM and Payrollmemberjkirkerx14 Nov '12 - 7:49 
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.
QuestionSaving Files From SQL to a Specific Folder without Promptmemberεїзεїзεїз13 Nov '12 - 19:36 
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.

AnswerRe: Saving Files From SQL to a Specific Folder without PromptmvpSandeep Mewara13 Nov '12 - 21:24 
εїзεїзεїз 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 [^]
Sandeep Mewara
Microsoft ASP.NET MVP 2012
 

[My Latest Article(s)]:
How to extend a WPF Textbox to Custom Picker
Server side Delimiters in ASP.NET

GeneralRe: Saving Files From SQL to a Specific Folder without Promptmemberεїзεїзεїз14 Nov '12 - 0:21 
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.

AnswerRe: Saving Files From SQL to a Specific Folder without PromptmemberBernhard Hiller13 Nov '12 - 21:36 
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.
AnswerRe: Saving Files From SQL to a Specific Folder without PromptmemberRichard Deeming14 Nov '12 - 1:58 
εїзεїзεїз 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


GeneralRe: Saving Files From SQL to a Specific Folder without Promptmemberεїзεїзεїз14 Nov '12 - 4:25 
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

Questionworker process with single to instancememberanishkannan13 Nov '12 - 19:16 
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..
AnswerRe: worker process with single to instancemembern.podbielski14 Nov '12 - 6:39 
Use IoC container and inject this singleton instance wherever you need it.
No more Mister Nice Guy... >: |

GeneralRe: worker process with single to instancememberanishkannan14 Nov '12 - 18:05 
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
GeneralRe: worker process with single to instancemembern.podbielski14 Nov '12 - 20:23 
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. Smile | :)
No more Mister Nice Guy... >: |

QuestionHide ".aspx" from the page namemembermhadef12 Nov '12 - 23:50 
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..
AnswerRe: Hide ".aspx" from the page nameprotectorPete O'Hanlon13 Nov '12 - 0:45 
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.

*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

"Mind bleach! Send me mind bleach!" - Nagy Vilmos

CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

GeneralRe: Hide ".aspx" from the page namemembermhadef13 Nov '12 - 20:56 
Thank you Pete O'Hanlon
i have read this article many time and i did not understand..
it is a little complicated..
Thank you..
AnswerRe: Hide ".aspx" from the page namememberSenaid Maksumic13 Nov '12 - 10:39 
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.
GeneralRe: Hide ".aspx" from the page namemembermhadef13 Nov '12 - 20:52 
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
AnswerRe: Hide ".aspx" from the page namemvpSandeep Mewara13 Nov '12 - 21:27 
You need URL Rewriting.
 
Read here:
URL Rewriting with ASP.NET[^]
MSDN: URL Rewriting[^]
Sandeep Mewara
Microsoft ASP.NET MVP 2012
 

[My Latest Article(s)]:
How to extend a WPF Textbox to Custom Picker
Server side Delimiters in ASP.NET

QuestionCreate a Google Chrome New Tab-based content page in ASP.NETmemberpier198912 Nov '12 - 23:21 
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 !
AnswerRe: Create a Google Chrome New Tab-based content page in ASP.NETprotectorPete O'Hanlon13 Nov '12 - 0:47 
Sounds like you are talking about ASP.NET Web Parts. You can find an article on using them here[^].

*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

"Mind bleach! Send me mind bleach!" - Nagy Vilmos

CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

GeneralRe: Create a Google Chrome New Tab-based content page in ASP.NETmemberthes@int13 Nov '12 - 2:05 
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
AnswerRe: Create a Google Chrome New Tab-based content page in ASP.NETmembern.podbielski13 Nov '12 - 7:24 
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... >: |

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   


Advertise | Privacy | Mobile
Web01 | 2.6.130523.1 | Last Updated 25 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid