|
thanks
thomas
u have send me the code
but it is in c#.i m using vb.net
can u revert back with this code in vb.net
|
|
|
|
|
Hi,
I'm not an expert of asp.net, so be patient with me ...
My web application includes some aspx pages and only one class with common functions and sub-routines.
Everything works correctly, but when I try to run my application from two machines, one of the client crashes; after the crash, if I reload the page everything works normally.
It looks that my pages cannot have a concurrent access to the class.
The class is normally istantiated with the "new" keyword each time I call its subs - after the call I destroy the istance.
I'm sure there's something wrong with my code or configuration, but what ?
Any suggestion is welcome
Thanks,
Giorgio
A CRAY is the only computer that runs an endless loop in just four hours
|
|
|
|
|
Show the code? Is it a DB lock problem maybe?
|
|
|
|
|
Hi,
How to send mails automitically from our project in asp.net
like we are developing a project for jobportal here we want to send mails daily to users autometically..
help me for this..
Thanking you
balu
|
|
|
|
|
Hi Balu,
This code you can use to send the mail.
System.Web.Mail.MailMessage objMailMessage=new System.Web.Mail.MailMessage();
objMailMessage.From="FromField";
objMailMessage.To="WhomToSend";
objMailMessage.Subject="SubjectYouWant;
objMailMessage.Body="Message Body";
SmtpMail.SmtpServer = "MailServerName";
SmtpMail.Send(objMailMessage);
Hope this will solve your problem.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi Apurva,
Thankful your reply..
I want send Emails Autometically daily like we are getting from matrimonials and Jobportals without user intraction
my email id: balavardhanr@yahoo.com
Thanking you for reply..
balu
|
|
|
|
|
|
Is there a way to make sure that when the logout link in the loginstatus control is clicked then the user gets redirected to the login page?
This is what I am doing but when the logout link is clicked, the page does not get redirected.
Thanks
<asp:loginstatus id="LoginStatus1" runat="server"
="" cssclass="UserInfoLink" logoutaction="Redirect" logoutpageurl="login.aspx">
|
|
|
|
|
|
Is it possible to send an email with a background image using the html body format ?
I tried putting a background image , but the email received is plain with no background.
so wondering.
Can anyone throw some light
Thanks,
|
|
|
|
|
I know that the following tells me if the user (who is using the website)
is a member of Administrators
How about if I select a user from a drop down list and then check to see if that person is in the Administrators role?
Thanks
If (System.Web.HttpContext.Current.User.IsInRole("Administrator").ToString()) Then
End If
|
|
|
|
|
Hi,
A drop down list is populated using datasource as below
ddlUsers.DataSource = Membership.GetAllUsers
ddlUsers.DataBind()
But now I want the drop down to show the following item as the first item.
If I just use the following line, it gets added to the last item in the list.
ddlUsers.Items.Add("<-- select a user -->")
Thanks
|
|
|
|
|
Use the Insert method to specify where the item should be added:
ddlUsers.Items.Insert(0, "<-- select a user -->")
---
b { font-weight: normal; }
|
|
|
|
|
Hi,
Before binding value to the dropdown write the below code,
ddlUsers.Items.Clear();
newListItem = new ListItem();
newListItem.Value = "----Select a user---";
newListItem.Text = "----Select a user----";
ddlUsers.Items.Add(newListItem);
ddlUsers.DataSource = Membership.GetAllUsers
ddlUsers.DataBind()
Hope this helps u ..
|
|
|
|
|
Hi,
This will not work because "----Select a user----" will not be shown.
Try it and see.
Thanks
|
|
|
|
|
hi,
You can add this line to get the desired result.
ddlUsers.Items.Insert(0,new ListItem("-- select a user --","0"));
Hope this will solve your problem.
Best Regards,
Apurva Kaushal
|
|
|
|
|
It seems that insert is the solution.
Thanks guys
|
|
|
|
|
Hello,
I am creating a flight website that will allow users to select places that they want to fly to. They will select the departure and destination from selecting the airport from the combo box.
My problem is, that there are many airports in the world. Would I have to manually insert all of them, or is they a method to collect all the airport and fill the combo boxes with them. If did this the manual way, l think i could miss some, and it would take a long time.
Thanks in advance,
Steve
|
|
|
|
|
at least once you have toput all of yhrm in database and then later u can fill urs comboboxes from database.
|
|
|
|
|
But wouldn't it be nice to have databases that could fill themselves...
|
|
|
|
|
but for that also you have to take data from somewhere else. ultimately somewhere it ahould be already present. Are you trying to get that data from somewhere else, where it is already maintained?
|
|
|
|
|
Hello,
Thanks for your reply.
The following link has all the airport codes, city, and country. This is what l want.
http://www.nationsonline.org/onewor...t_code_list.htm
The airport city would have to be loaded into the combo box for the user to select from, there are over a 1000.
My question would it be quicker to load them from a SQL server or from a XML file?
Thanks in advance
-- modified at 1:46 Saturday 6th May, 2006
|
|
|
|
|
Hello Friends,
I have a datagrid on a webform. My datagrid retrieves data from a data source like the code below:
************************
SqlDataReader rdr;
SqlConnection cn;
// Put user code to initialize the page here
string strConnection="Server=.;Database=CollSuppliersTest;User ID=sa;Password=collTest06;Trusted_Connection=False";
string strCommand="SELECT * FROM SupplierOperations";
SqlConnection SuppliersConnection=new SqlConnection();
SuppliersConnection.ConnectionString="Server=.;Database=CollSuppliersTest;User ID=sa;Password=colltest06;Trusted_Connection=False";
SuppliersConnection.Open();
SqlDataAdapter da=new SqlDataAdapter(strCommand,SuppliersConnection);
DataSet ds=new DataSet();
da.Fill(ds);
dgOperations.DataSource=ds.Tables[0].DefaultView;
dgOperations.DataBind();
...
...
SuppliersConnection.Close();
********************************************************************
I have modified the column names appropriately. But How can I adjust the column widths by writing code at design time?
Please help
|
|
|
|
|
Right click on datagrid in form, select property builder, go to format and set the desired widths.
|
|
|
|
|
First Of all , I would like to say thank for your attention. I already tried your recommandation. But it did not work.
Is it something about the databinding problem?
|
|
|
|