|
|
thank you it was very much helpful
|
|
|
|
|
Friends,
In my asp.net application i have to write function on textbox's onblur event. Can anyone please help me how to do this.
Eg:
I am having a textbox for email id. when user leave the textbox i have to get the part before @symbol in that. For that i have write event in textbox's onblur.
Thanks and Regards,
Prya
|
|
|
|
|
You can write a javascript function to do the task and call this function on onblur event of the textbox.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Can u pl. tellme how to give onblur event of textbox in .cs page
Prya
|
|
|
|
|
you can do it like this:
Textbox1.attributes.add(OnBlur,"Javascript:yourfunc();")
Best Regards,
Apurva Kaushal
|
|
|
|
|
i have included master page in that aspx page. so there is a tag
<asp:content>. So shall i place the and tags above this and write the function there. But when I tried in some where its giving problem while adding head tags before content tag.
<div class="ForumSig">Prya</div>
|
|
|
|
|
I think you can put the function there in the head tag itself. What is the problem you are getting on doing the same.
Best Regards,
Apurva Kaushal
|
|
|
|
|
The Error I am getting is:
Content is not supported outside 'script' or 'asp:content' regions.
Prya
|
|
|
|
|
Try it by putting it inside the <asp:content> tag.
Best Regards,
Apurva Kaushal
|
|
|
|
|
you can add the javsscript function inside the <asp:content> tag.
call that javascript function with the help of .cs file.
Pankaj Gupta
(Take it easy)
|
|
|
|
|
Hi guys
I am stuck in one problem. I have table called folder. in that i am storing information of all folders that are made by users. i have one field in this table called parentfolderid. so by that i can store parent folder's id in my table so that i can have hierarchy of folders.
Now my problem is that there can be sub folders in the folder so by following code i get value upto second level but if there is hierarchy like
Root folder --> parent folder --> child folder --> grand child folder
Then it will not handle in my code so if any one can help me i would be very pleased.
--------CODE---------
Try
dr = temp.ExecuteDataReader("Select * from Folder where ID = ParentFolderID")
While dr.Read
Dim tNode As New TreeNode
tNode.Text = dr("Name")
Root = dr("ID")
Tree1.Nodes.Add(tNode)
Try
dr1 = dbaccess.ExecuteDataReader("Select * from Folder where ID <> ParentFolderID and ParentFolderID = '" & Root.ToString & "'")
While dr1.Read
Dim tChileNode1 As New TreeNode()
tChileNode1.Text = dr1("Name")
tNode.ChildNodes.Add(tChileNode1)
End While
Catch ex As Exception
Finally
dr1.Close()
End Try
End While
Catch ex As Exception
MsgBox(ex.Message)
Finally
dr.Close()
End Try
Please help me
|
|
|
|
|
|
|
Please read "How to get an answer to your question" in the top of the message board
Best Regards
3ala2
|
|
|
|
|
Hi prameela...
The .NET framework created by Microsoft is a software development platform focused on rapid application development, platform independence and network transparency.The .NET Framework is an environment for building, deploying, and running Web Services and other applications. It consists of three main parts: the Common Language Runtime, the Framework classes, and ASP.NET.
Cheer
Pavan Pareta
|
|
|
|
|
Hi Prameela,
i am also new to this .net technology. just i started reading .net. i will try to explain u what is .Net Framework.
.Net Frame work is an Environment for building, deploying, and running Applications (and also Webservices).
it is a software development plotform focused onrapid application development, platform independance and network transperancy.
in my own way i can tell u that the .net applications do not access the Operationg system directly, instead they use services of .net Framework.
using .net framework we can devlop the application using multiple languages. we can use the components which are developed in the language which is different from the language in whcih we are developing our application.
hope u got the basic idea about .Net Framework.
Regards,
Rahi
Judge your success by what you had to give up in order getting it.
|
|
|
|
|
I have two directories in the same root folder. Here's the structure...
Path Parent: D:\vhosts\somedomain
Path Child 1: D:\vhosts\somedomain\httpdocs\images\
Path Child 2: D:\vhotsts\somedomain\subdomains\admin\httpdocs\tools\modify.aspx
In Child 1 {somedomain} is the virtualdirectory for http://www.somedomain.com.
In Child 2 {admin} is the subdomain and virtual directory for http://admin.somedomain.com
Can I using some method of UNC paths, Physical Paths, Etc... Set things up in some way such that modify.aspx in Child 2 can upload images into \images\ in Child 1? Both have the same IUSR and IWAM and IUSR has read-write to \images\ in Child 1.
How do I map the call in my custom WriteToFile("\\machinename\\sharedfolder\\" + filename, fileresource) so that I can get the image uploaded into path Child 1 \images\?
If this is confusing I'm happy to clarify anything.
|
|
|
|
|
I am using Visual Studio 2005 to develop a client side control. However, after 3 days, I have yet to discover a reliable way to get it to download into the client side GAC. It does so only about 2% of the time, regardless of whether the control has changed. If any version has already downloaded, then I have to use "gacutil" to clear the GAC download cache before any successive version will install. I cannot seem to find any help online or in books about this either. It is as if no one is trying to develop custom downloadable client side controls (I am not talking about wrapping an html page around edisting web controls). This is a .NET activex-like control... a pure WinForm .NET assembly... not a COM wrapper.
|
|
|
|
|
Hi
Got a Q:
How do i insert eg. Customer info into a database from a web application?
, by using Visual Studio in ASP.Net (VB)
Thanx
-- modified at 16:01 Tuesday 31st October, 2006
|
|
|
|
|
You can take from This[^]
Best Regards,
Apurva Kaushal
|
|
|
|
|
I am having trouble ftp'ing a file from my local hard drive (ftptest.txt) to a mainframe system. I can command-line ftp the file fine, but I can't seem to ftp from ASP.NET 2.0. I keep getting error:
"The remote server returned an error: (501) Syntax error in parameters or arguments.".
here is my code:
' Get the object used to communicate with the server.
Dim request As FtpWebRequest = FtpWebRequest.Create("ftp://ibmmain/")
request.Method = WebRequestMethods.Ftp.UploadFile
' This example assumes the FTP site uses anonymous logon.
request.Credentials = New NetworkCredential("rme", "geac1", "ibmmain")
' Copy the contents of the file to the request stream.
Dim sourceStream As StreamReader = New StreamReader("C:\RME.LGNGEAC.EXTRACT")
Dim fileContents As Byte() = Encoding.UTF8.GetBytes(sourceStream.ReadToEnd())
sourceStream.Close()
request.ContentLength = fileContents.Length
Dim requestStream As Stream = request.GetRequestStream()
Any help would be appreciated.
regards,
RLevron
|
|
|
|
|
hi friends,
I'm trying a program in ASP.net where I need to connect to access Database dynamically.I've a gridview which'll display the results of a select statement. Can you please tell me all the steps involved in connecting to the database and displaying the results in a gridview ?
I'm new to asp.net & hence please provide all the steps that I need to do in order to get the output.
Thanks in advance...
Thank you all for your help..
|
|
|
|
|
Hi There are many ways to connect to database in ASP.net. Instead of telling you about my logic I would prefer you to use Microsoft Standards and tutorial for this.
Please visit http://asp.net/learn/dataaccess/default.aspx?tabid=63[^]
Regards
Tayyab
Lets work it Out.........!
|
|
|
|
|
Thanks Tayyab,
It's a great site.Got to work on DataAdapters,DataTables ,Datasets etc...It was wonderful to see the outputs..
Thanks a lot...
|
|
|
|