|
|
Hello
how should i add the duplicate url in the web.sitemap file?
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
try google first
"Your Web application will fail if you list a URL that does not exist, or if you list a duplicate URL. "
reference = http://msdn2.microsoft.com/en-us/library/ms178418.aspx
|
|
|
|
|
hai
I want to bind DataTextField and DataValueField for dropdownlist in code behind of asp.net application. anybody help..
Regards
M.Ramesh
|
|
|
|
|
I think this can be get from Google
Check google you will find n number of articles that will show this
this is basic, you need to learn how to learn
Let me know if you get any difficulties while implementing this
Atleast show some efforts
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
hai friend,
I think that you didn't got my query. ie.if it is dataset means i will bind directly like mydataset.tables(0) like that but I am having data like "1,sandeep|2,Ramesh|3,Akhare". So I need to bind in the dropdownlist using for loop. I need answer for this..
Thanks & Regards
M.Ramesh
|
|
|
|
|
OK Its more simple just create a IDictionary with key values and bind that one to your drop downlist in page_init event like this
public class Test
{
public static IDictionary GetBusinessStates()
{
IDictionary StateTable = new System.Collections.Specialized.OrderedDictionary();
StateTable.Add(" ", "Select One");
StateTable.Add("Sa", "Sandeep");
StateTable.Add("Ra", "Ramesh");
StateTable.Add("Ak", "Akhare");
return StateTable;
}
}
Write this in Page_Init
DropDownList1.DataSource = Test.GetBusinessStates();
DropDownList1.DataTextField = "Value";
DropDownList1.DataValueField = "Key";
DropDownList1.DataBind();
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
hai friend,
Thanks for your needful help. I need which namespace for IDictionary ie.using System.Collections like that..
Thanks & Regards
M.Ramesh.
|
|
|
|
|
Just use using System.Collections;
Let me know if your problem get resolved
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
The following is the code, iam getting error ie.specified cast is not valid..
Dim lDataRow() as DataRow
lDataRow = ldstDataset.Tables(2).Select("GroupID='" & lintGroupId & "'")
lDtTable = GetVouItems(lDataRow)
Public Function GetVouItems(ByVal pgDataRow() As DataRow) As IDictionary
Dim StateTable As New System.Collections.Specialized.NameValueCollection
Dim lDataRow() As DataRow
Dim lintCnt As Integer
lDataRow = pgDataRow
For lintCnt = 0 To lDataRow.Length - 1
StateTable.Add(lDataRow(lintCnt)(1), lDataRow(lintCnt)(2))
Next
Return StateTable
End Function
|
|
|
|
|
Sorry now i can't help you
As you have written in VB i don't understand its very difficult BOSS
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
hai friend,
i can surely do it using ur concept..thanks a lot..
Regards
M.Ramesh
|
|
|
|
|
hai,
i am using somany code to send mail.but it dosenot work.if know the code replay to me..
|
|
|
|
|
sugunavathysubramanian wrote: i am using somany code to send mail
OK
sugunavathysubramanian wrote: but it dosenot work
Whats the problem you are facing ?
sugunavathysubramanian wrote: f know the code replay to me.
Ya i have your code in my machine Just saw in Google home Page
Just kidding How can we know without looking into the code
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
This is explicitly covered in the article I link to in my sig.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Your signature link, if used everytime you recommend it, properly has more hits then bbc.co.uk!
|
|
|
|
|
Imports System.Net.Mail
Try
Dim userEmailAddress As String = _Setting.SMTPUsername
'Create the MailMessage instance
Dim _MailMessage As New MailMessage(userEmailAddress, ToUserId)
'Assign the MailMessage's properties
_MailMessage.Subject = Subject
_MailMessage.Body = Body
_MailMessage.IsBodyHtml = False
'Create the SmtpClient object
Dim smtp As New SmtpClient
smtp.Host = _Setting.SMTPServer
smtp.Port = _Setting.SMTPPort
Dim networkCredential As New Net.NetworkCredential(SMTPUsername, SMTPPassword)
smtp.Credentials = networkCredential
'Send the MailMessage (will use the config settings)
smtp.Send(_MailMessage)
Catch ex As Exception
Trace.WriteLine(" Class:- SMTPGateway, Function:- SendEmail() : Error: " + ex.ToString, Tracing.MSG_EXCEPTION)
End Try
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
|
how to return value from server in remoting i
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
|
When i am calling any event of server then its return some boolean value
(True or false) to client.
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
OK..
so what do you want it to do? Can you explain in more detail
|
|
|
|
|
in remoting object am using delegates and eventhandler so delgates does not use return function so how i get return value from server
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
Hello Friends..
I'm using alert script to display a msgbox. the problem is when i press the button to display msgbox it is not working but if i press the button twice the msgbox is displayed . I'm using updatepanel.
Code written is
ButtonName.Attributes.Add("onclick","alert('USER MSG')");
how to solve this problem
ArunVijay
|
|
|
|
|
ButtonName.Attributes.Add("onclick","alert('USER MSG');");
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|