|
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... >: |
|
|
|
|
|
|
Hi all,
We are a new web application development team, and we use the asp.net to develop our products.
We need to put a simple standards and instructions for our works as the following:
- The best controls to use in the web applications such as, DATAGRIDVIEW with features Support RTL Languages, Grouping, Filtering, Export To Excel and with best performance.
DATETIME PICKER, TEXTBOXES, TREEVIEW, DROPDOWNLIST, DROPDOWN LIST WITH MultiColumns.
- GUI Standards, such as using master page to make same style for the whole pages, use css or any other things to develop the best style.
- How to make my application supports many languages, RTL and LTR Languages.
- Security Standards for my web applications
- How to make my applications work over all browsers such as IE,Chrome, FireFox.
This is what we want to ask about to decide and develop our work instructions for the web applications.
Please help us to put our standards and instructions, and tell me if there are any links or templates we can use.
Thanks all
|
|
|
|
|
Will you use MVC?
No more Mister Nice Guy... >: |
|
|
|
|
|
No i will use asp.net web application in Microsoft visual studio 2010
|
|
|
|
|
How I can block my site to some of the countries using asp.net? Need Assistance plz.
|
|
|
|
|
|
hi
can anyone help me or may be show me the code how to connect and display the database from the MySQL work bench to asp.net. do I need to use linq from asp.net
|
|
|
|
|
destroyer89 wrote: can anyone help me or may be show me the code
You should always share your effort while asking a question. Currently, it's just like a homework question without any effort made so far.
destroyer89 wrote: how to connect and display the database from the MySQL work bench to asp.net.
Start from here: Using MySQL with ASP.NET - Part 1[^]
|
|
|
|
|
There is a project that I want to merge in my project. It has only one default page with several back end files such as .css, .js. Is there a way to add that solution or that page to be specific in a certain div of page of my project, like we do using JQuery? What kind of c# code is required for that?
|
|
|
|
|
[][][][][][][][][][][][][][][][][][][][][][]>><<<>>>><
<big><big><small><small></small></small></big></big>
|
|
|
|
|
Ron_The_King wrote: Is there a way to add that solution or that page to be specific in a certain div of page of my project
Copy all resource files like CSS, JS and paste in your main project. Copy Default page and add it to main project - modify the references to JS/CSS/etc if needed based on the project hierarchy. If the relative hierarchy is still the same, no change would be needed.
Ron_The_King wrote: What kind of c# code is required for that?
For resource reference to a page, there would be no CS code involved. If you have some specific code to project you might need to make it suitable as per main project.
|
|
|
|
|
Hi,
I have created a windows service for printing PDF's through Adobe reader.
The code is as below.
Process.Start(exe,arg);
The command which executes from the above will be like below
C:\Program Files\Adobe\Reader 9.0\Reader\AcroRd32.exe,/h /t "D:\test.pdf" "\\servername\PrinterName" "" ""
This was working fine in windows 2000 server.
Now we are upgrading to windows 2003 server. In this it is not giving print.
Also I'm not getting any exception or any logs. Logs were created as everything working fine.
Also in 2003 server this is working from command prompt and
from console application also it is working, but when user logged in.
If no one is logged in again the print is not working.
Can please some one help me on this.
Regards
Madhu
|
|
|
|