|
Then Why Grid ? Use Repeater Control
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Why Dont You Use ListView Control .So Its Easy to display Your Data as Per Your Requirement..!
If Its Not Your Answer Sorry..!
http://www.codeproject.com/KB/webforms/MenuControlSelectedItem1.aspx
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
|
Hi thanx to all for your valuable time to post to my query. Well I forgot to mention that I am still in the age of Adam & Eve I am trying this in asp.net version 1.1
I am currently researching with DataList or a repeater control. Will post back when I get it working in another say 12 hours from now. Did I say 12 hours 
|
|
|
|
|
Oh...
Then you need to look into Repeater. Its the only thing available to do this job in 1.1, I guess.
|
|
|
|
|
Hi,
I am working with VS.Net 2008 application & am in need to provide some link (for ex: http:www.google.com)to the Images that are shown in the slideshowextender ajax control in asp.net with c#. On the click of the every single image a new window with the corresponding URL(retrieved from the DB) should get open. Kindly help me in getting through this. Waiting for your response. Thank You.
|
|
|
|
|
Check This [^] Post. It may help you!
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Hi,
Thank u for your earliest reply. But the solution in that link, provided as a reply is not applicable b'coz in that, the href is given to the image name field & not in the description field and i have tried with both the field & have not got the expected results. Kindly help me in the making this task as possible. Thank You.
|
|
|
|
|
Then You Have to Paste the Code So that Group may help..!
http://www.codeproject.com/KB/webforms/MenuControlSelectedItem1.aspx
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
As per the suggestion i have pasted the required things, Pls help me...
Design page This Design page is an user control & iam accessing the GetImage Method from its Parent page, in which i wrote the Code (pasted below)
<asp:Image ID="image1" runat="server" Height="150px" Width="230px" />
<br />
<cc1:SlideShowExtender ID="SlideShowExtender1" runat="server" AutoPlay="true" Loop="true"
SlideShowServiceMethod="GetImage" TargetControlID="image1">
</cc1:SlideShowExtender>
Code behind page
[System.Web.Services.WebMethod]
[System.Web.Script.Services.ScriptMethod]
public static AjaxControlToolkit.Slide[] GetImage()
{
string promophotos, promoimages;
SqlDataSource ds = new SqlDataSource();
ds.ConnectionString = ConnectionString.Str_SqlCon_CmInfoline.ToString();
string mySelect;
int count = 0;
mySelect = "select Tooltip,BschoolName,Imageurl,UrlPath from Tbl_InfolinePromoPhotos";
ds.SelectCommand = mySelect;
System.Data.DataView dv = (System.Data.DataView)ds.Select(new DataSourceSelectArguments());
count = dv.Table.Rows.Count;
AjaxControlToolkit.Slide[] slides = new AjaxControlToolkit.Slide[count];
try
{
for (int i = 0; i < count; i++)
{
promophotos = dv.Table.Rows[i]["Imageurl"].ToString();
string[] photopath = promophotos.Split(',');
promoimages = photopath[1];
slides[i] = new AjaxControlToolkit.Slide(Global.contentUrl + "/Admin/Bschool/PromoPhotos/" + promoimages.TrimStart('.'), dv.Table.Rows[i]["Tooltip"].ToString(), dv.Table.Rows[i]["UrlPath"].ToString());
}
}
catch { }
return (slides);
}
|
|
|
|
|
can someone bring an example of sending email using asp.net c#?
|
|
|
|
|
You're basically asking us to reproduce what you could find with a simple web search. Why not search the web, RTFM, then post here if you get stuck AFTER trying to do something for yourself ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
actually I tried, but I found examples with 'smtp host' and I don't know what to put in the smtp host(I tried some hosts and it's not working)...so I thought I could find another example here
|
|
|
|
|
We can't tell you the answer to that. You can't send mail without a mail server, that's your problem. You should be more specific, if your actual question is more specific.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
benams wrote: can someone bring an example of sending email using asp.net c#?
Yes Sure,
sending mail using C# and asp.net[^]
Hope this will help you
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Hello,
i've written code for sending mail in asp.net 2.0. I'm not getting any errror message,rather i'm receiving msg of "Message sent successfully". BUT STILL I'M NOT RECEIVING ANY EMAIL IN MY MAILBOX.I've written following code.
in .aspx page,
Imports System.Net.Mail
Protected Sub btn_Send_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btn_Send.Click
Dim message As MailMessage
message = New MailMessage(txt_From.Text, txt_To.Text, txt_Subject.Text, txt_Message.Text)
Dim client As SmtpClient = New SmtpClient("192.168.1.2")
client.DeliveryMethod = SmtpDeliveryMethod.PickupDirectoryFromIis
client.Send(message)
lbl_msg.ForeColor = Drawing.Color.Red
lbl_msg.Text = "Message sent successfully !"
End Sub
and in the web.config, i ve written the following tab.
<system.net>
<mailSettings>
<smtp from="mail.eqlsoft.com">
<network host="mail.eqlsoft.com" port="25" defaultCredentials="true"/>
</smtp>
</mailSettings>
</system.net>
in addition to this i've configured my SMTP Server,as per guidelines in one of the forums on codeproject.
BUT i'm not very sure about the Smart Host name.
can you please help me... its urgent !!!
|
|
|
|
|
madhura apte wrote: can you please help me... its urgent !!!
No, it's not. We actually don't care if you can send mail or not.
madhura apte wrote: Dim client As SmtpClient = New SmtpClient("192.168.1.2")
client.DeliveryMethod = SmtpDeliveryMethod.PickupDirectoryFromIis
This looks messy. Why not just read the server settings and send it in your code ? I mean, your message says 'sent successfully', but that means nothing, you just wrote that code. Could I use this mail server if I wanted ? No logon is required ? That seems odd to me. The whole thing looks convoluted to me. Just write a method that reads the mail settings from your web config and sends an email, then use that helper method throughout your code.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I have to update a table based on some values in different dropdowns.
One of these values is part of composite primary key also.
In row_updating event, I have written the code to update the tabel.
Update table xyz set order=order_dropdown.selectedvalue, some more values... where emp_id=3,order=order_dropdown.selectedvalue.
Now in "where" and "set" clauses, order_dropdown.selectedvalue has used.
"where" should pick up the old value ideally but it will pick up latest value.
Due to this, updation does not take place.
So how to capture the original value in row_editing event and pass that original value in row_updating event?
|
|
|
|
|
You want to get a value other than the value that has been selected ? How do you hope to do that ? You're going to have to store it somewhere.
If you mean it's reseting and is NOT the selected value, it's because you're binding the datasource on postback in your page load.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Just providing more details about my requirement:
I have a gridview that has a dropdown column. All works fine until I go to edit mode. Here if change any value in dropdown, I can select that. But what about the original value? how to fetch that?
|
|
|
|
|
Hi guys,
Some of my Questions regarding ascx page in asp.net web application:-
- How we can convert read only ascx/aspx page to write mode?
And if we can convert it in write mode than again how we can reconvert in read only mode?
- In asp.net web application, Is it necessary to make ascx page always read only?
And why we can make the ascx page read only in asp.net web application?
Kunal Naik
|
|
|
|
|
kunal naik wrote: - How we can convert read only ascx/aspx page to write mode?
I have no idea what you're talking about.
kunal naik wrote: ascx page
There's no such thing as an ascx page, I assume you mean an ascx control ?
kunal naik wrote: In asp.net web application, Is it necessary to make ascx page always read only?
If the files are read only or not shouldn't matter, but I've never heard of a valid design for a website that attempts to change the contents of the aspx or ascx files on the server.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
First Understand The User Control Then You can ask .
Its Easy It is Simple User Control
Here is a link
http://msdn.microsoft.com/en-us/library/fb3w5b53.aspx[^]
http://www.codeproject.com/KB/webforms/MenuControlSelectedItem1.aspx
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
Sorry Same Post..!
http://www.codeproject.com/KB/webforms/MenuControlSelectedItem1.aspx
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
I want to use dropdown list in Web Parts
but in web parts dropdown can be use using Enum only.
I want to bind Dropdown with datatable (value comes from database at runtime)
and one more thing I have 2 dropdown lists in a web part
second dropdown bind on the basis of selected value of First one.
Please tell me how to bind dropdownlist in web parts
I need to maintain personalization
Thanks
|
|
|
|