Quantcast
Channel: User Andy Rose - Stack Overflow
Browsing all 40 articles
Browse latest View live

Comment by Andy Rose on web page display depending on different users

This question is very broad and unanswerable in its current form. Do you have a data architecture in mind? What web architecture will you be using i.e. forms, mvc?

View Article



Comment by Andy Rose on How to access the code behind click event code from a...

@Lokesh - the form in this case is the <form> page element. As this is a web page this should only have one form element which should have the runat='server' attribute set.

View Article

Comment by Andy Rose on XDocument.Save() unable to access file

@davidpcl1977 - glad it helped. It's well worth get to grips with the using keyword as it's a very elegant way of handling disposible objects. Looking forward to watching Pearl Jam 20 and reliving my...

View Article

Comment by Andy Rose on C# and XML - Read XML files from user-specified location

Anywhere specifically that you need guidance as this is quite a broad question. I would definitely suggest looking at Linq to Xml for all your xml parsing needs.

View Article

Comment by Andy Rose on session not working

Is you client server a web farm using in process session state?

View Article


Comment by Andy Rose on How can I determine variable scope in this C#...

Why use page literals when ViewState is built in?

View Article

Comment by Andy Rose on jQuery returning null - selected option not being...

Really can't get this to break, tested with an alert instead of an ajax call and the value is coming through fine: jsfiddle.net/WKNhV

View Article

Comment by Andy Rose on One Way binding to an object in Windows 8

@dowhilefor Not heard of that in win8 app development, I'll google/bing it.

View Article


Comment by Andy Rose on One Way binding to an object in Windows 8

Cheers, @kindasimple, this sounds like a potential work around but I will leave this open for a while to see if there are any other solutions. Didn't really want to add UI specific properties to my...

View Article


Comment by Andy Rose on Method 'XYZ' cannot be reflected

@BobSort sorry, way to long ago to remember exactly what I did, but it would have been along the lines of manually updating the proxy classes that VS has created to access the service to use data types...

View Article

Comment by Andy Rose on MVC project on VS2010 error : The project type is not...

You can add MVC 4 to the list of possible missing installs.

View Article

Comment by Andy Rose on How to delete HttpCookie object value in class file

I'm guessing in the second piece of code you either don't have access to the Current HttpContext object (unlikely) or that the Request cookies collection doesn't contain the cookie you are trying to...

View Article

Comment by Andy Rose on Can you find a specific documents position in a...

sounds interesting and the skip constraint wouldn't be an issue but not sure how to define a sort/filter query which will return a count that defines a specific doc id. If I add search=id eq...

View Article


Answer by Andy Rose for DropDownList datasource + empty value

Your options are:Add it to you datatableAdd it after the databinding event in the page lifecycle has completed.Add it on the client using javascript or jquery.

View Article

Answer by Andy Rose for How to show a list on mouse click using jquery?

This should give the behaviour you want, any open list will be hidden and the appropriate list opened: $('li.headlink ul').hide(); $('li.headlink > a').click(function(e) { e.preventDefault();...

View Article


Answer by Andy Rose for Which LINQ expression do I need for this, without...

You can perform table joins in Linq2Sql using the join keyword:var places = from request in Requests join result in Results on request.Id equals result.requestID join place in Places on result.Id...

View Article

Answer by Andy Rose for jQuery if an element has two parent uls

The reason your code does not work is the first parent ul's immediate parent is an li, you would have to do this:if ($('.this').parent('ul').parent('li').parent('ul') == true)The jQuery parents()...

View Article


Answer by Andy Rose for How to create such layout in CSS?

Hard to tell exactly what your after but your divs can share several css properties and you can use classes to specify size only. This JSFiddle represents your diagram.Of course this layout is...

View Article

Answer by Andy Rose for Why isn't width:200px applied to this label?

This is because the label is an inline element so does not have a width property. To set the width you need to make it a block or inline-block element:#form label { display: block; width: 200px;}

View Article

Answer by Andy Rose for Forcing a postback

No, not from code behind. A postback is a request initiated from a page on the client back to itself on the server using the Http POST method. On the server side you can request a redirect but the will...

View Article
Browsing all 40 articles
Browse latest View live




Latest Images