|
hello,
i have a problem with my asp.net application.
Description of the bug:
while i am attending to create a directory or a file in my server, i use the Filedirectory /Directory but the problem is some times while i put \\\\ it is not understanded by the framework and sometimes \\ is also not recognized.
Do something exist like a standard to avoid this kind of problem
regards
dghdfghdfghdfghdgh
|
|
|
|
|
ellllllllie wrote: some times while i put \\\\ it is not understanded by the framework and sometimes \\ is also not recognized.
what do you meant it does not recognize?
try
string folder = @"c:\my documents\special folder\projects\test1";<br />
string file = @"c:\folder name\files\file.xml";
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
i have
a remote dir.
so i have to use : \\server\directory
some time i put \\server\dir
sometimes : \\\\server\\dir
is there something commun or standard for this useage?
regards
dghdfghdfghdfghdgh
|
|
|
|
|
Hi,
if your directory is a folder that exists within your server folder,then there is a option for that.
Server.MapPath("FolderName/")
This detects the folder that your searching for.Check this Once
regards,
Sundeep G
|
|
|
|
|
Hi all,
I am new in using ajax.
I going to change pop-ups to modal pop-up using ajaxToolkit:ModalPopupExtender.
In my exisiting application i'm calling aspx page as an pop-up.
As far as I search through net, we need to write pop-up content inside <asp:panel xmlns:asp="#unknown">.
But I don't want to do that. I want to call aspx page only using ajaxToolkit:ModalPopupExtender.
Is this possible. If yes can I get example.
If not any alternative? or can I call aspx page in <asp:panel>
Please help me.
Waiting for reply.
Thanks in advance
|
|
|
|
|
You canot call another page in panel.Instead of that you can use iframe.
|
|
|
|
|
put it one iframe inside your panel..and give src your aspx page..
i think you will get that...
|
|
|
|
|
Hi,
i want to change the default values form an CreateUserWizard, ich want to change the password length and the RegExp... in asp.net 3.5
This dosent work
configuration
system.web
membership defaultprovider="AppMembershipProvider"
providers>
add name="AppMembershipProvider" applicationname="MeinApp" connectionstringname="membershipConnectionString" requiresquestionandanswer="false" requiresuniqueemail="false" minrequirednonalphanumericcharacters="0" minrequiredpasswordlength="3" type="System.Web.Security.SqlMembershipProvider"
providers
system.web
configuration
==
Warning 3 The element 'system.web' has invalid child element 'providers'. List of possible elements expected: 'anonymousIdentification, authentication, authorization, browserCaps, clientTarget, compilation, customErrors, deployment, deviceFilters, globalization, healthMonitoring, hostingEnvironment, httpCookies, httpHandlers, httpModules, httpRuntime, identity, machineKey, membership, mobileControls, pages, processModel, profile, roleManager, securityPolicy, sessionPageState, sessionState, siteMap, trace, trust, urlMappings, webControls, webParts, webServices, xhtmlConformance, caching'. C:\Dokumente und Einstellungen\Benny\Eigene Dateien\Visual Studio 2008\Projects\xxx\xxx\Web.config 35 10
THANX!!!
|
|
|
|
|
Hi,
I want to display data from db in 3 columns ;
eg:
Name:XX Name:XXXX
Age :XX Age :XX
Where Name & Age are the two fields in the db.
Plz help.
|
|
|
|
|
where you want to display elaborate your question...
Government Dyal Singh College Lahore.
|
|
|
|
|
|
Hi,
I want to display data from db in 3 columns on the asp.net webform:
|
|
|
|
|
Hi,
So where is yr problem.
R u trying to say that. U have only two columns in DB and u want to display in three column.
Please explain.
Regards
Anil Pal
|
|
|
|
|
What do you want exactly...
|
|
|
|
|
I am developing a webapp and my page is lacking space for listing details,so inorder to save space i have to display data from the db Horizontally instead of vertical alignment.
|
|
|
|
|
You can do that very easily
You have to first spilt the data sourse into two equivalent part
and then you can use two gridview or any data control to display
data using two different data source...
I hope this will definetly work..
If you have any doubt here you can simply mail me
vinod8812@gmail.com
Thank You
Vinod Kr.
Software Engineer
EBC Publishing Lucknow
|
|
|
|
|
hey guys
i have this Exception when i try to call web methos in remote biz-talk server
i can work for a few hours\days but this exception start appering when there is alot of work around this biz-talk
i searched the web and found this article
http://msdn.microsoft.com/en-us/library/aa560610.aspx
is there any this alse to do agains it ?
i dont want to mess with this registry things.. Confused
can i add somthig to my web.config file to avoid this exceptions ?
please help me im desperate
i tried this code but no luck for some reason
protected override System.Net.WebRequest GetWebRequest(Uri uri)
{
System.Net.HttpWebRequest webRequest = (System.Net.HttpWebRequest)base.GetWebRequest(uri);
webRequest.KeepAlive = false;
webRequest.ProtocolVersion = System.Net.HttpVersion.Version10;
return webRequest;
}
P.S
here is the Exception Details:
System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: Only one usage of each socket address (protocol/network address/port) is normally permitted xxx.xxx.xxx.xx:80 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) --- End of inner exception stack trace --- at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request) at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at Bezecom.Logic.BezeqWebService.Callware.getUserDetails(String extension, String password) at Bezecom.Logic.BusinessLogicLayer.Managers.BezeqWSManager.GetUserDetails(String Extension, String Password)
|
|
|
|
|
Hi,
R u working behind the proxy server?
Regards
Anil Pal
|
|
|
|
|
what do you mean ?
im working with webservice object
i added a web reference to class lib that i created and i use this class lib in my web site
to problem seems to be overflow of TCP TIME_WAIT connection as the OS define them to be opened for 240 sec by default.
|
|
|
|
|
Hi i want some forms from project to be copied to my new project. How to achieve it? Can anyone help?
|
|
|
|
|
right click on your project -> add -> add existing
Government Dyal Singh College Lahore.
|
|
|
|
|
Or you can also directly open you project folder and you can directly Copy .aspx and aspx.cs Files of you form and paste in your new project
|
|
|
|
|
hi to all
Function:
---------
public static int GetScalar(string query)
{
OdbcConnection myconnGS = new OdbcConnection();
OdbcCommand mycmdGS = new OdbcCommand();
myconnGS = DBManager.getConnection();
mycmdGS = new OdbcCommand(query, myconnGS);
return mycmdGS.ExecuteScalar();--error occured this line(patriculy mycmdGS)
myconnGS.Close();
}
error:
Cannot implicitly convert type 'object' to 'int'. An explicit conversion exists (are you missing a cast?) D:\aesweb\WebSite\Controls\MainBannerAdControl.ascx.cs 98 16 D:\aesweb\WebSite\
Known Is Drop.Unknown Is Ocean
|
|
|
|
|
Well as the error message is saying, the result of an OdbcCommand.ExecuteScalar is an object. You have to cast this one to return an int. Have a look here:
http://msdn.microsoft.com/en-us/library/system.data.odbc.odbccommand.executescalar.aspx
And your myConnGS.Close() will never be executed. Try to improve your design here.
Regards
Sebastian.
|
|
|
|
|
write the following code instead of return mycmdGS.ExecuteScalar()
return (int)mycmdGS.ExecuteScalar();
I hope it will work now
Thank YOu
Vinod Kr.
Software Engineer
EBC Publishing Lucknow
|
|
|
|