- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 3
- Downvotes Received
- 2
- Posts with Downvotes
- 1
- Downvoting Members
- 2
32 Posted Topics
When I click the login button I never get any values posted to the server. I accept a AuthViewModel but it is always null. I have tried using @html.EditorFor but have not had any luck with it. **User Controller** [HttpGet] public ActionResult Password() { UserModel user = (UserModel)Session[Constants.SessionVars.Authenticate]; //error - …
I am trying to allow a page to print nicely if a user uses the built in browser print. However the page is too small in IE. The frustrating part is I have no way to debug the page as the css is only applied at the time of printing. …
If you placed one image on the right and one one the left and made a table in the middle it my do that for you. I have not tried it but I cant see why it wouldn't work.
I want to have an iframe expand and center on the screen when a button is clicked. This would be similar to creating a lightbox for it but I dont want to have the content in the iframe reload. I have found solutions that can resize an element but it …
Hi, I have a custom httphandler (HttpUploadHandler.ashx) which is used for handling requests from a file uploader. It collects all the files from a client then fires a thread to do some processing on the files. When large amounts of files are added it will throw 'Thread was being aborted' …
I am having trouble debugging in sharepoint. It is acting like I am debugging a different dll than the one I made code for. When stepping through it will skip lines occasionally and randomly just stop debugging. Often it will start debugging then stop randomly and show any new breakpoints …
When I try to navigate to the service it shows me the methods like normal but when I try to see the wsdl I get a file not found error. I have created both the wsdl.aspx and the disco.aspx. They have been deployed into _vti_bin folder. I was able to …
If you are having problems a good idea is always to step back and try and isolate the it. Initialize the property in the constructor to see if that is the problem.
First of all I do not want to start a argument about which is better the real thing or you you make yourself. I am trying to pick hardware for a mac box and I want to make sure the hardware will be compatible before I drop a bunch of …
i was sure this should be easy but here i am. i have a text file with information of the tones required to play the mario theme. i was needing to read line by line and break out the numbers and put them in a array. the problem is i …
what is the point of the argument, it is never used [CODE] string[] args [/CODE]
i have never heard of anyone doing this. but i know it is possible with scripting languages. but that is an area i cant help with good luck
This is a copy pasta from an ASP project im working on let me know if its helpful or not. [CODE] public static void OrderDetails(GridView gv, int orderID) { using (SqlConnection conn = new SqlConnection(WebConfigurationManager.ConnectionStrings[sConnNorth].ConnectionString)) { conn.Open(); using (SqlCommand comm = new SqlCommand("OrderDetails", conn)) { comm.CommandType = CommandType.StoredProcedure; SqlParameter param …
I have an image for the background of the form I'm working on, but I had to increase the size of the form. Is it possible to have it scale the image instead of tiling? I could stretch it in photoshop but I was wondering if this was possible.
have been using svn tortoise and ankhsvn plugin for VS. works really well and its free.
you could set bools indicating the state of the keys then have one timer that checks the bools and makes the changes.
The ball steps off the screen and you check its placement and flip the sign. but next time you check its still off the screen so you flip the sign again. try having a if statement for each wall that also checks the direction of travel before inverting the sign …
i'm taking c# in school and all my instructors shudder when ever VB gets mentioned
did you make a bubble sort lol. there are a lot of better methods for sorting. what you did was go through your array a bunch of times checking if a number is bigger that the other and if it is you switch. this is highly inefficient because you may …
you could use the windows registry but i would just save it in a text or binary file
you may not always want to put public on your class variables. if you give access to them through a property you can also do data validation before the user crashes your program. the first one is an automatic property, the system will automatically make its variables. the second one …
that doesnt make sense [CODE] while ((input = sr.ReadLine()) != null) { int i; // if ((input = sr.ReadLine()) != null) for (i = 0; i < 2; i++) { input = lines[i]; } } [/CODE] does nothing. you are assigning input from your string array but then dont use …
you could have a color property. when you adjust a slider just update that component of the color property [CODE] private void redTB_Scroll(object sender, EventArgs e) { m_red = redTB.Value; colorBox.BackColor = Color.FromArgb(m_alpha, m_red, m_green, m_blue); } private void GreenTB_Scroll(object sender, EventArgs e) { m_green = GreenTB.Value; colorBox.BackColor = Color.FromArgb(m_alpha, …
i dont understand how you expect the calculation to work but did you mean to overwrite the points value. should you have maybe added to it or averaged them together... and also you could change the switch statement to know if you got an 'f' or not [code] switch (letterGrade) …
im in visual studio 2010 and it doesn't have that control. are you sure that is the correct name?
if you initialize both of them at the same time, the default time value will seed the same value to both. you could just make one random gen and use it to get both rolls.
hello is returning a void result i would just change that to a string return. [code] string hh = ""; hh = hello(); string hello() { return textBox1.text; } [/code]
you could use the output window to display what your prams are before calling. System.Diagnostics.Trace.WriteLine()
i think you are right that it is sorting by string, not my numeric value. you could write a custom sort that you pass the column index...
i dont know about coldfusion but you should be able to do something like this substring(0,3) + "." + substring(4,stringLength) or if you can use it like a numeric value then just multiply by 1000
you could use integer division to get the lower value then add ten to get the upper 33 / 10 * 10 = 30 30 + 10 = 40
you could try using an out or ref void flip(out int iCoinState) { }
The End.
divin757