|
how can i make a form that have tow component ... file field and image ... and when i select the file i can see that preview in image component witoutpostback or save the posted file in server !
the main problem is that when i changed the src of image to somthing like this :
src="file:///D:\2.gif"
the explorer dont shown the image .... in html source i can see the address of image but when i go to properties of image in explorer address is not available !!!!
when u save a page with explorer , the images saved with relative path of client , why when i use the absolute path of image in client computer i cant see them and images is not available !!?
is there anyway to do somthing like this ?
-- modified at 22:20 Thursday 6th September, 2007
|
|
|
|
|
i just want to get a small project in ASP can any body help me on this. how can i bid for a project i cannot see any project in ASP all of them are in ASP.NET
thanks
|
|
|
|
|
There are no projects to bid for here. Are you talking about some other site?
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi
function TotalBudgetAmount()
{
var intCount=2;
var txtBudgetAmount= document.getElementById("dgridBudgetAllocationDetails__ctl"+intCount+"_txtCurrentBudgetAmount");
var TotalAmount=0;
while (txtBudgetAmount != null)
{
alert("hai");
if (parseFloat(txtBudgetAmount.value))
TotalAmount = TotalAmount + parseFloat(txtBudgetAmount.value)
intCount += 1;
var txtBudgetAmount=document.getElementById("dgridBudgetAllocationDetails__ctl"+intCount+"_txtCurrentBudgetAmount");
}
var lblTotalBudgetAmount = document.getElementById("dgridBudgetAllocationDetails__ctl" +intCount+"_lblTotalAmount");
if (lblTotalBudgetAmount != null)
document.write("The number is "+ parseFloat(TotalAmount).toFixed(2))
}
this is my code here i need to add text bob value and put in to label but here values are not adding i thougt error in
var txtBudgetAmount= document.getElementById("dgridBudgetAllocationDetails__ctl"+intCount+"_txtCurrentBudgetAmount");
this line please review this and reply me thank u
reg
nantha
|
|
|
|
|
pass it with the arguments _lblTotalAmount.ClientID
For More Info Send me whole Code
Best Regards,
Chetan Patel
|
|
|
|
|
How to get the textbox values in the datagrid using javascript please help me
Reg
nantha
|
|
|
|
|
You have to pass the <textboxname>.ClientID as an argument in the function
from where you are calling
ex..
onClick="show('<%TextBox1.ClientID%>');"
Best Regards,
Chetan Patel
|
|
|
|
|
Hi Guys,
I already posted some of my questions about reading something from excel file, but there's no absolute answer yet.
Actually, what I am trying to do is to extract all the data from my excel sheet1 and save it into the MSSQL table.
The condition of my excel file is 5MB to 7MB in size with macro in it, and has 20 columns.
Do you think is it possible to transfer the excel data into the MSSQL2005 table?
I've been solving this almost a week already. I hope you could help me
Thank you
hifiger2004
|
|
|
|
|
Hi,
May I know if how can I call an Excel Macro from my ASP.Net?
Thanks
hifiger2004
|
|
|
|
|
Hi
I would appreciate any assistance with the above.
I am use to VBA in Access which is a 1 line code - docmd.tranfertext... to import information into an access database.
I am working with VB.net in ASP.net. I am new to this environment.
I already have a table tblcurrency. I want to update my table with text file C:\Textfile.txt
I will change the paths later - just want the code to work first
The error is:
Syntax error in INSERT INTO statement. - Microsoft JET Database Engine
My code is:
Dim cnn As OleDbConnection
Dim strSQL As String
Dim Debug As Diagnostics.Debug
cnn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source = c:\Inetpub\wwwroot\TestDB\DB\Bonus.mdb")
cnn.Open()
strSQL = "INSERT INTO [TblCurrency] (Country, Year) SELECT F1, F2 FROM[Text;HDR=NO;DATABASE=C:\;].[test.txt]"
Dim objCommand As New System.Data.OleDb.OleDbCommand(strSQL, cnn)
objCommand.CommandText = strSQL
objCommand.ExecuteNonQuery()
cnn.Close()
Thx
Rykie
|
|
|
|
|
VBscript and VB.NET are totally different. What you're dong here, just plain won't work. You want to read the text file in VB.NET, parse it, and then use that to write proper SQL for Access.
System.IO.File.ReadAllLines will read your file into a string array, that's a good place to start.
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 )
|
|
|
|
|
Hai friends,
I am having a problem in my asp.net project.I have a form that has some anthem dropdowns which is data binded.I am opening a new page as popup and adding some data to the database.I wants the dropdown to update the added values when the popup is closed.I cant use
on child page because it destroys the values in the text boxes.
I can call a javascript function in the parent page like..
and the function in parent page as
function UpdateCity()
{
document.getElementById('<%=ddlCity.ClientID%>').Databind();
}
But i cant get the databind to work.Can anyone help me...Is there any other way to accomplish this..?
|
|
|
|
|
Sorry Guy you can not use .DataBind method you must have to refresh the page and do code on server side
Best Regards,
Chetan Patel
|
|
|
|
|
Is it really possible to start a program that resides in the server from a web application?
I am using following code:
<br />
using System.Diagnostics;<br />
<br />
Process startNotepad = new Process();<br />
startNotepad.StartInfo.FileName = "notepad.exe";<br />
<br />
startNotepad.StartInfo.UseShellExecute = true;<br />
startNotepad.StartInfo.CreateNoWindow = false;<br />
<br />
startNotepad.Start();
This works while debugging the page. I can see notepad start. But when I try it in a server I dont see Notepad, but I do see a process in task manager started
|
|
|
|
|
The owner the process started from your web application is ASPNET. ASPNET does not have an active desktop, thus, the process will run but will not display.
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
Does that mean I could run an application (.exe) in the background (say one without a user interface) that I upload to my server using this method? Say, for example, one that sends out emails to a list I upload... How about one that wipes the server hard-disk.. eek...
Fred
|
|
|
|
|
If ASPNET's access is more than its default access, you are opening up your web server to some nasty security issues. There are more secure ways of doing running a process.
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
is it possible to make aspnet has the rights then?
|
|
|
|
|
It is possible but not advisable.
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
I guess it has to be a security issue, am I right?
|
|
|
|
|
Yes, it can be a security issue. Also, you loose a lot of control of your application since you are running mulitple processes. Since your web application may have several user using your application at the same time, running several of the same local processes can be come a resource hog or cause some unforeseen conflicts. If a local process fails, how do you recover?
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
ok, I understand now. thanks for the answer
|
|
|
|
|
hi,
can somebody tell me how can i automate the website according to system display settings?
for e.g if i open a website on one system which has resolution setting set to 800 then my website automatically adjusts itself to that resolution. And if i pen the same website on other system with resoltuion of system set to 1024 then my website should get automatically adjusted to that resolution.
thanks,
harry
|
|
|
|
|
You can get the system display settings by using screen.width and screen.height, although I'm not sure if that's what you need.
There's also screen.availWidth and screen.availHeight, which are the available width and height.
|
|
|
|
|
Hi All,
I am fetch data from XML File and show that data in GridView. Now when I edit any of the row in a GridView I need to updated row to the same XML File.
I am using Ajax toolkit HoverMenuExtender for showing Edit and Cancel.
Please help me...
Thanks in advance...
|
|
|
|