i have a asp.net mvc website which runs a number of queries for each page. Should i open up a single connection or open and close a connection on each query?
hi, i am working on a small search-engine app with asp.net 4.0. the indexing process can index each URL founded in each document and this recursively performed for each other. now how i can terminate this process when i want or when user clicked on stop browser button?
i All,
I have deployed my site on internet and I am facing some formating issues, it's working fine in IE8, Firefox and Chrome but not in IE6.
I have used asp.net 3.5, please let me know where I have done mistakes.
http://www.anujtripathi.net/AboutMe.aspx
and the same in image gallery menu, as I don't have 10 reputation point I can't paste another URL here.
Thanks
A followup to another question I did, I've done some more digging but I am still coming up dry. Is there any way to include .HTML/.ASPX files as 'embedded resources' into an ASP.NET MVC application? I've found lots of examples of using string resources, but never other files entirely.
I have an ASP button for which I have set the OnClientClick property to display a javascript confirm message. However, I only want this message to be displayed AFTER all of the client side validations have passed.
How can I do this? Essentially, I believe that I need to force Page level validation from the client and then, only if it passes, display the confirmation box.
i want to store images of my employees with thier profiles in sql server database.
i have following reservations.
whether i should compress images or not if yes please provide me sample code or article
how should i retrieve images efficiently, i an afraid of asp.net application performance issue. i think with ten thousand employee records it will halt or slow down
For eg..in Stackoverflow site, after giving answer, if we are refreshing the page, it displays the answer with orange color and turns to white beautifully?
How we have to do this ? Can it is possible in asp.net - C# ? .. Thanks
Given the following markup for a GridView column, why are my image buttons showing up as left aligned?
<ItemStyle HorizontalAlign="Center" Width="55px" />
<ItemTemplate>
<asp:ImageButton ID="removeButton" runat="server" ImageUrl="~/Images/Icons/x-m.png" CommandArgument='<%# Eval("ResourceId") %>' AlternateText="Remove Button"
onclick="removeButton_Click" />
</ItemTemplate>
Hello I want to utilise Microsoft indexing service , but I dont like to fact they you need to manually index the files and build the catalog. Is there a way to automate this eg, call an api from code, as a scheduled task , or perhaps command line commands that will index a folder and built the catalog. This is for a searching a document repository built using asp.net
Thanks
I have a form on my web page, it allows to submit many queries to my website,
every query is on a separate line in TextArea. Because waiting for all queries to complete is
too long I would like to update the web page after every query completes - send result of one query to a web browser, new result should be appended to old results that are already on the web page.
How to do this in ASP.NET MVC 2?
I will be grateful for helpful responses.
i have a username= LICTowner.
i need to get the prefix from the word LICTowner i.e LICT.
how to split the word and get the 4 letter prefix.
in asp.net using C#
work on vs05 asp.net .....My gridview have 10 rows .After select a gridview row ,my browser scroll up on gridview header ......i want scroll don't move....how to set scroll fixed on selected row
my team is starting a new project on asp.net mvc, and we are wondering what technology for data access to use, how do you think which one is the best, who has the best performance ?
which one is easier to use and to maintain ?
I have a form on my web page, it allows to submit many queries to my website,
every query is on a separate line in TextArea. Because waiting for all queries to complete is
too long I would like to update the web page after every query completes.
How to do this in ASP.NET MVC 2?
I will be grateful for helpful responses.
I would like to display the contents of a DataTable, divided into several groups depending on the value of one of the columns. So, if I have a DataTable (from SQL query) with:
GroupID Name Description
1 foo bar
1 one two
2 some thing
I would like to place all records containing GroupID 1 in one div, all records with GroupID 2 in another div, and so on. How can I do this?
I'm writing in ASP.NET 4.0, with C# codebehind.
Lets say I have
class Person
{
public Person(int age, string name)
{
Age = age;
Name = name;
}
public int Age{get;set}
public string Name{get;set}
}
and I would like to create a method that accepts a string that contains either
"age" or "name" and returns an object with the value of that property.
Like the following pseudo code:
public object GetVal(string propName)
{
return <propName>.value;
}
How can I do this using reflection?
I am coding using asp.net 3.5, c# 3.5
I have a table with 5 rows and 2 columns. Each cell contains a text box. I want to show error if one of the text boxes in each column is empty. I want both text boxes in a row shld be filled or both shld empty.
How can i do this via Asp.net validation controls?
How the sites like stackoverrflow using the third parthy login id(gmail,blogspot), to login the site?
How to do this in asp.net? Give me a idea to implement this in to my application.
i don't have idea from where. I have to start this.
Hi,
I tried blink the rows of ASp:Gridview. Have succeded in IE but not working in FF and safari. FF error console says "Error: gridRef.childNodes is not a function" Can anybody tell me where exactly I am wrong...
The Javascript used is:
');
for (var i=0; i
and on my gridview_rowdatabound I have
e.Row.Attributes.Add("blinkingRow", "Y");
I have a asp:GridView with a HyperLinkField. It's DataNavigateUrlFormatString property is set to View.aspx?id={0}&isTechnical={1}
Select command of appropriate SqlDataSource returns columns of type INT and BIT (from SQL Server 2008).
So displayed string becomes something like View.aspx?id=1&isTechnical=1. But I want to display isTechnical=true|False, i.e. Convert.ToBoolean(row["isTechnical"]).ToString().ToLowerInvariant().
How to implement such conversion in page markup?
Restaurants Menus Products
RestaurantID MenuID ProductID
RestaurantName MenuName ProductName
RestaurantID MenuID
<asp:DropDownList ID="DropDownList8" runat="server" DataSourceID="ObjectDataSource3"
SelectedValue='<%# Bind("MenuID") %>' Field="RestaurantName" DataValueField="RestaurantID">
Gridview has GetAllProducts method
ObjectDataSource3 has method GetAllRestaurants.
I want to edit and update Menus of each Product. But I want to show RestaurantName indtead of MenuID..
Thanks
I get this message at runtime of ASP.NET 2 page :
The page 'MyFolder/blabla.aspx' cannot use the user control 'MyFolder/MyControl.ascx', because it is registered in web.config and lives in the same directory as the page.
Of course I can separate them to 2 different folders and thus solve the problem, but the question is :
WTF !?!?! Why I can't put them in the same folder ?!
Why can't they all .. get along !?! :)
Thanks
Is it possible to check the number of existing available connections a wcf service has? programmatically?
I want to see if connections to the web service were closed properly in the ASP.NET code.
thanks