Hi,
I have one asp.net application, and now i am using dataset for data manipulation. recently i started to convert this dataset to List collection. But, in some places i can't work. One is that in my old version i am using datarow[] drow = dataset.datatable.select(searchcriteria). But in List collection there is no method available for...
I am fairly new to web development but currently hands on self learning.
I am currently building an asp.net site using visual studio 2010 with c#.
I have a master page and an external css style sheet and all content pages are aspx.
I am looking for tutorials on implementing css for my particluar environment. Everything i find shows css ...
how to set text property assigned to the control created dynamically usiong reflection?
Type type = Type.GetType(strFullName);
object instance = Activator.CreateInstance(type);
ctrlTemp = (Control)instance;
ctrlTemp.ID = "Hello";
ctrlTemp.Text???
Panel1.Controls.Add(ctrlTemp);
...
Hi
I am having a problem passing JSON from PHP server and ASP.NET server.
I am getting Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 48 bytes)
I am looking for a way to compress the JSON.
Thanks
...
The examples given below could make little sense, but it is because I am focusing on syntax.
Let's say I have such C# code:
public static class Foo
{
public const string Bar = "hello world.";
}
Now, I would like to use Foo.Bar constant in ASP.Net instead of typing each time "hello world.". So I used this syntax:
<p><%= Foo.Bar %><...
this is the code for email sending but this gives error in try block...
protected void Page_Load(object sender, EventArgs e)
{
EmailUtility email = new EmailUtility();
email.Email = new MailMessage();
string body = email.GetEmailTemplate(Server.MapPath("~/EmailTemplates"), "test.htm");
EmailMessageToken token = new Emai...
i have a weird problem ! i have ASP.NET website and i have a page with page_load which never get executedno matter what i do ,i deleted the page_load and doubled clicked the aspx page it generated page_load again i inserted my code inside and made breakpoint but it never get hit !
All other Methods gets hit normal like button click and...
I have a web application which our customer use it all day. Some times, i need to stop or restart application. When I do it, some customers' work is interrupted and this makes them nervous.
I want to make a notification system that, appear on application and inform customers about shutting down of system.
How can I make a system like t...
i am showing number of views and comments in one label to the user but i want to show view or comment if number of view or comment is 0 or 1 for that i am using if else statements but that is a little bit longer are there any shortcuts for doing that.
...
I want to add a menu bar with drop down list in the web page so that the user can select the desired font size,font style and font color for the text they need to write in the page for further post.How to do this?
Can you guys please help me .....
...
When trying to ftp a build of a ASP.NET site, I sometimes get this error. Is there way to prevent this, a configuration in web.config of IIS that prevents dlls being locked?
...
I have an array of urls containing locations of pictures on page load. I need to show them to the user in an <asp:img> with a 5 second time interval.
Can this be done with <asp:timer>, or is there any way to do it?
...
Can you use the new Microsoft Chart Control for .NET Framework inside a usercontrol? Bacause when i take a working chart from my page and then copy it to a usercontrol the picture is blank very weird. Is there something wrong in my chart settings?
...
hi,
i have few websites on servers around the world that run a certein function and i want that the site will send the output directly to my computer (no neccessary my computer, it can be my other website that is located in my country, the important thing is that the data will arrive form the site to my location on the globe).
thanks,
yi...
Hi Guys
I need to DISPLAY the text in an asp textbox as upper case, regardless of whether the users caps lock is on or not – is there some property or method I can use?
I am converting the text using the .ToUpper method on submitting to the database anyway, but I have been asked to also DISPLAY it in upper case before that when first be...
hi there
i think i sort of know the answer to this, but there are always many ways to do things (some of which are clearly wrong :) )...
I have a little recursive function to find an employees manager's id. this is being used in a import script and it may be that the persons immediate manager has left (been disabled) so we need to find ...
hi..
when I'm using file upload control i just get only the file name but i want to get the full path of the file location..
how to get full path from the file upload control in asp.net?
Thank you..
...
I have set up custom error on my server and i'm redirecting to a page as shown below
<customErrors mode="On">
<error statusCode="500" redirect="/servererror/default.aspx" />
</customErrors>
When it gets to the page servererror/default.aspx I need it to send an e-mail to me with the exception.message
Here's what i'm trying but it...
I was wondering it is possible to turn off the canonical hostname URL Rewrite rule from the URL Rewrite 2.0 IIS 7.5 Module.
I'm locally developing on a IIS 7.5. The setting of this URL Rewrite rule is set in the web.config.
This is how I deploy: I'm using Webdeploy to publish my web application. The new web.config transforms, which was...
hi
I am using jquery ui tabs and content of tabs are asp.net forms
my problem is that if i put updatepanel in content page Ill receive unknown error
and without update panel clicking a button cause to redirect from my multi tab page to page which was in the tab and contained button
...