|
Did you follow the steps by steps how to do in AJAX?
Any problem when calling AJAX function?
<< >>
|
|
|
|
|
I think i really need to study AJAX .
No I had done it using OnSelectedIndexChanged attribute
Any way thanks for your guidence.
Regards
rahul saini
|
|
|
|
|
Okie...you're welcome
Happy coding
<< >>
|
|
|
|
|
Hi Friends,
I have a TextBox field in LoginView Control of the ASP 2.0 with TextMode="Password", I want to set its default value as we can set with TextMode="SingleLine". I tried but couldn't. anyone of you can help me in this?
Regards,
Abubakar
|
|
|
|
|
hi there:
Setting value for password textbox is different from normal...try below... txtpasswd.Attributes.Add("value", "the password we wish to set");
<< >>
|
|
|
|
|
Thanks,
I have done myself, here is code for that;
((TextBox)((Login)LoginView1.FindControl("LoginID")).FindControl("PasswordID")).Attributes.Add("value", "passsss");
|
|
|
|
|
One day I'll make an adult website with ASP.NET. Is is possible to make
an adult website with ASP.NET?
Anyone with suggestions?
Thanks in advance.
ASP - AJAX is SEXY. PERIOD.
|
|
|
|
|
Strange question....You can do anything with ASP.NET on the web
Mubashir
Every job is a self portrait of the person who did it.
|
|
|
|
|
Bulky Fellow wrote: adult website with ASP.NET?
Do you think ASP.NET is only for non adult websites ?
|
|
|
|
|
so stupid Question
tkml123
|
|
|
|
|
Im working on Webapplication in Visual C# .Net and have database Table for CategoryId,Category and CategoryImage...
i want to display when the user Add any Item in the Database and Choose anyCategory From Dropdown list it display the Respective picture for that Category
sheeba
|
|
|
|
|
Sheeba,
First make sure that your images are inside the application folder.
In your table which information on your categories have a column added with Path and add the path of the images only.
Now iam assuming you are using datagrid.
In your datagrid add a template column and in that add an image control,
datagrid
columns
templatecolumn
itemtemplate
image......
now in your image you can bind the name of the image which is in your database accordingly.
like: imagesource=<%#DataBinder.Eval(Container.DataItem, "path")%>
Try out, and it works for sure
Gautham
|
|
|
|
|
Sheeba,
First make sure that your images are inside the application folder.
In your table which information on your categories have a column added with Path and add the path of the images only.
Now iam assuming you are using datagrid.
In your datagrid add a template column and in that add an image control,
<datagrid>
<columns> <templatecolumn>
<itemtemplate>
<image......>
now in your image you can bind the name of the image which is in your database accordingly.
like: imagesource=<%#DataBinder.Eval(Container.DataItem, "path")%>
Try out, and it works for sure
Gautham
|
|
|
|
|
You can do one more thing inorder to show the images for the particular item.
In the databse table insert the name of the pic which you are uploading. I am assuming that you are uploading the pic in particular folder.
Make the datagrid as item template column as gauthee has told u and call the image by providing the path & the name from databse table.
I m sure it helps u
|
|
|
|
|
Thanks alot for the Reply , this is only to insert 1 Image, But i want to display images on DataGrid with respect to Every Category...
etc
Category_ID = 1 Display image1
Category_ID = 2 Display image2
But How to do I dont knwo...'
im trying if someone knwo abt it...?
sheeba
|
|
|
|
|
send me ur table structure, i.e. category id, desc, path etc
and the requirement how you want to display the details in the datagrid
i might give the code then!!
Gautham
|
|
|
|
|
CREATE TABLE MARKETPLACE_CATEGORY
(
CATEGORY_ID NUMBER NOT NULL,
CATEGORY VARCHAR2(500) NOT NULL,
CATEGORY_EMAIL VARCHAR2(500),
CATEGORY_PIC VARCHAR2(500)
)
this is grid code
|
<asp:label id="lblError" runat="server" forecolor="White">
|
<asp:label id="lblUserName" runat="server" forecolor="Maroon" font-bold="True">
<asp:label id="lblDisplayText" runat="server" forecolor="#2F7ED0" font-bold="True" font-size="Small"> the following are Your Items
<asp:button id="btnSearch" runat="server" width="56px" text="Search">
<asp:datagrid id="DataGrid1" runat="server" width="750px" cellpadding="2" autogeneratecolumns="False" allowsorting="True">
<footerstyle backcolor="#04528D">
<alternatingitemstyle borderwidth="0px" backcolor="#F7F7EE">
<itemstyle backcolor="#E4E7EC">
<headerstyle font-bold="True" forecolor="White" backcolor="#04528D">
<columns>
<asp:templatecolumn><headerstyle horizontalalign="Center" width="50px" verticalalign="Middle">
<itemstyle horizontalalign="Center">
<itemtemplate>
<asp:hyperlinkcolumn datanavigateurlfield="RECORD_ID" datanavigateurlformatstring="View_Item.aspx?RecordID={0}"
="" datatextfield="ITEM">
<headerstyle width="100px">
<asp:templatecolumn headertext="Type">
<itemtemplate>
<asp:label runat="server" text="<%# DataBinder.Eval(Container, "DataItem.TYPE") %>">
<edititemtemplate>
<asp:textbox runat="server" text="<%# DataBinder.Eval(Container, "DataItem.TYPE") %>">
<asp:boundcolumn datafield="ITEM" headertext="Item">
<headerstyle width="150px">
<asp:boundcolumn datafield="ITEM_PRICE" headertext="Item Price">
<headerstyle width="100px">
<asp:boundcolumn datafield="DESCRIPTION" headertext="Description">
<headerstyle width="250px">
<asp:boundcolumn visible="False" datafield="RECORD_ID" headertext="RECORD_ID">
<headerstyle width="100px">
<pagerstyle backcolor="#04528D">
|
sheeba
|
|
|
|
|
Can you tell me how to perform Edit, Update & Sorting in DataGrid at code behind.
pls give me full code
With best regards
|
|
|
|
|
Why didnt you try google first b4 posting such questions?
I just search for sorting and get my stuff in first record. Try the following for sorting and search remaining yourself.
Datagrid Sorting
Every job is a self portrait of the person who did it.
|
|
|
|
|
|
Hii
I am using asp.net 2005 grid view and a sqldatasource with it. When I try to delete a row I got an error like "Specified argument was out of the range of valid values.
Parameter name: value "...
anybody..plz help!!!!
Ranjith
|
|
|
|
|
why don't you post some code what you written inside delete command ?
|
|
|
|
|
I am just giving a direct query like "DELETE FROM [T_BL_CHARGE_SELLING] WHERE [CHARGEID] = @original_CHARGEID" in the sqldatasource's delete query property...
Ranjith
|
|
|
|
|
Hi,
I have this Data Grid which I drag and drop from the Database Explorer. It works well and I did some editing to it. And the problem is some of my fields are storing id which point to another table that store the description of the id.
Let say titleId in my 'staff' table is '1', so it point to 'title' table where '1' is 'Manager'. When the Grid show on the web page, I don't want it to show the id '1' when I select from 'staff' table, I want it to show 'Manager'.
How can I add another sql query in this Grid to make it select the name of the title and show it in the Grid?
Thanks
J Liang
|
|
|
|
|
J Liang wrote: How can I add another sql query in this Grid to make it select the name of the title and show it in the Grid?
I think no need of adding one more SQL query for solving this problem.
J Liang wrote: I don't want it to show the id '1' when I select from 'staff' table, I want it to show 'Manager'
What you can do is fetch the type from your second table for that id and show it. Use single query. That could be something like
SELECT
T.YourColumnName,
S.OtherColumn
FROM
Staff S,
Title T
WHERE
T.titleId = S.titleId
|
|
|
|