|
R1119 wrote: I have a hyperlink inside a datalist.I want that whenever a user clicks the hyperlink it should navigate to another page along with the data coming from database based on the id that will be passed.
And what is the problem you are having in it?
Apurva Kaushal
|
|
|
|
|
Hi Apurva,
Actually I dont know, on which event I have to code for this and how.
Thanks & Regards
Sunny
|
|
|
|
|
If you just want to attach the ID (primary key) of that row with the navigation URL of the hypelink then this you can attach where you are designing the datalist.
Or an alternatively you can use onitemdatabound event of the datalist to do the code. What you need to do is to find the hyperlink there and assign the value you want in navigateURL property of it.
Apurva Kaushal
|
|
|
|
|
R1119 wrote: Actually I dont know, on which event I have to code for this and how.
A better method is to get a ASP.NET book and work out the examples provided. Web forums are useful only when you know the basics.
|
|
|
|
|
Hi,
This is Srinivas, i am doing one web Application. so that i need to check the incoming mail has attachment or not to the admin email ID.
How to send the email automatically by as per our stetted date.
Plz help me to fulfill this Project.
Thanks for Adavnce.
|
|
|
|
|
Member 4720184 wrote: How to send the email automatically by as per our stetted date.
Do you want to send mails automatically which is scheduled for a particular time, then you can create a windows service for it.
Apurva Kaushal
|
|
|
|
|
Apurva Kaushal wrote: then you can create a windows service for it.
This is suggested constantly. But IMO, windows service is overkill for things that will work on a scheduled time. The service has to sit idle waiting for the next schedule which is a waste.
Sending mails on scheduled intervals can be done easily by creating a console application which sends the mail and exits automatically. Now configure this with the windows scheduler. Simple and efficient.
|
|
|
|
|
Hi to all,
I am using datalist control in which I have to display two items.
1.image
2.name
Code for datalist:
<asp:DataList ID="DataList1" runat="server" CellPadding="4" <br />
ForeColor="#333333" RepeatDirection="Horizontal" CellSpacing="35" <br />
RepeatColumns="3" Width="546px" <br />
onselectedindexchanged="DataList1_SelectedIndexChanged"><br />
<ItemTemplate><br />
<table><br />
<tr><br />
<td><br />
<asp:ImageButton ID="ImageButton1" runat="server" Height="100px" Width="100px" ImageUrl='<%# Eval("cat_image") %>' /><br />
<asp:HyperLink ID="HyperLink1" runat="server" Text='<%# Eval("category_name") %>' Font-Bold="true" /><br />
</td><br />
</tr><br />
</table><br />
</ItemTemplate><br />
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /><br />
<AlternatingItemStyle BackColor="White" ForeColor="#284775" /><br />
<ItemStyle BackColor="#F7F6F3" ForeColor="#333333" /><br />
<SelectedItemStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" /><br />
<HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /><br />
</asp:DataList>
Is this the right way?????
or we have to give the complete path.
|
|
|
|
|
It looks ok. What happened when you tried?
|
|
|
|
|
All the images are in a folder "ProductImages"
It is showing crossed pic.
|
|
|
|
|
|
See the viewsource of the page n check whether the path is there properly or not?
Cheers!!
Brij
|
|
|
|
|
I didn't understand.what view source
r u talking abt inline code
|
|
|
|
|
In my database I have a column cat_image in which I saved the image like "productimages\IceMachines\200_CB920.jpg"
now please tell me where I am lacking
|
|
|
|
|
Yeah its coming like this
<input type="image" name="ctl00$ContentPlaceHolder1$DataList1$ctl00$ImageButton1" id="ctl00_ContentPlaceHolder1_DataList1_ctl00_ImageButton1" src="productimages\IceMachines\200_CB920.jpg" style="height:100px;width:100px;border-width:0px;" />
|
|
|
|
|
What he meant to say was whether the file path is coming correct or not which you can verify by seeing the source of that page(html).
Apurva Kaushal
|
|
|
|
|
|
R1119 wrote: is anyone there???????
Did you read the forum guide lines ? Read 6th Point of Admin Post !!!
cheers,
Abhijit
|
|
|
|
|
No I am not shouting
And I am sorry if I hurt
|
|
|
|
|
Believe me I was not shouting..
|
|
|
|
|
Hey its all about the words.Words can go wrong but feeling can't.
cheers,
rohan
|
|
|
|
|
What is the point in posting a new message in every few minutes just saying same thing everytime. If one is interested you will get the reply for your question. Have some patience.
Apurva Kaushal
|
|
|
|
|
R1119 wrote: .Words can go wrong but feeling can't.
cheers,
Abhijit
|
|
|
|
|
http://www.ahsapdekorasyonbul.com/arama/1.jpg[^]
I’ll redirect to google for the above picture, for example when I search google for asp.net, this asp.net keyword shows at address bar as . QueryString("q") and asp.net comes up first at search results. I want to display “you’ve accessed our site with . QueryString("q") keyword” on the site clicked through google . QueryString("q") I mean when asp.net first site is clicked. Is this possible and if possible how can I code with asp and asp.net?
ahşap dekorasyon[^]
Boya - Badana - Tadilat ve Tamirat İşleri Bir Yudum Kahve Molası (Coffee) Düğün Nişan ve Gelinlik (wedding)
Google Reklamlarınızı Sadece Siz Yönetin Elektrik Proje Tesisat Projesi Çizimi İllere Göre Nakliyat Firmaları İstatistik
http://www.evdenevenakliyatbul.com
|
|
|
|
|