|
I think this is code useful for u
<appSettings>
<add key="ConnectionStrings" value="Provider=Microsoft.Jet.OLEDB.4.0; Data Source={0}"/>
<add key="dbfile" value="~/App_Data/data.mdb"/>
</appSettings>
Sure It's work
prabhakar......
modified on Saturday, September 19, 2009 4:29 AM
|
|
|
|
|
hi friends
i have a RSS URl i need to parse it showing as hyperlink with marquee action in one page .
the url is like this
http://feeds.reuters.com/reuters/INbusinessNews
how to read the url using asp.net and presenting like breaking news .
please guide me
bye
Naag
|
|
|
|
|
|
hi
thanks for your reply
http://capitalmarket.com in that site i am loking Capital Market - Live News
we will develop in asp.net i am looking for that .
any help
bye
naga
|
|
|
|
|
.NET 3.5 WCF provides syndication support for RSS/ATOM feeds. All you need is to create a SyndicationFeed object with available URL and it will read ever thing from desired URL. Then you bind readed items to some repeater and render them in some suitable form.
|
|
|
|
|
Hi all,
In a ASP.NET website, I have used Login View to show the Login Status. For Login I have used Login Control.
It is showing status correctly. But after few idle minutes, it is automatically login view text changing to "login"
But user is already logged in. I think this is Session problem. I have used below line earlier. I commented it now.
Still same problem.
<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="UseCookies" timeout="1400" />
pl.help me out
Ramesh Sambari
Knowledge is like honey.
Collect it, to make life sweet.
modified on Thursday, September 17, 2009 1:03 AM
|
|
|
|
|
specialdreamsin wrote: But user is already logged in
How do you know it?
specialdreamsin wrote: I think this is Session problem
What is your session timeout limit? Is it timing out before that?
specialdreamsin wrote: I have used below line earlier. I commented it now.
Still same problem.
You haven't provided any line.
specialdreamsin wrote: I have used Login View to show the Login Status
Do you really need a control for simple login purpose?
|
|
|
|
|
plz...Look at my Original Message now..
I unexpectedly ticked the option
Do not interpret HTML tags (good for code snippets)
While posting message.
pl.look in to it and reply me.
Ramesh Sambari
Knowledge is like honey.
Collect it, to make life sweet.
|
|
|
|
|
specialdreamsin wrote:
sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="UseCookies" timeout="1400"
What is that ? what is the use of stateConnectionString and sqlConnectionString over Inproc Session Mode ?
Please read this article,It will help.
Exploring Session in ASP.Net[^]
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
hi,
In my website, First is the Login Page. I used Login Control for that. On Successful Login I am assigning to a Sesssion
variable i-e Session("UserId")="user1". Next page is the Main.aspx, In this I used Login view control. It is showing as
user1 [Signout]. Its correct. After few minutes...if I am idle ... the Loginview message is changing to user1[Signin] in the
main page. Session("UserId") is still user1, but login view is showing wrong information.
This is the problem.
Plz help me.
Ramesh Sambari
Knowledge is like honey.
Collect it, to make life sweet.
|
|
|
|
|
Did you read the article link that I have provided to you ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Hi all,
I developed a WebSite. When I click one of the Links I am getting this error often. Not only that link almost all. This is coming when I first time click. Second time it is working fine.
Error Message is :
Error Page: http://192.9.200.22/RStationary/Dispatch.aspx
Error Message: D:\RStationary\Dispatch.aspx(1): error BC30456: 'InitializeCulture' is not a member of 'ASP.dispatch_aspx'.
Source : System.Web
Stack Trace : at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
at System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)
at System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean, completedSynchronously)
What could be problem...
Please help me out
Ramesh Sambari
Knowledge is like honey.
Collect it, to make life sweet.
|
|
|
|
|
First google hit[^]
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I think u not provided your InitializeCulture controls server tag......
may be check now
|
|
|
|
|
How can I get the local machine's IP address in a Test.aspx form ?
modified on Wednesday, September 16, 2009 11:43 PM
|
|
|
|
|
Rahad Rahman wrote: a Windows.Forms app?
This is the ASP.NET forum.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Try This
string ip;
ip=Request.ServerVariables("HTTP_X_FORWARDED_FOR");
if(ip==string.Empty)
{
ip=Request.ServerVariables("REMOTE_ADDR");
}
If It Helps Click It as Answer
|
|
|
|
|
This works fine..
string hostName = System.Net.Dns.GetHostName();
string clientIP = System.Net.Dns.GetHostAddresses(hostName).GetValue(0).ToString();
Response.Write(clientIP);
|
|
|
|
|
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.runtime.remoting>
<application name="AuthorizationApp">
<service>
<wellknown mode="SingleCall"
type="Server.SampleService, Server"
objectUri="Server.rem"/>
</service>
<channels>
<channel ref="tcp" port="8001" secure="true" impersonate="true" authorizationModule="Server.AuthorizationModule,Server"/>
</channels>
</application>
</system.runtime.remoting>
</configuration>
how to set the properties "impersonation" and "authorizationModule" inside my program .. im not using the configuration files.
|
|
|
|
|
It's an XML document, so you could presumably use an XmlDocument, and the DOM.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
This has nothing to do with ASP.NET
only two letters away from being an asset
|
|
|
|
|
|
Hi, I have aready seen this .. but didn't post it here.. thanks for doing it
I got my answer on this link only.
I am putting my code for others reference
static void Main(string[] args)
{
//TcpChannel channel = new TcpChannel(8080);
IDictionary props = (IDictionary) new Hashtable();
props.Add("port", "8080");
props.Add("secure", "true");
//props.Add("impersonate", "true");
//props.Add("authorizationModule", "AuthorizeUser");
BinaryClientFormatterSinkProvider cp = new BinaryClientFormatterSinkProvider();
BinaryServerFormatterSinkProvider sp = new BinaryServerFormatterSinkProvider();
IChannel chan = new TcpChannel(props,cp,sp);
ChannelServices.RegisterChannel(chan,true);
RemotingConfiguration.RegisterWellKnownServiceType(typeof(ns_registeruser.cls_registeruser), "ApplicationMain", WellKnownObjectMode.Singleton);
Console.WriteLine("Server Started .. ");
Console.ReadLine();
|
|
|
|
|
|
Hi,
Is there a reason one would prefere Request.Form instead of the UpdateModel(..)?
Another question:
If one haves a class (generated by linq to sql) with two properties like:
SomethingId,
Something
Being SomethingId an int and Something the object,
For example:
Table Messages {...,FromId, ..}
is mapped to
Class Message {...,FromId, From, ...}
Being From an object of lets say type User
So, my question is how is the procedure to edit these kind of objects if I'm using Request.Form?
Between A and B:
Way A:
1. Retrieve the object obj being edited from the repository, obj = objsRepository.RetrieveById(..)
2. x = Request.Form["SomethingId"]
3. obj.SomethingId = x
vs
Way B:
1. Retrieve the object obj being edited from the repository, obj = objsRepository.RetrieveById(..)
2. x = Request.Form["SomethingId"]
3. xAsObject = somethingsRepository.RetrieveById(x)
4. obj.Something = xAsObject
Which one is the correct way ??
(Of course in my form I wont have "objects".. just strings)
|
|
|
|