Link To Refer Which Gives Precise Information?
Aug 19, 2010i would like to know about AutoEventWireup="false".
give me a brief description or a link to refer which gives precise information.
i would like to know about AutoEventWireup="false".
give me a brief description or a link to refer which gives precise information.
I'm learning ASP.Net for the first time having spent all my Windows development time doing client applications in VS.Net. As you know, when you drop buttons and text box controls (to name but two) onto a form you can drag-and-drop them anywhere on the form and use the cursor arrows to nudge them to precise locations. When I've created .aspx pages and I select controls from the toolbox they always appear left-justified on the page. There is no way that I can see where I can move the control around the form.
Can someone tell me how I can do that? As an example, it's typical Windows application style to have main form buttons on the lower right corner of a form. But I can't seem to find a way of putting controls anywhere on a page except on the left-hand side. I'm probably racing ahead of myself but I reckon this a reasonable thing to do so could someone briefly describe it to me?
how can i get the effect that when u point over a link an information is shown in a box which tells u what that link does.
its like when you hover over a link a box explains its action.do i need to use the ajax - hovermenuextender for this??
How do i refer a control id from a different ContentPlaceHolder by using inline code?
I have filterParameters which refer a control (txtSearch). Since it was place in different contentplaceholder (ContentPlaceHolder2) , its id could not be find by it name "txtSearch", is there any inline code syntax can help me?
for example,
[Code]....
We have multiple themes and based on the employee login we need to set the themes. And my themes folder including images, style sheets etc resides outside my application ie inside my master page project.When i refer the theme to it i am receiving an error stating its not valid theme.Cant we refer the external themes and set it page.theme?Any idea on this?
View 5 Replieshow to refer shared function in a class , this function itself inside same class
public class cls1
Public Shared Function getDBDate(ByVal pDate As Date) As String
Return Format(pDate, "yyyy-MM-dd")
End Function
Private Function GetDb_Format(ByVal pDateString) As String
Dim d As Date = Me.ParseDate(pDateString)
Return clsDate.getDBDate(d)
End Function
End Class
can i have any other way to use getDbDate function
I'm facing the following issue:
I have a gridview that allows updating. I only want to show the relevant fields to the user. As a result I hide the ID field of the records. But I need this value as a parameter for my update command. Apparently the value is always passed as 0 when the field is set invisible. When the field is set visible, the right value is passed.
I know it is possible to refer to a selected row and its controls, to get their values, even for invisible fields. This is what I want to do when the row is updating, in order to get the ID value of the label control which holds the ID value. How do I refer to the row that is updating? I experienced that the row is not considered 'selected', so the SelectedRow property of the gridview does not do the trick.
When your web.config or app.config file has an appsettings entry, what is the best way to refer to its key in your code file? Developers I have worked with have differing opinions on this. Some say to hard code the string and others suggest that there should be a file containing string constants and in your code, you use the constant as the appsettings key. I would be interested in hearing other opinions on this. What do you do? Why is it the best?
View 4 Repliesrefer to label in aspx from ascx? .......
View 1 Repliesi have couple of aspx pages, both have drop down lists (DDLs) in them. A user first goes to Page1.aspx and choose a value from the DDL-1 and click on Submit button. He is then taken to the Page2.aspx which again has a DDL-2. What I want is to populate the
DDL-2 based on what was chosen in DDL-1. I am not able to figure out how to access something that was chosen on a previous page. I believe I need to create a reference to the previous page? Please help me out with this.
I have two server one server runs (windows 2003 server Moodle opensource - PHP url : [URL] and another server contains Course Matterial video(url :[URL]. so user success full login i have transfer to another server. how can i know it is successful login and it is request comes from xxx.yyy.zzz.aaa ip.
i want write code in C# (asp.net)
This is my master page code
[Code]....
Now what I want to do is, using JavaScript, hide the "phMenu" contents in the childpage. For this, I have written a function called " showHideMasterPageContent " in the masterpage which I am calling in the child page.
My trouble is that, I get a null reference since obviously, when I looked at the source, I see that only the contents of phMenu are rendered and not the phMenu control itself. Now how to refer to phMenu in JS ?
My Exe had a reference to a older version of a dll in the GAC both old & new versions are present in the config file i have given the binding redirect setting to refer the new version of the dll , thouhg when exe is running it is still refering to the old version , could some one shed some light here.
View 1 RepliesI have two Script Controls on a page (actually they are User Controls which implement IScriptControl, but I don't think that's relevant). I have the usual Script Descriptor code so that the server side properties are passed to the client side controls. That works fine.So, I have two text boxes (lets call them A and B) each with some attached Javascript. The Javascript attached to text box A exposes a property "get_SomeValue". In the VB code-behind for text box B (in and around PreRender), I am doing a FindControl to get hold of the ClientId of text box A. Then I am adding an Element Property to the Javascript so that, in theory, the text box B Javascript has a handle to textbox A's Javascript, and so should be able to call its get_SomeValue function. That call is failing - telling me that the method I am calling is not supported.
View 1 RepliesI'm using the following code to get a list of sites from a database and then show a short extract from the posts. The number of posts shown and the length of the extract is defined in the appsettings of the web.config.
[Code]....
I get the following error:
Index and length must refer to a location within the string. Parameter name: length
I have a public shared function and I'm trying to access the values of a text box and a session variable.
I'm getting the error "Cannot refer to an instance member of a class from within a shared method or shared member initializer without an explicit instance of the class."
Is there any way I can get to the values in the textboxes or session variables from within the method?
[code]....
I came across a Visibility bug with IE 8.0 and AjaxControlToolkit for which the fix is posted in the following URL:[URl] For adapting the above fix,
1. Where can i find the Common.js script file
2. After updating the common.js file, how to reference it in page so that the updated common.js file is downloaded instead of from webresource.axd.
At first, I had my datalist being populated by my class 'PM' - I did it all inside the Page_Load event. Since there was a dataset being returned, I could assign different variables to fields in the Datatable, like:
[Code]....
Now, for reasons I won't go into here, I'm changing to an ObjectDataSource, using the same method to do the 'Select' of data... How can I do the same variable assigning, with the ObjectDataSource?
I am using VS-2005.
In my website I have used the html input control with type=file.
The problem is that when I place this control inside an 'UpdatePanel' the 'PostedFile' property becomes 'Nothing' on postback. So in order to get things working I have removed the 'UpdatePanel' and things are working fine.
However, I am interested to know what kind of workaround is required if I were to use an 'UpdatePanel'? In one of the threads at forums.asp.net I found that we need to set a 'PostBackHandler' for the update panel. I have no idea how to implement this. Does it refer to 'AsyncPostbackTrigger' or 'SyncPostBackTrigger'?
Can someone give an idea how to implement this?
When I use code from this thread: [URL] (converted to VB.net), the result for lblStatus is always "nothing"?
It's not clear for me why you use "label", because the fieldtype I am searching for in the gridview, is boundfield.
I am using the Ajax AutoCompleteExtender control, and employing a public shared function to act as a web service without actually creating a web service. This approach works perfectly, however I would like to take this one step further and filter my query from a drop down list, however I am unable to accomplish this. Whenever I attempt to reference the drop down list from within the public funtion, I get:
"cannot refer to an instance member of a class from within a shared method or shared member initializer without an explicit instance of the class."
I have found very limited documentation on resolving this error. Pretty much every solution includes removing the shared reference instead of handling it.
When I remove the Shared reference and just make it private, the AutoCompleteExtender ceases to function completely (i.e. functions a a regular textbox). Here is my code:
If you notice that I am not referencing the @YRQ parameter in my query, that is intentional. I will replace the subquery with that parameter when I am able to get this working.
i have a SortedList.The value of which is a Cart Object that stores a Product object consisting of properties.
i wish to set the datasource to the Product object.
so how can i refer to the Product object?
[Code]....
Refer to datatable columns with database column names?
I am making an online form (literal form) that needs to have a certain function: when the user enters a 5-digit number, the form should automatically query the MS SQL DB and retrieve information associated to that number and populate other form elements (text boxes, etc.) accordingly.
So say the # was 12345 and in the DB, the record matching 12345 has name=Fred. So, when I enter 12345 into the form textbox, the name text box should be automatically populated with Fred in it.
If this is not easily achievable, I guess a submit button beside the 5-digit number text box can do.
I am still learning my way around ASP.NET and Visual Studio 2005, however I have ample experience with HTML, CSS, JavaScript, C/C++. The ASP.NET app is to be written in C#.
How to refer to a control (label) which is on a Formview (in Edit mode). The formview is on a Multiview...
View 3 Replies