Hello,
I have a string "10/15/2010"
I want to split this string into 10, 15, 2010 using c#, in VS 2010. i am not sure how to do this. If someone can tell me what function to use, it would be awesome.
Thank you so much!!
...
I am using jQuery dialog in asp.net. It is working fine for me. The problem is when I open the dialog box, I can still work parent page functionality. I don't want that. Just dialog to modal and should not allow focus on parent page.
window.onload = function onloadFunction() {
//setup edit person dialog
$('#uploadPic').dia...
Hey Guys,
I'm looking at accepting a project that would require me to clean up an existing e-commerce website. Its been relatively successful and has over 100,000 individual products - loaded both by the client and its publishers.
The site wasn't originally designed for this many products and has become fairly disorganized.
SO, the cl...
I have an ASCX that contains
<my:Foo ID="Bar" runat="server" Value='' />
I want to set Value with textbox1.Text, but Value is an Int32. I am looking for something like this:
<my:Foo ID="Bar" runat="server" Value='<%= Int32.Parse(textbox1.Text) %>' />
But I get
Parser Error Message: Cannot create an object of type 'System.Int32' fr...
I found this really cool page that allows you to hook up facebook into your site: See here
<iframe id="MyIframe" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.EXAMPLE.com%2F&amp;layout=button_count&amp;show_faces=true&amp;width=100&amp;action=recommend&amp;colorscheme=light&amp;height=21" s...
I'm having a weird problem where mailto: links added to the body of ASP.NET pages using master pages and the asp:menu control don't work in IE8 (at least, maybe other versions). Steps to reproduce:
Create new project in VS2010 (ASP.NET Web Application).
Add this control to bottom of Default.aspx (I'm using VB. I'm not sure if I'd hav...
Hello,
I'm trying to do a RadAjaxPanel ajaxRequest (invoked on the client) to call the server event-handler. I'm getting a 404. I do have a server-side AjaxRequest handler defined but it never gets call because of something with the request. What do I have to do to figure this out?
.NET 4.0, IIS 7.5, latest telerik.
Thanks.
...
Here's my issue. I have a usercontrol that I want to allow users to add as many instances of as necessary using a button click (each time a button is clicked, I want to add another instance of my user control to a Panel). It works fine the first time, but each additional post back removes all of the added controls. I have no problem k...
So I have a cascading dropdown of sorts, but using List Boxes. When an item is selected in the first ListBox, the second ListBox is populated with items based on the first selection (this is done using a jQuery AJAX call). Here's what I got:
$('#<%= lbEvents.ClientID %>').change(function() {
var selectedValues = $('#<%= lbEvents.Cli...
what's the DIV equivalent to this command?
((Panel)this.Page.Master.FindControl("Panel1")).Style.Add("display", "none");
This works great with a panel but I can't find the variation for doing the same thing with a DIV who's ID I know. anyone know?
thanks in advance for the help!
...
I have a method
private void BindGrid()
{
dataContext = new VTCEntities();
string SortExpression = "DisplayName";
string SortDirection = "ASC";
int skip = 0;
if (this.ViewState["SortExp"] != null)
{
SortExpression = this.ViewState["SortExp"]...
I'm using the default SqlMembershipProvider, but I've created a custom MembershipUser class (SoeMembershipUser) because I needed a "DisplayName" property. All the DisplayName does is look at the UserName and format it differently.
When I try to cast a MembershipUser to a SoeMembershipUser user I get an InvalidCastException. Exact error ...
I once saw that was possible to do something like adding a key in the web.config file to redirect to a default error page everytime a unhandled exception is found.
Is it possible? how?
...
I have a doubt that came up to me just today. I've read Sass website and tried a bit of things and I think it's great. Very flexible and powerful. However it was kind of a hassle when using it in Windows because I had to install Ruby, run the sass watch command everytime so it added more steps to my development environment.
To me, the gr...
I am using the jQuery Dialog in ASP.NET. I have it working fine with the exception of when I click the OK button in the dialog and if an error occurred I want to show the error in the label. By the time the dialog closing event is fired it is too late. How do I still show the dialog if an error has occurred. I don't want to close the dia...
I'm trying to display data which comes from a join on two tables (or more) in a gridview
I want to be able to filter the result set via user given input (text boxes on page)
I have tried the standard tutorials but cannot find something which goes beyond displaying one table result sets in the gridview. If I go through the configure gr...
I'm working with ASP.Net web services and am having a problem with a long-running process that takes about 5 minutes to complete, and it's timing out. To fix this, I was able to set the executionTimeout on the server's web.config to 10 minutes, and then set the .Timeout property on the Web Service object to approximately 9 minutes. Now...
Hi,
I've created web site in c:\website folder using visual studio 2010. Then, I've created web site in IIS 7.5 that maps to that folder. However when I access Default.aspx page and request to css is issued like
http://localhost/webapp/Styles/Site.css
it's redirected to something like this:
http://localhost/website/Account/Login.aspx...
I'm attempting to create a process that verifies data within a database and notifies users of errors. My initial thought was to create a web service that is triggered when the user saves the web form. That web service would begin the process of validating the data and populating another table with information about what information it b...
We've got an interstitial page that warns people when they're leaving our site. The trouble is it takes querystring parameters and blindly generates a page, thus it's vulnerable to XSS attacks. I've been tasked with fixing it and I want to do it right.
...