|
|
You want a replacement for the HTML Browse button to use with ASP.NET C#?
This still works though:
<input type=file id=myFile runat=server /> I ask because that control still works fine as long as you just set it to runat=server .
CleaKO
"I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that.'" - Tommy (Tommy Boy) "Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)
|
|
|
|
|
i add a FileUpload control an a button in the update panel but when FileUpload set to file and button clicked i recieved the error and PostedFile property of File Upload is null
but when i don't use Update Panel all things is Ok
what's the problem ??
With Thanks
MHF
|
|
|
|
|
We have developed a .net application with back end sql server 2000. Operating system on server machine is Windows Server 2003.Client machine's OS is Windows XP. Sql server authentication is given. I can access the sql server from the client machine. Butw when trying to access the sql server through the .Net application it shows an error 'Sql Server does not exists or access deneid'.
I am using the same connection string for a windows application and it gets connetced and works fine.
Please help me
|
|
|
|
|
hi there:
Just guess...maybe the ASP.NET account does not have permission to access the DB
<< >>
|
|
|
|
|
Can you connect to the database server from the web server machine?
|
|
|
|
|
Hi,
I have a button named btn1, now under the btn1_click event i wrote the following:
if(condition)
{
}
else
{
this.RegisterClientScriptBlock("",DisplayAlert());
}
-------------
public string DisplayAlert()
{
string script="";
script += ;
script += "alert('Text');";
script += "
}
Now the alert is being displayed but the entire page is being blank when displaying the alert box.
The requirement is that original page should be at the background while displaying the alert message.
Thanks
Gautham
|
|
|
|
|
Actually the javascript has to get registered on page load. In your case it is happening after you click the button.
Best Regards,
Apurva Kaushal
|
|
|
|
|
You can registrer the buttons onclick event by using button.Attributes.Add("onclick","DisplayAlert();");
If you now add the javascript function to the page's html and remove the original click event in code it should all work fine.
HV
|
|
|
|
|
Try it using RegisterStartupScript(Type, string, string), it will work as per ur expectation.
Confidence comes not from always being right, but from not fearing to be wrong.
Mihir..
|
|
|
|
|
Hi,
I m new to this forum, would anybody help me please? I have deployed a web application on the server before testing it on two similar environments. It was working fine on all stages but when deployed on production following error displayed. Also note that this error does not occur all the times but an intermittent issue.
My application home page carries two frames, lower frame always is works fine while the error message is displayed on the upper frame.
Thanks and regards,
Rao
Please view the problem.
Server Error in '/' Application.
________________________________________
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\root\e5c4639d\fa21a9ea\idwvsaed.res
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC31509: Unable to open resource file 'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\root\e5c4639d\fa21a9ea\idwvsaed.res': The system cannot find the file specified.
Source Error:
[No relevant source lines]
Source File: vbc : Line: 0
Show Detailed Compiler Output:
c:\windows\system32\inetsrv> "c:\windows\microsoft.net\framework\v1.1.4322\vbc.exe" /t:library /utf8output /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net files\root\e5c4639d\fa21a9ea\assembly\dl2\b5f59fe7\00d25991_8fe2c401\
-----
Cordially,
Rao
|
|
|
|
|
just a suggestion: delete all temporay files...then re-compile....
Hope it's ok
<< >>
|
|
|
|
|
enjoycrack wrote: delete all temporay files...then re-compile....
That usually works, but you need to make sure you get everything...I'm sure enjoyCrack meant this, but no need to delete "Temporary Internet Files" from IE - need to look in <windir>\Micrisoft.net\Framework\xxxx.xxxx\Temporary ASP.NET files directory - you'll see a sub folder for each app your server is running. Make sure nothing is locking the files (that's the fun bit - close IE, VSS AND issue an IISReset / stop) and delete the offending folder. Once deleted, don't panic if your app appears not to load for a bit - it can take a while, since the it essentially has to be re-built on the server....but it'll get there eventually...
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
plz help me..how can i create a popupwindow tat returns a value to the called window...using the c# code
|
|
|
|
|
You can have a look at this[^] article. This will will give you the detail idea how to perform that.
Best Regards,
Apurva Kaushal
|
|
|
|
|
I have an asp:button which when clicked runs a quick check of some database values, and then does a Response.Redirect("some_page.aspx"); to one of two pages, depending on the result.
I want to be able to add a javascipt popup window to this button as well that will display some parallel information. At the moment I can only make it either do the redirecting, OR open the popup. How can I make both happen?
Thanks,
Alice
|
|
|
|
|
I think you can attach javascript window.open to open a popup and then can write your server side code for redirect it to another page. But honestly I don't think it is a good practice.
Best Regards,
Apurva Kaushal
|
|
|
|
|
I am facing a problem , i have to download images from my asp.net application to the server for which i use mapping in which i create a temperory drive on the server and then map the images before downloading it in the respective folder of the server .
I am using the impersonation concepts , when i download it on XP it is working fine but in case of win 2k its not working
eror 1314 always appears means denying the access
its becoz asp.net application requires SE_TCB priveledge in win 2k
can anybody send me the code by which i can make it work on windows 2k
impersonation for win2k or send it any related link
my account is
zmir@e-emphasys.com
|
|
|
|
|
Hi,
I'm calling a web service method and I occasionally get a server timeout error. I'm notified of this by a message which says I'm not trapping the exception yet the error occurs in a try catch clause which catches an Exception object.
What's going on? Is this type of exception not a standard type of exception?
|
|
|
|
|
you can set the server.timeout period. This can eliminate the error.
Sathesh Pandian
|
|
|
|
|
And if the server is unavailable, how do I handle the exception?
|
|
|
|
|
hi i have two tables like want to display based on the date:
eg:
table1:
Id cardDate Intime1 Outtime1
1 12/22/2006 09:00 20:00
2 12/22/2007 09:00 20:00
3 12/22/2006 09:00 13:00
and table 2:
Id leaveDate Intime2 Outtime2
3 12/22/2006 13:00 20:00
4 12/22/2006 09:00 20:00
5 11/11/2006 09:00 20:00
If i select the date 12/22/2006" then it want to display like:
Id Carddate InTime1 Outtime1 Leavedate Intime2 Outtime2
1 12/22/2006 09:00 20:00 null null null
3 12/22/2006 09:00 13:00 12/22/2006 13:00 20:00
4 12/22/2006 09:00 20:00 null null null
I am week in sqlquery,plz hlp me...,
Magi
|
|
|
|
|
your sql query should like this
<br />
select a.*,b.* from teble1 a, table2 b, <br />
where datedifff(dd,a.carddate,b.leavedate) = 0<br />
|
|
|
|
|
No it willn't work taht much exactly
See once again my pre msg output.........,
Magi
|
|
|
|
|
select CD.*,LD.* from Table1 as CD,Table2 as LD where cd.carddate=ld.leavedate and CD.carddate='"+ inputdate +"' and LD.leavedate='"+ inputdate +"';
I think it will be helpful to u
Best regards
Pathan
GOD HELP THOSE WHO HELP THEMSELVES
|
|
|
|