r/ASPNET • u/[deleted] • Sep 07 '08
r/ASPNET • u/sabilv • Dec 06 '13
asp.net - Give Proper Space between two sql value in Dropdownlist
r/ASPNET • u/[deleted] • Nov 15 '13
Why is .net consistently behind and copying the open source world? I don't want to rely on the whims of MS in my dev env. What are the alternatives?
r/ASPNET • u/krennylavitz • Oct 01 '13
Tasklist affecting Progress Bar
Hi reddit,
I'm making a project management application and have the following tables in SQL that I need to build a progress bar off:
<Project> & <Tasks>
I'm trying to make a page that shows the tasks that are at hand when you click on a project.
That also lists a progress bar with a select Tasks that match ProjectID (from the projectID table) where the state is marked completed.
Any idea on where I can find a guide for a progress bar based on a state of an attribute? (state)
E.g. if I had 3/8 tasks marked as complete the progress bar would be marked 37.5 full...
r/ASPNET • u/bouillon • Sep 19 '13
Using a drop drop list to navigate paging of a gridview populated by a web service?
I'm trying to create a web form in c# asp.net with visual studio 2010 framework 4.0. I take a username and fill a gridview with information pulled from a webservice. From that information, I extract an item to fill another gridview from a different web service. It splits into 15 pages and I would like to add a dropdownmenu to jump to a certain page, but this does not seem to work:
protected void PageList_SelectedIndexChanged(object sender, EventArgs e) { grd3.PageIndex = Convert.ToInt32(PageList.SelectedValue); }
I'm following a tutorial on here-http://msdn.microsoft.com/en-us/library/bb404876.aspx
Any insight would be great, thanks in advance for being awesome!
r/ASPNET • u/TookAnHourToRegister • Sep 18 '13
Invalid object name 'dbo.UserProfiles'
Please excuse my question as I am new to ASP.NET
I am using code first with migrations. I accidentally an s in a DbSet and Updated Database. I noticed a new table popped up called UserProfiles. I found my typo, fixed it, compiled, deleted the table from server explorer then ran another update-database. I believe I screwed up big time and should have used another way to delete the newly created UserProfiles table as my website is giving me Invalid object name 'dbo.UserProfiles' even though "UserProfiles" is NO WHERE to be found in my code. My code is trying to use "UserProfile" but I get UserProfiles error. I have been googling all day to see what I did wrong and I am ready to scrap the whole thing. Any ideas?
r/ASPNET • u/darrenkopp • Apr 10 '13
Playing with fire - Optimizing the ASPState internals
r/ASPNET • u/deathgaze • Feb 22 '13
Open source projects?
Are there any active ASP.NET open source projects that you guys would recommend checking out? I'm looking for a good way to build experience working on ASP.NET web apps, but I'm coming up totally dry.
Or am I barking up the wrong tree? I WAS considering learning ASP.NET, but it doesn't appear as if anyone uses it outside large corporate environments. Should I look toward another stack if I'm wanting to do open source projects?
r/ASPNET • u/statuek • Jan 27 '13
Some advice, please? (x-post from /r/cscareerquestions)
Okay here's my full situation. Sorry for the long read.
I'm 20, in my junior year of college.
My major is math and minor is computer science. When I get out, I plan to throw myself into web/software development full-time. I'm not decided which I want to do yet, but one of these two.
I'm currently part-time employed by my university working on wcpua.edu. It's ASP.NET 4.0 using webforms and 90% of my job is just making forms and having the info emailed to a few people (and occasionally being thrown in a database).
I have a background in HTML5, CSS3, C#, .NET, some Java, and ASP.NET WebForms.
I'd like to do the following;
learn C# to a fuller degree. I know a bit of OOP and can do basic stuff, but my job is not demanding in this regard at all.
learn ASP.NET WebForms and MVC. Specifically MVC. I've just started that and I'm loving it.
learn more web (HTML5, CSS3) stuff.
learn mre database (SQL Server) stuff
get some Microsoft certifications
So my problem is this;
What order do I go about this? What books to read?
I have .pdfs of like 20 books.
Should I just focus on C# first? After I get the basics totally down, where do I go from there? I'm having difficulty finding a "Here's a good roadmap" procedure of books to read once the basics are learnt.
As for MVC, where can I find source code of big projects? I learn well by just looking through source code.
What training material should I go after? I'm currently subscribed to both lynda.com and pluralsight.com and those are helping TONS but there's only so much content there. Are there more websites like that?
Thanks. I really appreciate any advice you give.
r/ASPNET • u/Nemmie • Jan 21 '13
Separating command data from logic and sending it on a bus
r/ASPNET • u/dotorion • Jan 18 '13
[Help] Populating a Gridview based on selected SelectBoxList values
For an ASP.Net assignment we have to build a real estate site.
I've got three datasources (two of which populate the checkboxlists), two CheckBoxLists (one to filter on sale or rent, one to filter on house type), and a gridview.
I'm trying to get my GridView to filter based on the selected values, but it's only partially working. For example when I check "Sale" and "Appartment" I will get only appartments that are for sale, so that is working correctly, but if I want to see appartments that are both for sale or for rent it doesn't add the ones for rent. Same goes if I select multiple house types.
I assume the problem lies with my select statement for my gridview's datasource:
SELECT * FROM [table] WHERE ((([ImmoID] = @ImmoID) OR ([ImmoID] = @ImmoID2)) AND (([TypeID] = @TypeID) OR ([TypeID] = @TypeID2)))ImmoID is the field that holds sale or rent, TypeID is the one with house types. @ImmoID and @ImmoID2 are the two checkboxes for my sale/rent checkboxlist the way I understood it, and @TypeID and @TypeID2 are the checkboxes for my house type list, although I don't know why there aren't any more (since I have like five house types)
r/ASPNET • u/davegreilach • Dec 18 '12
ASP menu losing css when query is running
I have a page that runs a query that sometimes returns several thousand rows. While this query is running, my menu will lose its css until the query finishes and the results are displayed. Is there any way i can stop this from happening?
r/ASPNET • u/[deleted] • Sep 28 '12
Trouble with returning a DMX query in a gridview through a dataset.
I am trying to run a simple ASP.net web app which uses a data adapter to take a DMX query and populate a data set with the results. The data set is then used as the data source for a grid view in the app so that the results can be seen. I know the data set is getting filled because the Tables.Count property goes from 0 to 1 while I step through the code but for some reason, nothing shows up in the grid view when I run the app and I do not know why. I am newer to programming so any assistance is greatly appreciated. Thank you in advance.
Here is my code:
Imports Microsoft.AnalysisServices.AdomdClient
Public Class _Default
Inherits System.Web.UI.Page
Dim AdventureWorksConn As New AdomdConnection("Data Source=localhost;Catalog=Adventure Works DW 2008R2 SE")Protected Sub Page_Load() Handles Me.Load
AdventureWorksConn.Open()
Dim myCommand As New AdomdCommand("Select CUBE_NAME from $system.mdschema_cubes where cube_source=1", AdventureWorksConn)
Dim ds As New DataSet()
Dim dataAdapter As New AdomdDataAdapter(myCommand)
dataAdapter.Fill(ds)
GridView1.DataSource = ds.Tables(0)
AdventureWorksConn.Close()End Sub
End Class
Edit: I figured it out. I needed to databind the gridview as well.
r/ASPNET • u/toomuchpineinthecone • Aug 29 '12
Rowcommand isn't working and I can't figure out why (pastebin link inside)
I'm trying to get my buttons to work for manual list sorting but for whatever reason rowcommand never seems to execute.
Update: resolved issue see my comment below
r/ASPNET • u/mitzman • Jul 10 '12
Custom role provider, multiple domains
So i am working on a forms based auth web app that uses active directory as the auth mechanism. Our setup has a forest root with 18 domains. I have it working where it will auth against the different domains. My problem is now the role provider.
I setup my custom role provider class because you cant use windowstokenroleprovder with forms auth. However, i need to verify users from different domains are in groups in other domains. When a user logs into the site with domain\username, the user.identity.name is domain\username and user.isinrole does not work because the samaccountname is just username, not domain\username.
Now, I could change it so user.identity.name is just username and then user.isinrole will work, however we have 18 domains and counting so there are users with the same samaccountname in different domains.
The only other option i feel im left with is making the isinrole code parse domain\username and then match based on that.
I realize this is a bit long winded but any thoughts would be appreciated. I am typing this on the tablet so when i get back to a real keyboard later i can respond more thoroughly.
r/ASPNET • u/gantww • Jan 31 '12
ViewState Hell
I'm fighting and losing a battle with a viewstate bug in my app. The app runs on multiple servers on Rackspace's cloud. The stacktrace for the bug is as follows:
Exception details (if available): System.FormatException: Input string was not in a correct format. at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at System.Int32.Parse(String s, NumberStyles style, IFormatProvider provider) at System.Convert.ToInt32(String value, IFormatProvider provider) at System.Web.UI.Page.get_RequestViewStateString()
Now, I know that Viewstate was created by the devil specifically to try the souls of ASP.NET developers, and I know I should be using MVC. But since I can't fix it permanently at the moment (although it is on the roadmap), how can I get it to quit barfing this error up?
I have not been able to replicate this issue on my dev machine without tampering with the Viewstate _VIEWSTATEFIELDCOUNT field (I figured out that it was this one because of information made available at TypeDescriptor.Net). Anyway, putting a non-numeric value in this field creates an exception with this same stack trace (this is the only place in that function that I'm seeing Convert.ToInt32 being called). So, I'm wondering if this is a hack attempt, browser bug, or something else.
We're currently not doing any gyrations with ViewState. The page on which the error is occurring most frequently does have a metric crap-ton of viewstate data on it - is it possible that the amount of data is causing a browser issue or something?
I've posted the same question on stackoverflow, so if anybody has an answer and wants cred there, you can also hit it at this url: http://stackoverflow.com/questions/9037121/asp-net-viewstatefieldcount-getting-bad-values
I'm just desperate at this point. The fail whale keeps surfacing here, and I'm all out of harpoons.
r/ASPNET • u/[deleted] • Jul 26 '11
I was just reading about WebGrid. What other built in helpers like this are there? I can't find any documentation on this.
r/ASPNET • u/mariuz • Dec 15 '10
Trace API support in ADO.NET provider for Firebird (FbTrace)
r/ASPNET • u/angeljasica • Nov 25 '10
Firefox Extension Development by Dedicated Developers
r/ASPNET • u/fuggerdug • Nov 17 '10
Example of how to render Content Type fields as a form in Sharepoint Web Part using c#
r/ASPNET • u/ashishsarda99 • Oct 22 '10
Simple ready to use code transposing datatable in c#.net. I found this code simple but useful.
r/ASPNET • u/troyhunt • Sep 17 '10