|
Hi, i need a solution in which i give a specific coordinates and a balloon pop up appears on that very coordinate. i need this in my imagemap server control , where i have given the option search to search a item, if that particular item is present then a pop will appear over it in image map.
“You will never be a leader unless you first learn to follow and be led.”
–Tiorio
"Coming together is a beginning, staying together is progress, and working together is success." Henry Ford
|
|
|
|
|
|
Hi all,
I'm fairly new to web services, so please forgive me if this is common knowledge... I can't seem to find it anywhere.
I have a project requirement in a web service that I am writing, such that if a particular function fails I need to stop/shut down/disable the web service from code. I've searched this forum and the net at length but can't find any information on how this can be done. At this point I am NOT particularly concerned with elegance, just with getting the job done. Elegance is always appreciated, of course!
Thanks in advance for any help you can offer.
|
|
|
|
|
I would make a database table that contains this information. If an error occurs update the table with the error information. At the very beginning of the web service code, add code to check the database to see if the web service can continue. Not necessarily the most elegant but very easy to code and maintain.
I didn't get any requirements for the signature
|
|
|
|
|
I agree that's very simple, but in this case we need to make the web service non-responsive. There will be a pool of servers running this service, and really what I need to do is make the service inavailable to the pool, so our customers don't start getting "gee sorry, I have an error" messages, but rather just roll to the next server in the pool.
Sorry I didn't think to explain that earlier.
|
|
|
|
|
thorsman99 wrote: I agree that's very simple, but in this case we need to make the web service non-responsive. There will be a pool of servers running this service, and really what I need to do is make the service inavailable to the pool, so our customers don't start getting "gee sorry, I have an error" messages, but rather just roll to the next server in the pool.
Well then, I can't help you that. This doesn't sound like something that should be done via code.
I didn't get any requirements for the signature
|
|
|
|
|
Hi all
i have a problem with regular expression,my requrment is
start with I/i then five digit then . and then one digit
for this i have write some expression
var exp = new RegExp("^I|i\[0-9]*\\d{5}.[0-9]$");
but this expression is not wrking, can u help mee
Thanks
|
|
|
|
|
The regular expression would be:
(i|I)\d{5}\.\d
(i|I) -> either a lower case or an upper case i
\d{5} -> five sequential digits
\. -> the decimal point
\d - one digit
so the fully escaped regex on .net would be
var exp = new RegExp("(i|I)\\d{5}\\.\\d");
Note: you could also use the ignore case Regex option flag and just include the i instead of (i|I)
P.S. I would recommend use of the Regex Coach - a nifty little tool for designing and testing regular expressions: http://www.weitz.de/regex-coach/[^]
|
|
|
|
|
Ya It's wrking fine , and thanks a lot.. , i also go with the same url for regular expression , thanks .
|
|
|
|
|
hi
i need to log out when the user close the explorer by click (X)button
ahmed eldeghedy
|
|
|
|
|
You can capture the event when user closes the browser in Javascript,and from that you can call some server side code to logout from the session.
One thing,if you close the browser then also after sesstionout time user automatically logs out.So if no specific requirement like secuirty or some logs for it,then you can use above one else you don't need to care about it.
Cheers!!
Brij
|
|
|
|
|
ahmed eldeghedy wrote: i need to log out when the user close the explorer by click (X)button
if(window.event.clientX < 0 && window.event.clientY <0)
{
Alert("Browser Closing");
}
Call this from onunload of body
|
|
|
|
|
You can capture the event in js and use AJAX to tell your app that it happened. But even then, I would not trust it 100%, I would never write code that relies on the user logging out, I'd impliment a timeout for users who manage to leave my site without me knowing.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Christian Graus wrote: I would not trust it 100%, I would never write code that relies on the user logging out, I'd impliment a timeout for users who manage to leave my site without me knowing.
That's perfect
|
|
|
|
|
in the first thank you
i know what you speaking about but
i am a developer not a customer and that a customer request
and i can not change his beliefs
note ----
the question not for log out specially
i am sorry it for how to open connection with data base
thanks for your help again
ahmed eldeghedy
|
|
|
|
|
Hello Guys,
I want to build a web page that looks like some sort of search web site with navigational boxes(like by people, by place, etc) on left hand side and actual document content on the centre of the page, all this data will come from a service call as an xml file dynamically.
So I am looking for some help on which controls I can use on asp.net 2.0 or 3.5 to pick the data segments from the xml file and display it on the web page and also be able to do post backs if i want to navigate on any control.
Can anyone help me with any example code to achieve this?
Many Thanks
happy coding!
|
|
|
|
|
You have some XML data that you want to display correct? Use XSLT to transform your XML into HTML and write it to the page. If they are standard HTML input controls, like a submit button the postback will be triggered.
only two letters away from being an asset
|
|
|
|
|
I am creating a couple of textboxes and dropdownlists dynamically. I need to put RFV for all of them. Since the rfv id will be different for each control, how will I generate them and make them fire if the values are not entered by the user. I tried adding the following:
RequiredFieldValidator rfv1 = new RequiredFieldValidator();
rfv1.ControlToValidate = fieldTextBox.Id;
But this is not firing? ANy help in this regard please?
Thanks,
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
meeram395 wrote:
RequiredFieldValidator rfv1 = new RequiredFieldValidator();
rfv1.ControlToValidate = fieldTextBox.Id;
But this is not firing? ANy help in this regard please?
I have write this on Page_Load()
<br />
RequiredFieldValidator _re = new RequiredFieldValidator();<br />
_re.ID = "test";<br />
_re.ControlToValidate = txtRoll.ID;<br />
_re.ErrorMessage = "This is a error Message";<br />
form1.Controls.Add(_re);
and working fine
|
|
|
|
|
give some error message for your required field Validator like
rfv1.ErrorMessage ="Some Message"
|
|
|
|
|
In Gridview
CaseNo ,HearingDate,To,CC,BCC
this data is shown. CaseNo is Primary Key
I am having button "SendMail" in that grid view.
In gridview Rowcommand Event i write this code
if i click on first row send mail command button then
Label9.text get First caseno t.e. "LER/111"
Simillarly i want To,CC BCC Cell value of that row
How i can able to get that
<br />
Protected Sub MailDetailsGridView_RowCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles MailDetailsGridView.RowCommand<br />
''Code Added For The Send Mail........<br />
If (e.CommandName = "SendMail") Then<br />
<br />
Label9.Text = e.CommandArgument.ToString()<br />
<br />
Dim row As GridViewRow<br />
row = CType(CType(e.CommandSource, Control).NamingContainer, GridViewRow)<br />
Dim email As String = CType(row.Cells(6), DataControlFieldCell).Text<br />
<br />
If (row.RowType = DataControlRowType.DataRow) Then<br />
Dim txtCCMail As TextBox<br />
Dim ToMail As String<br />
txtCCMail = row.Cells(6).Controls(0).FindControl("ToTextBox")<br />
ToMail = txtCCMail.Text<br />
End If<br />
End If<br />
<br />
End Sub<br />
<br />
|
|
|
|
|
Hi soniasan
TRY this class
Imports System.Net.Mail
Imports Microsoft.VisualBasic
Imports System.Data
Imports System.Net
Imports System.Net.Dns
Imports System.Web.UI.Page
Imports System.Math
Imports System.Text.RegularExpressions
Imports System.Data.SqlClient
Public Class MailHelper
''' <summary>
''' Sends an mail message
''' </summary>
''' <param name="from">Sender address</param>
''' <param name="recepient">Recepient address</param>
''' <param name="bcc">Bcc recepient</param>
''' <param name="cc">Cc recepient</param>
''' <param name="subject">Subject of mail message</param>
''' <param name="body">Body of mail message</param>
Public Sub SendMailMessage(ByVal from As String, ByVal recepient As String, ByVal bcc As String, ByVal cc As String, _
ByVal subject As String, ByVal body As String)
' Instantiate a new instance of MailMessage
Dim mMailMessage As New MailMessage()
' Set the sender address of the mail message
mMailMessage.From = New MailAddress(from)
' Set the recepient address of the mail message
mMailMessage.To.Add(New MailAddress(recepient))
' Check if the bcc value is null or an empty string
If Not bcc Is Nothing And bcc <> String.Empty Then
' Set the Bcc address of the mail message
mMailMessage.Bcc.Add(New MailAddress(bcc))
End If
' Check if the cc value is null or an empty value
If Not cc Is Nothing And cc <> String.Empty Then
' Set the CC address of the mail message
mMailMessage.CC.Add(New MailAddress(cc))
End If
' Set the subject of the mail message
mMailMessage.Subject = subject
' Set the body of the mail message
mMailMessage.Body = body
' Secify the format of the body as HTML
mMailMessage.IsBodyHtml = True
' Set the priority of the mail message to normal
mMailMessage.Priority = MailPriority.Normal
' Instantiate a new instance of SmtpClient
Dim mSmtpClient As New SmtpClient()
mSmtpClient.Host = "------"
mSmtpClient.Port = "---------"
mSmtpClient.Credentials = New System.Net.NetworkCredential("-----------", "----------")
' Send the mail message
mSmtpClient.Send(mMailMessage)
End Sub
End Class Use this class
regards
Rajeesh MP
|
|
|
|
|
txtCCMail = row.Cells(7).Controls(0).FindControl("ccTextBox")
txtBCCMail = row.Cells(9).Controls(0).FindControl("bccTextBox")
|
|
|
|
|
hello this is hassan,
I am have deployed my web application in my local webserver mean published website, now i have a global ip something like this http://203.68.77.10 on its port 8080 my website is running like this http://203.68.77.10:8080/website1, from the IIS on the http://203.68.77.10 server the url is redirected to my personal webserver, means if some body type in the url http://203.68.77.10:8080/website1 in the browser it is redirected by IIS manager to my local network i.p something like this 192.168.0.1/website1
Now in my website i used some modal popups that are picked by getting the fully qualified path of the browser and application, when i opened the poup it gives me a javascript error permission denied... the page which the popup is going to access is on my computer and the user sees his url on the screen http://203.68.77.10:8080/website1/default.aspx so what is the cause of this please help me i shall be gratefull to u.. thanks
Hassan Akhtar
|
|
|
|
|
Dear Hassan
U add your js extension in IIS.
|
|
|
|