|
Hi to All,
I am working on an internal web application. For this I am using ASP.NET 3.5, WCF for web service. WCF is handling all the database related work. I am using windows authentication for this application. In one machine I am hosting my web service by desktop application and Database server is different machine. I am using SQL server 2005 as database server.
After deploying the web application on IIS when I am accessing the database through web service, I cannot get the request login name in Database profiler. I am just getting the login name of user where I'm hosting the web service.
Thanks
Navi
|
|
|
|
|
Hi all
im trying to write a file to a database(stored as image), my program works fine in debug mode, and my file name is c:\\Test\\Test.jpg(contained in tboPath.Text)
When i run the application as an actual webpage from the server i get the error message "c:TestTest.jpg file name not found", even though the file is there. does anyone know whats causing this.
SqlParameter imgLogo = new SqlParameter("@LogoImage", SqlDbType.Image);
imgLogo.Direction = ParameterDirection.Input;
if (tboPath.Text != "")
{
imgLogo.Value = File.ReadAllBytes(tboPath.Text);
SqlCmd.Parameters.Add(imgLogo);
CheckImageExist(strFileName);
}
Thank you
|
|
|
|
|
omlac wrote: i get the error message "c:TestTest.jpg file name not found
Did you mean to forget the slashes, or was that exactly what the error message said?
Also remember that on the server the web application runs on the server. If this directory exists on the client (the machine your browser is on) then the web application cannot access it.
|
|
|
|
|
Thank you very much for your response.
1. There is no such folder on the server, but im getting the file from my machine(the one im running from).
Would you know how im must write the path so that its read even if im not running in debug.
2.im using javascript to display error messages so thats why c:testtest.pgn- at first i was thinking running on the server removes the backslashes.
Thank you very much.
|
|
|
|
|
Hi all,
I have a problem in java script...
in asp.net i have a repeater.. in that repeater i have some controls and a dropdownlist.... i am showing message if user select 0 index...
function OnChangeDropDown( DropDown, DivError )
{
alert (DropDown);
alert (DivError);
var DivError1 = document.getElementById( DivError )
if ( DropDown.value == "0" )
{
DivError1.style.display = '';
DropDown.focus();
return false;
}
else
{
DivError1.style.display = 'none';
return false;
}
}
***********************
Repeater Code :
<asp:repeater id="repStudentPromotion" runat="server" xmlns:asp="#unknown">
<headertemplate>
<itemtemplate>
*********************************************************************
Calling Style in CS File:
foreach (RepeaterItem row in repStudentPromotion.Items)
{
DropDownList ddlStatus = (DropDownList)row.FindControl("ddlStatus");
HtmlGenericControl DivError = (HtmlGenericControl)row.FindControl("DivError");
ddlStatus.Attributes.Add("onchange", "return OnChangeDropDown(this,'" + DivError.ClientID + "')");
}
i want to add this attribute in aspx file as
onchange="return OnChangeDropDown(this,<%$ DivError.ClientID %> )"
*******************************************************************************
but there is a error in second parameter....
my question is how to pass controlID in javascript as a parameter instead of 'this'
waiting for reply...
Hope For The Best............
anudeep jaiswal
09891599687
Noida - India
|
|
|
|
|
Format the post to make it more readable. Use the preview button to check it before posting.
Have you tried this.id; OnChangeDropDown(this.Id...)
only two letters away from being an asset
|
|
|
|
|
hi,
Thanks For Sending Me This...
But My Problem Is How To Pass Two Control Id To Java Script Function...
Suppose i Have a Java Script In Which It Validate Dropdown's 0 index onchange...
the first parameter is 'this', means dropdown id but how to pass div id which is runat="server"
my function
function OnChangeDropDown( DropDown, DivError )
{
var DivError1 = document.getElementById( DivError )
if ( DropDown.value == "0" )
{
DivError1.style.display = '';
DropDown.focus();
return false;
}
else
{
DivError1.style.display = 'none';
return false;
}
}
calling Style...
onchange="return OnChangeDropDown(this,<%# DivError1.ClientID %>)"
Now Problem is How To Pass ControlID IN Java Script Function.......
Hope For The Best
|
|
|
|
|
I need to drag an image from div and to drop in another div.....
|
|
|
|
|
i think there is a control for dragging the panels in the ajax tool kit.
Apurv
A man is but the product of his thoughts. What he thinks, he becomes.
.......Mahatma Gandhi
Be the change you want to see in the world.
.......Mahatma Gandhi
|
|
|
|
|
madancode wrote: Forum: ASP.NET
Subject: Drag and Drop image
Sender: madancode
Date: Friday, January 9, 2009 6:13 PM
I need to drag an image from div and to drop in another div.....
Changing Profile name and asking the same question multiple times will not help you to get answer quickly .
Please don't cross post.
cheers,
Abhijit
CodeProject.Com MVP
|
|
|
|
|
hi every body
i have project with asp.net 2003
and i want to use ajax in it because i have gridview and i want to update it automaticly every 5 minutes without page go to server and comeback
how can i do it in vs 2003
thanx in advance
|
|
|
|
|
|
Try Anthem.NET. I have used in several projects and it worked great.
Anthem.Net
|
|
|
|
|
thanx for ur help
but can u tell me how can i use Anthem.net in my project ??
and thanx again for your help
|
|
|
|
|
Is google broken where you live ? Are you just stupid ? I can't help but feel that whatever is stopping you from googling this library, downloading it, reading the docs and using it, will probably also make any answer you may recieve a total waste of time for the person trying to help you.
http://anthem-dot-net.sourceforge.net/[^]
Two seconds with google. You know, the stupidest people seem to be on the ASP.NET forums, I guess that's because most outsourced work, is websites.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
You can use AJAX in any framework you want. It's just javascript. Or, do you mean you want the ASP.NET AJAX framework, that exists to help people who can't learn AJAX for themselves, to work in ASP.NET 1.1 ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
hi....
actually am doing a simple application using
" WCF Service Application " & " ASP.NET Web Application "..........
my code is correct and everything is perfect..
but when i run, it displays the following message....
" An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue "
when i run in the morning the output is displayed..but after sometime , when i run it shows that message.....
whats the solution...??...
|
|
|
|
|
Didn't you ask this question already?
|
|
|
|
|
Colin Angus Mackay wrote: Didn't you ask this question already?
3 times and in 3 different Forums
cheers,
Abhijit
CodeProject.Com MVP
|
|
|
|
|
Hi Team,
The given functional is required to upload file without using fileupload
control via asp.net.
Could anybody help me out from this scenario.
Thanks & Regards
Tarini Singh
Sr. Software Engineer. (IT)
|
|
|
|
|
You could use the ASP.NET 1.x solution (before there was an ASP.NET upload control) and create a HTML control instead.
See http://aspnetupload.com/[^] for more details.
|
|
|
|
|
Please guide me the Steps to configure VSS for MS SQL Server 2005
|
|
|
|
|
Amandeep Singh Bhullar wrote: Please guide me the Steps to configure VSS for MS SQL Server 2005
That's very interesting question Amandeep. Even I have never done this thing. Just googling and Got this Link[^]
Hope this will helps you
cheers,
Abhijit
CodeProject.Com MVP
|
|
|
|
|
|
i have installed phalanger.sample application taken from code project is working.in sample project i am getting <%@ Page Language="PHP" in dotnet.But when i create new application(indise that new form) i am not getting Language option as PHP (Language="PHP") .How can i create PHP page inside dotnet.
Thanx
modified on Friday, January 9, 2009 4:43 AM
|
|
|
|