please search "AJAX" on google. And also google has used the same technique in "Google Sugest". They do the same thing as soon as you yype in some thing then at the same time the start to give you your results etc. check it out. I have found this link may be this can help you "http://www.google.com/webhp?complete=1&hl=en[^]"
I am getting "Object reference not set to an instance of an object." error when i am clicking one of my buttons AddPupil_Click to add pupils from the selected pupils checkbox from a grid.
My code goes as follows :
on front page
<asp:button runat="server" id="AddPupil" cssclass="" text="Add ticked pupils to group" onclick="AddPupil_Click">
Hello everybody! I have the next problem, I have an Image control on Web Form and i want to make some event when I click on that image, for example to jump on another page. But there is no OnClick or Click events in Image control.
I am developing a UserControl, I save this user control code to the database, which will be loaded dynamically to the Page.
In my user control code consist of following lines:
<asp:SqlDataSource ID="GetDataFromDatabase" runat="server" ConnectionString="<%$ ConnectionStrings:sConnectionString %>"
SelectCommand="SELECT field_defaultvalue FROM cp_productfields WHERE field_product_id='ProductID' AND field_type='DropDownList' AND field_Control_ID='ddVCAuflag'"
ProviderName="<%$ ConnectionStrings:sConnectionString.ProviderName %>"></asp:SqlDataSource>
At this moment, I am manually puting this data to data
base using "INSERT INTO" statement.
But I get following error:
Incorrect syntax near 'ProductID'.
This is because single quotation mark around ProductID (field_product_id='ProductID').
If I change this single quotation to double quotation (e.g. field_id="ProductID") then this works okay.
But in that scenario, SELECT statement fails while execution.
Can anyone please let me know how can I achieve both successfully?
i have problem ,i have a datagrid,and in my datagrid i have textboxes ,now i want to get the value from the textbox on the server side,how can i get the server control textbox value on the server side,,
Two common steps need to be done:
+ Get reference to the TextBox control, you can look into the Items collection of the datagrid control if the textbox is placed in the item row, and use the FindControl method.
+ Read the textbox value.
IMO, there are two basic ways to read the value at the server side:
+ Get reference to the textbox and read the value, you can either use the FindControl method or the Controls collection.
+ Use the Request object to read the posted value under the textbox name.
hi all, i am bind a formview with datasource if the datasource is empty i want to formview is in add record mode. if datasource is not empty its work each(edit , add new ) in proper way.
pls give the solution ASAP,
Basically, to change the current mode of the FormView you can use the ChangeMode method with the FormViewMode.Insert . Here, if you programmatically bind the datasource to the control, you can simply do a checking on the length of the datasource. In case of using a datasource control, you can create a handler for the Selected event of the datasource control, then you can check the AffectedRows to see if you need to change the mode of the FormView.
There are a couple of the entries in the Options dialog box which you might be interested in, you can open from the Options dialog box from the Tools menu:
+ In the left pane, choose the Html designer.
+ In the left pane, choose Text Editor | HTML.
I m working on a project in asp.net 2.0.
I want to see "web form designer generated code" in dotnet 2.0.
In dotnet 1.1 we can see this in code behind file(e.g cs file). But in dotnet 2.0 code behind file does not show this.
How can we see this................
Do good and have good.
Last Visit: 31-Dec-99 18:00 Last Update: 3-Oct-23 15:11