asp.net

Any JavaScript or jQuery Method to Load JS files synchronously ?

I'm loading user control through jQuery in my asp.net page. User control contains JavaScript files, while loading the user control all my js load at one time which are dependent on each other and they tend to give error while all file load at one time. So I want that my JavaScript file to load synchronously one by one , as one file ge...

How to open a popup page that has parameters(calculated in button event) in button event

How to open a popup page that has parameters(calculated in button event) in button event ButtonClick() { string id=TextBox.Text; /////HERE i want to open a popup as "Index.aspx?ID=id" /////// } PLESE RESPOND SOON ...

Invalid API key specified!

I am new to the Facebook and trying to integrate it with my website. Today, I have tried to use it usng FBML It display the login button but when I click that button it display "Invalid API key specified The application you are trying to access does not exist or has been disabled." I do not what the problem. Could you please help me ...

UpdatePanel slow server reaction

I have an updatepanel which displays or hides a new control when I click a checkbox. But the problem is that is is very slow. From the click of the checkbox until the visual reaction occurs almost 2 seconds are gone. I think this is due to the asynchonous callback. The client seem to wait 1-2 between each callback to fire. Is this true?...

Export to excel issue...........

I have a asp.net page in which i am exporting gridview records to the excel files. But in some records only ############# is displayed in the excel file & when i view that record in function bar of the excel i am able to view correct record. So what can be the problem? Waiting for your reply.Thanks a lot in advance. Thanks Mehul Thakka...

When debugging with firebug, no error

I declared global variable in js file which is filled after jquery.ajax call. Everything works fine when I put breakpoint to see if the global variable has its value with Firebug, I can see it, no problem. But when I remove breakpoint and try again, error with variable 'undefined' shows. I also tried to put result into hidden field and t...

MVC Custom Control?

Hello! I am trying to figure out how to use/create a custom control in ASP.NET MVC 2. I created a custom control earlier and compiled it (ccontrol.dll), the control renders a div, textbox and a button + some javascript in order to post a comment on the website. It could be a static aspx page that i wanted to allow my visitors to add a ...

Howto remote debug a vs2010 project on iis6?

Hi, i made a asp.net project in VS2010 with .net 4.0 everythink works fine. but when i copyed it to the server (IIS6 MS server 2003) it throws some exceptions and i dont know why, so i want to remote debug it, but i dont know how! so how can i remote debug? ...

asp.net tree control

hi, i hav created tree control using asp.net..also written TreeView1.SelectedNode.Value.ToString() function in label to display corresponding id but,here id is displayed as 0 for all parent nodes for all child nodes id is displayed as 1 instead i should display parent node 1's id as 1 and parent node 2's as 2 and so on also child node s...

Global.asax file not giving Exception Message

Hi Here's my problem I have some code and I'm using it to send an e-mail with the last error details but all I want is the (Inner)Exception Message to be displayed in the email with the URL Here's my code Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs) ' Get current exception Dim err As System.Exception =...

how to Embedded Code Blocks in ASP.NET Web Pages?

where we use <%@ %> <%= %> <%# %> etc. what else asp tags can be added in asp.net web pages? ...

can i use window application vb dll in .net webapplication

i am trying to use vb 6.0 dll which is for window application in .net webapplication so tell me can i use it if yes then please tell me how ...

How to use selectedIndexedChanged event in dropdown?

In list of dropdown i have added some text and i want that if i select any particular text then it fired selectedIndexedChanged event but its not firing.please tell me how it will fire using C# ? ...

Calling JavaScript Functions

I am trying to call some javascript functions which I ahve written in some file. Eg. function OpenPopup() { alert("OpenPopUp"); return false; } when I call this from button from OnClientClick = "OpenPopup()" it is not called but when I put this function on MasterPage it is able to call the function. I added this is the ...

Idea for this view the list item horizontally in asp.net page.

i need to display the list one by one in the same line. It mean instead of binding the value in the row i need bind it in new column first row value. Is that any control available to view the item horizontally . i have my data in data table. ...

Statement if InnerException is null then don't show

I need to show the InnerException message if there is one and if not then i need to show the Message of the primary exception Here's what i've got Dim err As System.Exception = Server.GetLastError If err.InnerException.Message = "" Then Dim ErrorDetails As String = err.Message Else Dim ErrorDetails As String = err.InnerException.Me...

DataBinding problem

I have a DataList Control as follows <asp:DataList ID="DataList1" runat="server" DataKeyField="FruitID" RepeatColumns="2" Width="387px"> <ItemTemplate> <asp:Image ID="Image1" runat="server" Height="104px" ImageUrl='<%# Eval("ImageUrl") %>' Width="135px" /> <br /> Item ID: <asp:Label ID="lblItemID" runat="server" Text='<...

How to set custom property of webcontrol be translateable?

Hi all, I have webcontrol which has custom property. The property is set as attribute directly in aspx page. I use VS.addin "Resource Refactoring Tool" to generate resource files from aspx pages. Working well so far.The thing is it does not pick my custom attributes into translation. So I am asking, is there any specific attribute t...

C# Problem authenticating webservice between two webapplications

I'm working on a webapplication which runs central at a company. This webapplication needs to make a call to a service which is part of a second webapplication. In the central webapplication i have this piece of code; var clientUri = "http://website.localhost/Services/Info.svc/account"; var uri = new Uri(clientUri); var networkCredenti...

Is there any way to control sent mail in ASP.NET?

I have two questions. First one is simple: Is there any way to control priority of mails while sending those in ASP.NET? For example i have a dating website and there are few types of mails send. One is registration mail and other are less important like new message in inbox for those who want this information. There are many users on w...