asp.net

How to read a word document in asp.net

I want to read a word document in asp.net and i need to convert the document words into bytes .So how to do that ? ...

Using webclient to create asmx or config will cause "The remote server returned an error:(403) Forbidden"

I don't understand why I can't create n test.asmx/test.config file but I could make test.dll or any other file extention using the same codes below: WebClient webClient = new WebClient(); string data = "upload data using webclient."; Stream stream = webClient.OpenWrite("http://152.226.152.162/rightfolder/test.asmx", "PUT"); ...

Install webapplication in a new web site?

How do I install a web application as a web site in IIS6 using the regular Web Setup Project? I do not want to install the application as a virtual directory in "Default Web Site", but a new web site (and if possible create the site during the installation). Also, is it possible to select the ASP.Net 4 Application pool as default in the...

How to get custom control's dropdown index changed event in page?

I'm creating a custom control where I'm extending the GridView class for custom paging. I attached a ropdown in the GridView OnRowCreated event and set the autopostback property of the dropdown to true. Now I want to handle this index changed event of tje dropdown on the page where I'm using this custom control. I tried using Delegate a...

Validating textbox values

I have three textboxes: Textbox1, Textbox2, Textbox3 I have to check if any of the values are same in all the three. ex: I have 1 as value in one textbox. I cannot have 1 in the other two textboxes. I am using the textboxes to input ids. If I enter duplicate id's (for example I enter 1 in Textbox1 and Textbox2 / Textbox3 ), the progr...

ASP.NET page lifecycle - between constructor and Page_PreInit (the "start stage")

There are plenty of articles that explain the ASP.NET WebForms page lifecycle, but what happens between the constructor in the code-behind page getting called and the Page_PreInit event? MSDN refers to this time as the "start stage" of the page. I am debugging some code in which there is often a moderate delay between these two events (...

Cannot select the ComboBox item

I have two Comboboxes where the second one is dependent upon the first one. When the SelectedIndexChanged event of the first Combobox fires then the second Combobox will be enabled. After the event, the second Combobox is enabled but I cannot select the ComboBox item. EDIT I use Dev express Tools First Combo I load in Page_Load Even...

How can i re-direct to the main window after logging into a website from a popup window

I have an asp.net website StartPage that does not require signing-in, in order to view it. On this StartPage, there is a Login linkbutton that when clicked opens a small Login popup page. Unfortunately, after the user has entered their loin credentials and clicks login, the destination page loads in the same popup window which is not my ...

Problem in jqGrid sorting

I have a session data which I am binding to jqGrid. I want to implement sorting on jqGrid. For this I converted my session data like DataTable dtProduct = (DataTable)Session["ProductSearchResult"]; dtProduct.DefaultView.Sort = sidx; But sorting is not yet working. If I am missing any other step please tell me. ...

Button Click Event Fire Only Second Click

In ASP.NET My button click event doesn`t work on first click. But it works on the second click only. I hope u can help me. ...

Where can I find video tutorials for the following .Net topics?

Asp.Net Pipeline Transaction Management in .Net/Sql Server ...

Regular Expression

Hi I need write a regular expression for RegularExpressionValidator ASP.NET Web Controls. The regular expression should ALLOW all alphabetic characters but not number and special characters (example: |!"£$%&/(). Any idea how to do it? thanks ...

Searching in multiple tables using MS SQL Server 2000

We have a database with a lot of information about Persons. I won't post the entire database structure because it is too big, but it looks something like this: Person ID Name Street City State Country Language LangCode Language Interest ID LastChangedBy LastChangedOn LocalizedInterest InterestID LangCode Description PersonInterest...

ASP.NET Listbox not changing index

Hi, My question is probably a simple one to people used to ASP.NET, So here it is: I have a webform in a master page that has a listbox which populates itself with numbers which serve as unique id for my objects. The only problem is that the selected index property of the listbox is always -1 and it automatically deselects itself, no ma...

C# ADO.NET Entity

Hi all Here is the question : I have following entities: Every time i update or insert a transaction i would like to autodetect the category depending on ReferenceMappingExpression or DescriptionMapppingExpression in CategoryMappings Entity. I mean i want to match Transaction.Description to CategoryMappings.DescriptionMapping and if i...

asp.net in chrome getting a strange focus_change nikkomsgchannel error

Very recently I started to get some strange focus_change errors show up in the console window in chrome when navigating through my asp.net web application (details below), I cant find anything on the internet that references a "nikkomsgchannel" and have no idea why my application is making a request to this external resource (it never us...

How to exchange session variables between webmethods in asp.net webservices

I have the following code to store session variable in one webmethod and retrieve it in other webmethod but the value displays null when i try to retrieve it. [WebMethod(EnableSession = true)] [ScriptMethod(ResponseFormat = ResponseFormat.Json)] public bool SubmitList1(string businessname ) { Session["Company_Name"] = busi...

How to put two data sources in the same listView?

I have a search page get data from two sources: 1- my data base 2- web service function How to put this two data sources in my list view? ...

Can I view a flash image inside an iframe tag?

Can I view a flash image inside an iframe tag? ...

Ajax update panels and styles

I have a button styled with js and css and its inside an update panel everytime i click the button (do postback) it loses style ? pretty sure its an easy issue here , any idea ? <html xmlns="http://www.w3.org/1999/xhtml"&gt; <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManag...