|
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?
|
|
|
|
|
In what way didn't it work?
|
|
|
|
|
I could not resize the column widths by PropertyBuilder..
How can do this at design time by writing code??
|
|
|
|
|
By any chance are your columns being autogenerated (i.e. number of columns dependant on the sql you insert)? In which case, you can't set them at design time, you'll have to dynamically set them at run time...
Or uncheck the autogenerated columns checkbox in the property builder and explictly bind your columns. You might want to head over to www.4guysfromrolla.com[^] and check out their extensive review of the datagrid.
|
|
|
|
|
the whole code that i want to convert is as:
If you could convert plz .
Public MustInherit Class ShopList
Inherits Entities.Modules.PortalModuleBase
Implements Entities.Modules.IActionable
Implements Entities.Modules.IPortable
Implements Entities.Modules.ISearchable
Private Sub Page_Load(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
End Sub
Public ReadOnly Property ModuleActions() As _
DotNetNuke.Entities.Modules.Actions.ModuleActionCollection _
Implements DotNetNuke.Entities.Modules.IActionable.ModuleActions
Get
Dim Actions As New _
Entities.Modules.Actions.ModuleActionCollection
Actions.Add(GetNextActionID, _
Localization.GetString( _
Entities.Modules.Actions.ModuleActionType.AddContent, _
LocalResourceFile), _
Entities.Modules.Actions.ModuleActionType.AddContent, _
"", _
"", _
EditUrl(), _
False, _
Security.SecurityAccessLevel.Edit, _
True, _
False)
Return Actions
End Get
End Property
Public Function ExportModule(ByVal ModuleID As Integer) _
As String Implements _
DotNetNuke.Entities.Modules.IPortable.ExportModule
' included as a stub only so that the core
'knows this module Implements Entities.Modules.IPortable
End Function
Public Sub ImportModule(ByVal ModuleID As Integer, _
ByVal Content As String, _
ByVal Version As String, _
ByVal UserID As Integer) _
Implements DotNetNuke.Entities.Modules.IPortable.ImportModule
' included as a stub only so that the core
'knows this module Implements Entities.Modules.IPortable
End Sub
Public Function GetSearchItems( _
ByVal ModInfo As DotNetNuke.Entities.Modules.ModuleInfo) _
As DotNetNuke.Services.Search.SearchItemInfoCollection _
Implements DotNetNuke.Entities.Modules.ISearchable.GetSearchItems
' included as a stub only so that the core
'knows this module Implements Entities.Modules.IPortable
End Function
End Class
|
|
|
|
|