|
Simply write a stored procedure and pass email id as parameter. There select the email id where email id = sent email id. this way, if null is returned then means, email doesn't exists else it exists.
|
|
|
|
|
Hello,
I'd like to know how I can capture "ESC" key stroke in ASP.NET application. So that I can use it to cancel current editing for a Gridview row.
Thank you very much in advance.
|
|
|
|
|
Javascript key press event handling and comparing the key code (which may be different accross browsers)
|
|
|
|
|
|
I have a .jpg file on my desktop.
How to save it in the database.
so that i can use it in my report.
Thanks
|
|
|
|
|
you have to store the image in binary format. so that u can fetch from database
Tech_spidy
|
|
|
|
|
ya i have little bit idea
i want to take the image by using Html fileinputbox control and from the specified path,i want to retrieve only the filename(not path).
and store that file(binary data) in one of my image field.
can u give me some code for doing this......
my code is..................
Private Sub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click
'Dim str As String = Me.File1.Value()
'If InStr(str, ".jp") > 0 Then
' 'File1.PostedFile.InputStream()
'Else
' Exit Sub
'End If
Dim myStream As Stream
myStream = File1.PostedFile.InputStream
Dim ImgLength As Int64 = File1.PostedFile.ContentLength
Dim ImgBinaryData(ImgLength) As Byte
Dim n As Int64 = myStream.Read(ImgBinaryData, 0, ImgLength)
saveimage(ImgBinaryData)
End Sub
Public Sub saveimage(ByVal mImageFileData As Byte())
Try
Dim myTable As DataTable
Dim myRow As DataRow
conn = New SqlConnection(constr)
conn.Open()
cmd = New SqlCommand("spr_insertImage", conn)
cmd.CommandType = CommandType.StoredProcedure
cmd.Parameters.Add(New SqlParameter("@ImageData", mImageFileData))
cmd.ExecuteNonQuery()
conn.Close()
Catch ex As Exception
lblError.Text = ex.Message
End Try
End Sub
but its not working......
any help
|
|
|
|
|
Have you used the image datatype in database?
|
|
|
|
|
ya i have used image datatype....
but after inserting i m getting <binary> in the database...
|
|
|
|
|
Only a quick confirmation of my fears. I have a dynamically created treeview and when user selects a leaf node the tree view gets disabled and configuration of a product occurs. On completition of this the tree view is enabled once more but I would like to unselect the node. Otherwise if the user selects that node again the selectedindexchanged event does not occur as it should.
Is the treeview's selected index setable or just getable?? Thanks
|
|
|
|
|
You could try setting the SelectedNode property to null, that might work (or might delete the node from the tree?)
|
|
|
|
|
No you can't set the SelectedIndex because that property doesn't exist. Try tree.SelectedNode = null , or in your lame VB.NET terms tree.SelectedNode = Nothing . It should null out that reference to the tree node object. If only I had some soap on a rope I could.....
|
|
|
|
|
Thanks Badgr for your informative post. I added your code to my project, ran it, and got the following runtime error.
Rory is a c**k sucker
Do you know what this error means. I think it's something to do with Treeview's selectednode property being read only?
|
|
|
|
|
tree.SelectedNode.Selected = false;
You can suck me later....
|
|
|
|
|
hi,
how to create an auto complete text in ASP. if possible, provide me sample code.
regards
Tech_spidy
|
|
|
|
|
What exactly do you mean by auto complete? Where will the auto data come from?
|
|
|
|
|
hi Sam Heller,
auto complete textbox in the sense, in mobile when we are typing 'A' it will start showing the names coming under 'A',like that to do in ASP.
may be set of data we can store and retrive from db
Tech_spidy
|
|
|
|
|
Oh i see what you mean. You need to use Javascript, in particular the onkeyup function i think it's called. Then perform some sort of data retrieval upon what was typed in and show it in a positioned div below the the textbox. That's the rough idea anyway. If your using ASP.NET you could always just use the new autocomplete Atlas feature which you can get in the Toolkit
|
|
|
|
|
thanks for ur hint Sam Heller
Tech_spidy
|
|
|
|
|
|
hi ,
I have created a Windows Service application and it is running in a host.I want to get its status in aspx page.Like whether the service is started or stopped.
Is it possible to get status of WindowsService in Asp.net.
Plz give ur suggestions..
thanks in advance
cheers
sangeet
|
|
|
|
|
Assuming that your service is running on the same machine as your ASP.NET application, you could use WMI to query the service status. WMI functionality is exposed through the System.Management namespace. Like any system-level functionality, you'll need to have the proper permissions to expose this information.
If your service is on a different machine, or you aren't able to secure the proper permissions, you may wish to consider exposing a remoting interface from your service. In that way, you could connect to your service programatically, and ask it for a report of its current status. The catch here is that you'll need to write code in the service that can understand and report on its status. Another thing to be aware of is that if your service is not currently started, the connection will fail.
Here are a couple of resources to help get you started:Hope that helps.
--Jesse
|
|
|
|
|
i have a web page that displays data from dataset in HtmlTable
i add linkbutton in specific cell
i want whaen i click this linkbutton add new call in the specific cell
i hope my question clear
thanks for help
MD_NADA
|
|
|
|
|
the word in bold is not clear . can you explain
i want whaen i click this linkbutton add <b>new call </b>in the specific cell
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
sylvester_g_m@yahoo.com
|
|
|
|
|
my case is like the questions in codeproject
when you click the question link
the question details desplay
i want to do something like this in the HTMLTABLE
MD_NADA
|
|
|
|