|
Amit.Jagtap wrote: Is it necessary to publish a web site before uploading?
This question seems to be bit confusing...
As far as I know -- Uploading a site to a server is Publishing a website in a webserver.
Uploading (Publishing)
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
A file can be physical present in the location but may not be actually Included in the project. It has to be explicitly Included in you project (By anychance if it is excluded from the Project for any reason)
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
Is it necessary to publish and/or deploy a site before uploading?
|
|
|
|
|
I have a data view and need to get the index of a search value in one of its column .
How can i do it without using for loop ....
Is there some way IndexOf() can be used on a column .....
|
|
|
|
|
Iam having a Employee Form which contains Employee Details and Employee Photo which should be stored in the Oracle table with the Employee Information and while modifying the Data it should be retrieved to the Employee's form
Main things are
All the Photos will be stored in a folder which should be retrieved by the Employee Number.
and how to store the information as well as image into Oracle database.
Next retrieving that info info and image to ASP.Net2.0
thank u in advance
Priya
|
|
|
|
|
Hi priya actuly I don't know it for oracle but i had done it in sql server ok. If u can convert then try to it into oracle. ok
I am explaining step by step.
1. just set datatype as a binary (or somewhat like which support binary data into oracle)of photo field in database.
2. Now convert your employees image into binary using below code.
//For Image storing into database after converting into binary.
// This code is writen in C#.NET.
byte[] binary = null;
if (FileUpload1.HasFile)
{
binary = new byte[FileUpload1.PostedFile.ContentLength];
binary = FileUpload1.FileBytes;
}
// Below line is command parameter it will used while u are inserting data using stored procedure
Cmd.Parameters.AddWithValue("@U_Photo", binary);//Photo
3. The above code will convert into binary and stored it into database.
4. Now retriving it back from database
//For retriving image from database and place into image control
//Below code is function named RetrievedImage()
// put this code into differnt page and set this page as a Image1.ImageUrl(thispage.aspx? pid='pid')
// and Image1 will place on your edit employee page. Ok
private System.Drawing.Image RetrieveImage(int pid)
{
System.Drawing.Image image = null;
try
{
strcon = System.Configuration.ConfigurationManager.AppSettings["ConnectionString"];
Con = new SqlConnection(strcon);
Con.Open();
Cmd = new SqlCommand("SELECT Photo_Field FROM table_Name where phot_Id='" + pid + "'", Con);
Cmd.CommandType = CommandType.Text;
SqlDataReader Dr = Cmd.ExecuteReader();
if (Dr.Read())
{
byte[] imageData = (byte[])Dr["U_Photo"];
MemoryStream memStream = new MemoryStream(imageData);
image = System.Drawing.Image.FromStream(memStream);
}
}
catch (Exception ex)
{
Session["Error"] = ex.Message.ToString();
}
return image;
}
I hope it will work fine. All the best.
|
|
|
|
|
How can we write textbox keypress event in Asp.net
thanx in advance
prabumj@gmail.com
|
|
|
|
|
DO you want it in javascript or server side
in javacsript Register the client script
TextBoxId.Attributes.Add("OnClick", "javascript:yourfunctionName");
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... "
|
|
|
|
|
can u help me in how to include Javascript Function of keypress in asp.net.
Thanx
prabumj@gmail.com
-- modified at 2:20 Monday 24th September, 2007
|
|
|
|
|
prabumjkaran wrote: how to include Javascript Function of keypress in asp.net
write this on the server-side to bind the javascript function to the OnKeypress event of the textBox.
txtBox.Attributes.Add("onKeyPress", "Myfunction();")
here is a sample client-side javascript function to include in .js file or you can include in the HTML part of the aspx page within the block...
<code>function Myfunction(){
if(event.keyCode == somevalue)
//put your code
}</code>
<div class="ForumSig"><FONT face=verdana color=brown size=2>Regards<BR><FONT face=verdana color=brown size=1><b>J O H N </b><BR>
"Even eagles need a push." <b>David McNally </b><HR size=1></div>
|
|
|
|
|
prabumjkaran wrote: How can we write textbox keypress event in Asp.net
Sandeep Akhare wrote: TextBoxId.Attributes.Add("OnClick", "javascript:yourfunctionName");
just to set the record straight...
TextBoxId.Attributes.Add("OnKeyPress", "javascript:yourfunctionName");
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
OOPs i interpret as mouse click :->:->
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... "
|
|
|
|
|
|
You can try with Sql Server Agent and the extended stored procedure xp_sendmail .
Set up a job through Sql Server agent that wakes up and check's at proper intervals whether any job to be served ( any notification mails to be sent).
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
|
hai i m new to asp.net, which ctrl is best to use Html / Server
eg i want to add text box ,for that HTML is best or Server ctrl is best
thanx
prabumj@gmail.com
|
|
|
|
|
If one was better than the other in all cases, we wouldn't have them both.
server controls are useful where you want the framework to remember the value of a control when a postback occurs ( as in, when someone clicks a button, etc )
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Thank you
prabumj@gmail.com
|
|
|
|
|
hi friends
I installed enterprise libray 2.0.
for example
i open cache block.it will show two categgory
1.cache application block(Nunit tests)
2.cache application block(VSTS tests)
what is Nunit test and VSTS test
|
|
|
|
|
An nunit test is a test using the nunit framework. A VSTS test is a test using Visual Studio Team System.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hi thanks
what is the differnce in both?
which is best one?
regards
saravanan
|
|
|
|
|
A unit test is a pretty simple thng, I doubt either framework is 'better'. NUnit is free, VSTS costs about $20,000 ( it does a lot more than just unit tests ). NUnit is probably also more widely accepted, it's sure older.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
thanx
u have any good link regarding this.
regards
saravanan
|
|
|
|
|
Hi,
Does anyone know how can i embbed the content of my aspx web page (containing data in various controls like datagrid, panels... created dynamically) into an email. I have a little idea of it that i need to render the content into html and then can send it... though not a very clear picture. I have used asp.net ( with C#) many a times to send emails but i want to embed a web form now as the my web page is vast... Please show the way through this?
I need this urgently, Please advcie ASAP
Thanks in advance.
Bhawna
|
|
|
|
|
I have created mainProject in Webapplication using VB.Net.Created another project i.e Project2 under that solution.This is For accesing Database we have created the class file.Main Project created the object to access the class.It's working fine
But if u load the whole project in another machine,it's not accessing the class.If u debug,it's not accessing the class.we gave Reference and also created the object in the web page to access the class.
Can anyone help me,regarding this problem.
My code is, GetList is a function of the class clssearch.
Imports project2
Private obj1 as clssearch
Dim ResDT as DataTable
ResDT = obj1.GetList() 'Here it's not accessing the function.In the debug mode also,it's not
accesiing class.So ResultDT is nothing
If Not ResultDT Is Nothing Then
'some code
Else
lblMsg.Text = "No Results Found!"
radsgr
|
|
|
|