|
Please some help the asp pages are shown same on different resulotions.I have porblum that when i change the reslotion then the asp pages are not well designe.
|
|
|
|
|
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.
|
|
|
|
|
hi all,
How to use Hot keys facility for buttons in c#.net.
Thanx in advance...
your
peter
|
|
|
|
|
|
hi all,
When i enter a letter in the text box i have to get the all the
words starting with the letter from the database(sql server) and display
the first value in the text box.
Thanx in advance.........
your
peter
|
|
|
|
|
check and try some googling "AJAX", for an example simply look at google suggest.
|
|
|
|
|
sir,
Thanx for reply . But i didn't understand your reply.Please give me your
suggestion more clearly.
Thank You
your
peter
|
|
|
|
|
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[^]"
Regards,
Hammad Arshad
|
|
|
|
|
Hello members,
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">
on cs page :
protected void AddPupil_Click(object sender, EventArgs e)
{
String[] IDs = Request["pupilIDs"].Split('#');
}
i had also instantaited the variable but , all in vain.
Can anybody please help me asap.
Thanks in advance .
Jai
|
|
|
|
|
Jai Prakash Singh wrote: Request["pupilIDs"]
If this returns null, you will get the exception message you describe. First check the value exists before trying to Split it
---
How to get answers to your questions[^]
|
|
|
|
|
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.
|
|
|
|
|
You can use the ImageButton control instead.
|
|
|
|
|
Thanks
|
|
|
|
|
Hi
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?
Thanks in advance.
|
|
|
|
|
How about
SelectCommand="SELECT field_defaultvalue FROM cp_productfields WHERE field_product_id=" & ProductID & " AND field_type=" & DropDownList & " AND field_Control_ID=" & ddVCAuflag
Thank you
http://www.programmingknowledge.com/[^]
|
|
|
|
|
You can avoid this issue if you use the parameterised queries when you execute the SQL commands.
|
|
|
|
|
hi all
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,,
with Regards
|
|
|
|
|
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.
|
|
|
|
|
i try it using this its working good ,tell me if there is some other way to get this 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
My client recently received CDs from Microsoft for the Newer version of .NET and Visual studio 2005.
I am asked to give advantages and how application developemnt will affect if we use latest version.
Can anyone help me in this
Thanks in Adv
Sony
|
|
|
|
|
Here are some of the really useful features added in VS 2005:
XHTML support
Master pages
Themes
Generics
---
b { font-weight: normal; }
|
|
|
|
|
|
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,
Regards,
srinandan
-- modified at 5:15 Wednesday 12th July, 2006
|
|
|
|
|
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.
|
|
|
|