I'm pretty new to aspnet2.0 programming and I was wondering how can I add an "all" item to a listbox, so I can filter my results by a specific criteria ( from a database ) or display all the results.
Thanks in advance
I want to use ApplicationSettings in the markup code of an ASP.NET Web Application. Inspired by code behind this was my first try:
<%= My.Settings.MyApplicationSetting %>
No success.
I ended up with this lengthy statement
<%= Global.MyRootNameSpace.My.MySettings.Default.MyApplicationSetting %>
I can’t believe that this is the best solution. Isn’t it?
In my ASP.NET application I want to implement by data acess layer using the Entity framweok so I can use it as an ORM tool. But I dont want the rest of the application to care that I'm using this or be polluted by anything entity frameowrk specific.
I cant seem to find anyone who is using the entity framework exclusively in their Data access layer so I'm keen to see any online examples of this/ experience people have.
I have a site that will not use theming. But by default the value is set to true. Does ASP.NET do a check everytime to see if I'm using themes. Is there a performance hit?
Thanks!
paul
Here is my code:
I should get output of the department id (did) as an integer and the templatefilename (result) that is required.
The errors I get are: Conversion from string "ad" to type 'Integer' is not valid. I'm fairly new to asp.net and cannot see where the did variable picks up the "ad" string.
Any help would be greatly appreciated.
Thanks
We need some simple ad-hoc reporting solution for our ASP.NET web-site.
Just an ability to build a query with user friendly interface, then show the result of this query in some table and maybe export it to Excel or print.
The solution must be quite easy for end users (our site visitors) who know nothing about databases, SQL and other tech stuff.
Is there any framework or tool to generate web services (WCF) access to all the non transactional tables in my database? something like asp.net dynamic data but with web services, I need to do this for homologation with other systems.
Hi,
I'm trying to migrate from ASP.NET MVC2 Priview 2 to MVC2 RC, because new version of Telerik is enforcing it.
I had big problems while migrating from MVC 1.0 to MVC2.0 Preview 2, so I wanted to confirm with you guys before continuing.
Has anyone migrated from Prev2 to RC? Was there any problems? Are they easy to solve?
Any suggestions are greatly welcome.
Thanks.
Is it possible to wrap some "external" API code AND a LINQ data context into a transaction? In my case, I want to wrap the ASP.NET2.0 Membership API calls AND my own LINQ operations into a transaction.
Hi, I have a ASP.NET 1.1 application, and I'm trying to find out why when I change a ComboBox which value is used to fill another one (parent-child relation), two postbacks are produced.
I have checked and checked the code, and I can't find the cause.
Here are both call stacks which end in a page_load
First postback (generated by teh ComboBox's autopostback)
Second postback (this is what I want to find why it's happening)
Any suggestion? What can I check?
I created an ASP.NET REST service (using WCF) and access it through one of my .aspx page.
the problem is that when I publish (precomile) my code to the web server, I get an error :
"ThunServ not defined" in the Javascript console of my browser.
don't know what's causing it and how to solve it.
I've got a piece of tracking code which is capturing REMOTE_HOST, SERVER, REQUEST_METHOD, SCRIPT_NAME and QUERY_STRING. It grabs these from ServerVariables and sticks them in a database by user and IP.
What is the best way to pick up the exact contents of what was posted back to a URL in ASP.NET? Is there an HTTP_POST? I'd rather not grab something and then have to parse it.
Hi,
I am creating a web based email client using c# asp.net.
What is confusing is that various email clients seem to add the original text in alot of different ways when replying by email.
What I was wondering is that, if there is some sort of standardized way, to disambiguate this process?
Thank you
-Theo
I have a ASP.NET 4.0 webforms site where I have the MasterPage so it is set to ViewStateMode="Disabled" along with the content placeholders being set similarly.
When I'd view my page I'd still see a ViewState field rendered, I then tried adding the ViewStateMode="Disabled" to the page level also but that didn't change anything.
Described on this scheme "Server Clients Scheme"
I try to create a Silverlight / Server Application which has EventHandler/Triggers, which can do the following:
Notice whether a message was sent to "it" (the server)
Notice that the sent message is new "to all" "except" "the sender"
Send "to all" ("except...") "new message can be downloaded" / or even the new messages
How could this be done by using:
ASP.NET and Silverlight?
I have an ASP.NET project which has already some custom fields in it's web.config file. I've added in it three more fields and used them in my changes, and it's working great.
But where it needs to be used, there aren't these thre fields in the web.config (this was expected, I've just added by hand for tests and developing).
How do I check the existance of fields in web.config, and in case of not finding it, how do I add it permanently to the web.config ?
Thank you
Hi all,
I have an asp.net page that runs certain algorithm and returns it's output. I was wondering what will happen and how to handle a case where the algorithm due to a bug goes into infinite loop. It will hog the cpu and other sessions will be served very slowly.
I would love to have a way to tell IIS, if processing Algo.aspx takes more than 5 seconds, kill it or something like that.
Thanks in advance
Hi,
Can anyone tell me how to detect when a users session has exipred in asp?
I want to redirect users to a logged out page once the session has expired
Thanks
Sp
hi...I have one asp content page.Its contain many controls like dropdownlist,textbox etc.All controls are inside a div tag.I gave required field validator for all my drop down list.i have one SAVE button that reside inside another div tag.I gave SAVE button cause validation true.But my problem is that, the validator is not working and the page.Isvalid property is true.What is the problem with my code?
I'm trying to make an application in asp.net, which will grab all my friends from hi5 to my application using OpenSocial..
What are steps I should go through?
I am trying to understand different events in a Asp.net page life cycle. I came across to this link. It has two stages Load view state and Load postback data. I used to thought that these both means the same thing. But this article says, that postback data is not viewstate data. I don't understand this. If anyone can have a look.
I have an ASP button for which I have set the OnClientClick property to display a javascript confirm message. However, I only want this message to be displayed AFTER all of the client side validations have passed.
How can I do this? Essentially, I believe that I need to force Page level validation from the client and then, only if it passes, display the confirmation box.
I have following problem.
in one request i am updating session variable.
in the other request, i am trying to access that session value, but it was blocked until the first request finish.
I am using C# with ASP.NET2.0
I'd like to disable the 'Refresh' option in the right-click menu for internet explorer. Our application uses Javascript, ASP.Net and VB, but I'm sure it'll need to be done through Javascript. Any code snippets would be greatly appreciated.
Thanks
I have a page, called foo.aspx and i d like to rewrite the url as bar.something
How to do this? How does url rewrite happens in asp.net
Should i create a generic handler?
or should i get some url rewrite modules and add to app?