asp.net

asp.net gridview textbox value

How to get gridview itemtemplate textbox value in javascript? ...

Finding the IP Address of my system on asp.net page

Hi Guys, I need my system IP address. I've used Request.ServerVariables["remote_addr"] but it is being provided IP address of my network(intranet) not my local system ip. Actually I've set session state off and want to identify the user request. So i want to fetch the system IP not router/network IP. Please tell me the appropriate solu...

where the asp:controls values are stored if enableviewstate is disabled ?

I have used a checkbox and a button in my demopage. In checkbox AutopostBack property is false and I have used a server side event checkbox_checkedchanged() on <asp:CheckBox ID="CheckBox1" runat="server" oncheckedchanged="CheckBox1_CheckedChanged" /><asp:Button ID="Button1" runat="server" Text="Button" /> codebehind...

jQuery Geting More Data with execution faster

Hello, I am creating social network site like facebook. I want to create search box like facebook search box with member photo, Member Name and Member's other detail. I have already created that control with jQuery Link is http://loopj.com/2009/04/25/jquery-plugin-tokenizing-autocomplete-text-entry/ Demo in http://loopj.com/toke...

what event triggered when a page themes changed

Hi all what event triggered when a page themes changed at dynamically? i faced this question in an interview.. ex: In orkut when we press the themes link/button we can get what we wanted.. thanks saj ...

Asp.net website DLL versioning

Hi there, We have a DotNetNuke application for which we build a number of modules and lately it seems a specific problem keeps coming up. The modules we build make use of a third party DLL from Telerik. Some of the older modules use the DLL that targets .net 2.0 whilst others use the DLL that targets .net 3.5 We now get conflicts w...

decimal values in a gridview

How to display a decimal value in the gridview. Say if user enters a value 0.5, it got inserted into DB as 0.5, but while diplaying it back on the the front end , it is displayed as 0.50. How to avoid this scenario. And also the user should be able to enter 5 places after the decimal point. Like 0.12345 is acceptable and 0.123456 is no...

Storing HTML in SQL and accessing it throgh Gridview

I am storing small webpages in html format in a varchar(max) column in MS SQL server 2008. Now I want the gridview to show the column as a button/hyperlink such that when I click it, I will be redirected to a new webpage which will render the html in the table corresponding to that row. I tried using the buttonfield control but there d...

formatting enum in gridview

i need to display the name of enum in gridview by data table returns its numeric value i am using this for other columns <asp:BoundField DataField="Name" HeaderText="User Name" /> i need to use it for enum to display the string value of enum Gender <asp:BoundField DataField="Gender" HeaderText="Gender" /> ...

contains function in asp.net

hi,i am trying to increase count by comparing two strings using Contains function. My code is, int count = 0; string strSize = ""; for (int i = 0; i < dts.Rows.Count; i++) { strSize += dts.Rows[i]["sizeid"].ToString() + ","; } if (strSize.Length > 0) strSize = strSize.Substring(0, strSize.Length - 1); // After execut...

how to use like keyword in sql query

I have a sql query shown below i want to use the variables streetname, keyword1,radius and perform the sql query using like keyword but their is some problem with query syntax can anyone help protected void CreateXML(string keyword1, string streetname, string lat, string lng, string radius) { SqlConnection con = new SqlCon...

Asp.Net button onclientclick problem

Hello, I have a strange problem, it seems, that I don't know how to solve. I have a button like this: <asp:Button ID="btnSave" runat="server" ClientIDMode="Static" Text="Save" OnClientClick="return ConfirmSave();" OnClick="btnSave_Click" /> If I write my client function like the following, it works as expected: function ConfirmSave()...

Streaming wcf service returning corrupt streamed file

Hi Guys, I have a WCF service that returns a stream object. But for some reason i get a corrupt zip file back which i am streaming. All the code is below Please advise Contract Code [ServiceContract(Namespace = "http://schemas.acme.it/2009/04/01")] public interface IFileTransferService { [OperationContract(IsOneWay = false)] F...

tooltip for html.RouteLink

hello all, is it possible to write tooltip for html.RouteLink? my link: <%= Html.RouteLink("<", new { page = (Model.PageIndex - 1)},null)%> Thank and take care, Ragims ...

how to assign a control property value from a global variable in page code?

Greetings, I have a control and list of variables and I want in the control property to be assigned to the variable value directly in the page not from the back code, something like this My global variables public string Banana = "banana_pie"; public string Apple = "apple_pie"; in my custom control instead of: <uc:LoadPie id="pieB...

What is the difference between AJAH and AJAX?

While reading about ASP.NET Ajax toolkit I stumbled upon the term AJAH. What is it and how is it different from Ajax? ...

C# LINQ unable to enumerate matrix

I declared a 3 X 3 Matrix int[,] matrix=new int[3,3] { {1,2,3}, {4,5,6}, {11,34,56} }; when i try to enumerate it like var diagonal = matrix.AsQueryable().Select(); I am unbale to convert it as enumerable collection.How to do that? ...

Filter EntityDataSource for DateTime field

Hi All, I am using and EntityDateSource and I add where condition to filter the data at runtime and then bind the grid to the dataSource, but I am getting following error:- The argument types 'Edm.DateTime' and 'Edm.String' are incompatible for this operation. Search condition looks like this:- it.[MyDate]='8/13/2010 00:00:00' Any...

I'm an aspiring developer who wants to build large systems like PayPal. Which path should I follow?

I'm a 2nd year computer engineering student in Ethiopia, Africa. We have taken C and C++ and i've taught my self HTML, CSS, PHP(cakePHP framework too) and little javascript, JQUERY and mySQL to develop small systems just like blog. But I want to build large systems that are secure and robust. I am very humbled to see very smart and exper...

How to add code-behind code to umbraco templates?

Hello, I am getting started with umbraco 4.5.2. I have my site up and running, and I am designing templates using some ASP.NET controls. How can I respond to events from these controls? For example, I have added a Button to a template. How can I edit the code-behind file to perform some action whenever the button is clicked? Thank you...