|
what kind of file are you trying to download?
Stef
|
|
|
|
|
|
Hi all,
I am working in migration project. I need to get the session from asp and i have maitian it in asp.net means in aspx page. Plz help me if any one have idea. I will be very happy if provide code ,coz i don't have any knowledge in asp
Suresh.R
|
|
|
|
|
|
Hi,
I'm having a problem that is slowly driving over the edge...
I have a page with 3 listboxes that I populate dynamically with the names of files on the server. I have a SelectedIndexChanged event on each of the listboxes that simply redirects the page to the selected document.
the problem is when i return from a document, i can only select a new doc if it is from the same listbox, or one on the left. If I select from a listbox on the right, the last doc opened comes up again.
Thanks in advance for any help,
Craig
|
|
|
|
|
rasdfsadfasdfasdfsa wrote: the problem is when i return from a document
How do you do to return from a document?
rasdfsadfasdfasdfsa wrote: i can only select a new doc if it is from the same listbox, or one on the left. If I select from a listbox on the right, the last doc opened comes up again.
I think that you have to show a bit of your code if anyone should be able to tell what's wrong with it.
---
single minded; short sighted; long gone;
|
|
|
|
|
I am returning via the back button. This is an intranet site, so these are actual word and excel docs on the network that i am linking to, not aspx pages.
this is pretty much all the code there is...
<asp:ListBox ID="lstMemos" runat="server" OnSelectedIndexChanged="lstMemos_SelectedIndexChanged"
AutoPostBack="true" Rows="10" Width="90%"></asp:ListBox>
protected void Page_Load(object sender, EventArgs e) {
if (!this.IsPostBack) {
//populate memos
string folderToBrowse = Server.MapPath(memoPath);
DirectoryInfo dirInfo = new DirectoryInfo(folderToBrowse );
foreach (FileInfo fileItem in dirInfo.GetFiles()) {
lstMemos.Items.Add(fileItem.Name);
}
}
//I populate 2 more listboxes here - same code
}
//there are 2 more functions just like this for the other 2 listboxes
protected void lstMemos_SelectedIndexChanged(object sender, EventArgs e) {
Response.Redirect(Path.Combine(memoPath, lstMemos.SelectedItem.Text));
}
|
|
|
|
|
Hello.
I have a website made in ASP.NET 2, with a login page. I'm not using the membership class. I'm checking in the active directory if my user exists.
If I have found my user, a new page appear with different links.
There is one on an Apache server. How can I do to not login again,on apache server ?
What should I put in my web config file for authentication mode ? "forms or windows" ?
How apache knows that I'm already connected ?
Thanks in advance for your help.
Pat3d
|
|
|
|
|
I have this html in my asp.net page:
<div id='topics'>
<asp:Repeater ID="repeaterTopics" runat="server" DataSourceID="SqlDataSourceTopics">
<ItemTemplate>
<input type="checkbox" id='<%#DataBinder.Eval(Container.DataItem, "TopicName")%>'
name='topic.<%#DataBinder.Eval(Container.DataItem, "TopicID")%>' />
<label for='<%#DataBinder.Eval(Container.DataItem, "TopicName")%>' class="topic">
<%#DataBinder.Eval(Container.DataItem, "TopicName")%>
</label>
<br />
</ItemTemplate>
</asp:Repeater>
<asp:SqlDataSource ID="SqlDataSourceTopics" runat="server" SelectCommand="SELECT [TopicID], [TopicName] FROM [Topics]">
</asp:SqlDataSource>
</div>
However, the data it gets back from the DB has a crap load of whitespace on the end, how can I trim it? I think it's causing a rendering bug in safari.
/\ |_ E X E GG
|
|
|
|
|
try with RTRIM ...you can search more from SQL online book
<< >>
|
|
|
|
|
Hi,
While retriving data from database you remove blank spaces by using "RTRIM & LTRIM" function.
Eg:-
SELECT LTRIM(RTRIM(Your_Column_Name)) from tableName
Regards,
Sandeep Kumar.V
|
|
|
|
|
Hi all,
I am using Sql Server 2005, ASP.Net and VB.net
The problem is that, i am using the datetime data type for the CourseTime column in the Course table, but when i want to display the time using a Gridview the date "1/1/1900" appears by default and i don't want any date to appear. How to solve this.
Thanks in advance for your help
yasso
|
|
|
|
|
Use convert(varchar(10), 'YOUR DATE COLUMN', 14) in the SP/SQL that populates the grid.
SG
|
|
|
|
|
Thanks for your help but I didn't understand, what is SP/SQL and where to find it, please give me more details
yasso
|
|
|
|
|
those are store proc and SQL query language...you can look for more info from SQL book online
<< >>
|
|
|
|
|
Could any one help me on how to send email in asp.net?
How do i test this on a Local Area Network? I was thinking of using outlook express but i do not know how to configure this on a LAN
t.aransiola
|
|
|
|
|
I'm not sure I can answer all your query...but try as much as posible..
aransiola wrote: Could any one help me on how to send email in asp.net?
using System.Web.Mail namespace...
aransiola wrote: How do i test this on a Local Area Network? I was thinking of using outlook express but i do not know how to configure this on a LAN
- install an email server
- How to Set Up Outlook Express
Hope those can help you
<< >>
|
|
|
|
|
Hi,
First Install SMTP server in your local machine.
using System.Net.Mail;<br />
<br />
static string HostName = System.Net.Dns.GetHostName();<br />
<br />
System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage();<br />
message.To.Add("test@mail.com");<br />
message.Subject = "This is the Subject line";<br />
message.From = new System.Net.Mail.MailAddress("test@mail.com");<br />
message.Body = "This is the message body";<br />
System.Net.Mail.SmtpClient smtp = new System.Net.Mail.SmtpClient(HostName);<br />
smtp.Send(message);
Regards,
Sandeep Kumar.V
|
|
|
|
|
How do i test the sending and receiving of the mail on my LAN
t.aransiola
|
|
|
|
|
Anybody to help me with a asp.net datepicker control. The one i got from this forum(DatePicker), is requesting for licence after deployment on my intranet(LOcal Area Network). Pls
help
t.aransiola
|
|
|
|
|
which one? the best is that asking the author....
<< >>
|
|
|
|
|
Use JavaScript for this. You will get n number of scripts for Date Picker on net...
|
|
|
|
|
I have a gridview that is not bound to a database source. I used a middletier written by self to return a dataset(with 1 datatable) which i now bind the datatable to the gridview.
The problem is that, i want the gridview to have Edit and update option to edit the gridview row and update.
t.aransiola
|
|
|
|
|
Hi aransiola,
You should set 'AutogenerateEditButton' Property of grid view to true.
Then you should handle RowEditing and RowUpdating Events.
Inside RowEditing Method You should specify which row is going to be edit.
Inside RowUpdating Method You should call your update function for that row.
Try this..
Sherin Iranimose
|
|
|
|
|
Thank u.
Pls one of my field in the gridview is a date field, I want to use a datepicker control in one of teh column instead of a textbox control when editing the grid
|
|
|
|