I am using Wizard control in VS 2008. I searched the next button coding from net.vI want that if user id and password not match then wizard page should not move to the next step.
Is there a way to check if a String meant for a path has invalid characters, in .Net? I know I could iterate over each character in Path.InvalidPathChars to see if my String contained one, but I'd prefer a simple, perhaps more formal, solution.
Is there one?
In Asp.net (c#),i'm not able to catch exception(FileNotFoundException) properly... i don't know the reason..Actually File s not there..But catch statement fails to catch the exception..
here is the code..
try
{
System.Drawing.Image imgg1 = System.Drawing.Image.FromFile(Server.MapPath("").ToString() + "\\images\\img1.jpg");
}
catch (FileNotFoundException)
{
Response.Write("<script>alert('Please Select and upload Student's Photo');</script>");
}
How remove "localhost:portno" when running an asp.net website under iis?... When i browse my virtual directory i can http://localhost:120/mine/Forms/Clients.aspx.....
What is the CodePage for DBCS so I can encode an xml string and show it in a asp.net text box? I don't think I should have to convert the characters myself when Server.HTMLEncode will work if the string is DBCS.
Thanks!
If you stick to managed code and standard coding (nothing that does unconventional things withe CLR) in .NET, is there any reason to manually invoke the GC or request to run finalizers on unreferenced objects?
The reason I ask is thaty I have an app that grows huge in Working Memory set. I'm wondering if calling
System.GC.Collect();
and
System.GC.RunFinalizers();
would help, and if it would force anything that wouldn't be done by the CLR normally anyways.
I have some DropDownList controls where the list is very large, so I would like to have a means for the user to filter the list, either based on other fields, e.g. region, or on the first letters typed in a textbox. How can I achieve this in ASP.NET? Is the an open source control out there that will help me?
Hi All,
Does anyone know where I can get the API or SDK provided by BlackBoard LMS for .net ?
I have searched over their web site, but didn't found anything apart from documents.
Please help me to get those APIs or SDK.
Thanks in advance.
If someone is hosting something in Azure and a new KB comes along and requires the .net framework to be updated, how is this handled in Azure? Do they automatically update it for you or give you the option to remain at the older version?
I'm more interested in how the versioning is handled, rather than uptime etc. Do they force you to stay at the most up to date version of a given version number? As in, the most up to date version of 3.5, etc.
I am using vb.net 2005. i am trying to set report groupings of a crystal report at runtime based on user defined options. MSDN says this:
Dim FieldDef As FieldDefinition
FieldDef =
Report.Database.Tables.Item(0).Fields.Item(comboBox1().Text)
Report.DataDefinition.Groups.Item(0).ConditionField = FieldDef
but error shows invalid group number
how to solve this?
I'm building an academic work that consists in a turn-based strategy game. I'm using XNA 3 for the graphics but didn't decide what to use for AI.
I was considering to use P#, a Prolog interpreter for .NET but i found it a bit poor. Do you anything better for game AI than Prolog (maybe Haskell?) or a better interpreter then P#?
I want to access the raw HTML code that my ASP.NET System.Web.UI.Page is about to render.
How can i do that? Is there a property or method like System.Web.UI.Page.HTML or something like that.
I know I could loop through the Controls List of the page and get access to all the Literal Controls etc, but I was wondering if there's a direct property or method that can return me the raw html, which I can modify just before rendering the page.
The default asp.net calendar renders with 6 displayable weeks, the last week is always the 'next' month and i dont care about it. Is there a way to display only 5 weeks?
I know you can do it with an WMI event or overriding WndProc and looking for the right messages, but i was wondering if there wasn't something hidden in the net framework that makes this task easyer.
I'm wondering if it is possible using .NET to call a remote web service and in effect specify which IP the call is made on.
I'm consuming a service that limits the number of calls I can make based on IP. The service costs in the 20k range after the free limit is used up. I'm very close to enough calls but not quite there using the free service. My server has 3 IP so I could in effect triple the number of calls I could make to the remote service by changing the IP.
Hi,
Is there a free version of IIS to demo ASP.net applications on that will run on XP?
(i.e. or does one need a machine with Windows Server and it's license for a demo - e.g. if a prototype was built in VS2010 but one wanted to demo it on another PC)
I have a ASP.NET MVC website hosted in IIS.
Sometimes I push changes and user's browser may still using the previous files, causing functionality problems.
It is because the browser is caching those files right?
What can I do to ensure the user browser loading the updated files??
Thanks!
How can I open a new browser tab in ASP.NET and write to it? I don't want to redirect to a page but I want to write/output the content directly from source.
I'm using LinqToSql like this with a CheckBoxList in ASP.NET:
var teachers = from x in dc.teachers select x;
cbl.DataSource = teachers;
cbl.DataTextField = "name";
cbl.DataValueField = "teacherID";
cbl.DataBind();
I want to display both "firstname" and "name" in the DataTextField however.
I found this solution but I'm using LINQ:
http://stackoverflow.com/questions/839223/concatenate-two-fields-in-a-dropdown
How do I do this?
Hi everybody,
I need to write an ASP.NET application which must handle a very large number of transactions per second - as many as 5000 users may transact at the same time. I think I will use WCF in back to communicate with SQL server. But in front, can IIS handle 5000 users at the same time effectively, or is there any simple way to host my application outside of IIS?
I have the following asp.net custom validator:
<asp:CustomValidator runat="server"
ClientValidationFunction="valUCRRequired" ID="valUCRRequired"
ErrorMessage="Field 7-Date/Time Between is Required"
ControlToValidate="DTE_FROM" />
Notice that the ID and ClientValidationFunction have the same value. I want to do a regular expression search where they are the same. Right now, I am just searching for all CustomValidators.
Is it advisable to implement url routing for an asp.net(webforms) website which is one year old... What are the factors to be considered before implementing....