maybe thats because you have a stiff(fixed) layout at design time. All the pages that you might have made are for some particular resolution. And the tables on which they reside, are of fixed lengths. So, you can simply make those tables to work on %age basis rather than their widths using pixels wise.
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,
-- modified at 5:15 Wednesday 12th July, 2006
Last Visit: 31-Dec-99 19:00 Last Update: 4-Dec-23 20:11