|
ya If we split the logical layers then we can do that easily. Web service is an ultimate solution.
|
|
|
|
|
Web service is an ultimate solution but if you think this way is not possible you can move just the reservations table on web service and you can synchronize other tables at a specific time. On this way you have enough time to convert all your database to web service. Good luck!
|
|
|
|
|
|
Make the expand image runat=server . You can use FindControl() method to find this image and toggle it's visibility depending on your condition.
|
|
|
|
|
|
How is this an ASP.NET question ?
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Check if they provide the RSS for the information then read content from RSS or you can read the content from page directly.
|
|
|
|
|
Check this article out:
http://www.west-wind.com/presentations/dotnetWebRequest/dotnetWebRequest.htm[^]
I created a test ASP.net web page with a button on it and used the following code to retrieve to the web page you wanted. what you would have to do is parse through the string, "lcHtml", which contains the table data.
Good luck.
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim myURL As String = "http://www.moneycontrol.com/stocks/marketstats/mostactive.php?optex=NSE&index=31&opttopic=mostactive"
' *** Establish the request
Dim loHttp As HttpWebRequest
loHttp = WebRequest.Create(myURL)
' *** Set properties
loHttp.Timeout = 10000 ' 10 secs
loHttp.UserAgent = "Code Sample Web Client"
' *** Retrieve request info headers
Dim loWebResponse As HttpWebResponse
loWebResponse = loHttp.GetResponse()
Dim enc As Encoding
enc = Encoding.GetEncoding(1252) ' Windows default Code Page
Dim loResponseStream As New StreamReader(loWebResponse.GetResponseStream(), enc)
Dim lcHtml As String
lcHtml = loResponseStream.ReadToEnd()
loWebResponse.Close()
loResponseStream.Close()
Response.Write(lcHtml)
'System.Diagnostics.Debug.WriteLine(lcHtml)
End Sub
|
|
|
|
|
very good..bosss........
i am having 6 months of experience in asp.net what i want is to display only the matter in the table where share and their respective prices have been declared....can you please assist with this...
thanks again...
|
|
|
|
|
|
David,
What I want is the code to retrieve that specific table in either excel format or in txt format on to my local computer. Can you assist with that code please??????
|
|
|
|
|
At this time, I have no time to work on such a project. I'm busy at work and home. I find this project interesting, so I may work on it for my own knowledge, but I can't guarantee any timeframe for completion.
|
|
|
|
|
Thanks you...
i will eagerly wait for your post....
|
|
|
|
|
Hi All,
I am having one ASP.NET application in which I m trying to write multiple files in folder (C:\Inetpub\wwwroot\Test\MyData\reports). I am failed to write files in folder if I omit the write permission to Everyone.
I do not want to give Everyone permission due to security reasons. I am using windows XP and IIS 5.1 but my client can use different os such as Windows 2000, 20003 etc and different IIS 5.x or 6.0. So I need a solution which will work on all the platforms.
I tried to find out the correct way for achieving this but found no correct solution. Tried following things:
1. I have given Full permission to 'reports' folder for ASPNET account using security tab, but it didnt work.Same thing I tried with IIS_WPG but it is also not working.
2. I have read about impersonation but I think it is not suitable for my requirement as I do not want to give permission for a specific user and also I can not instruct the client to change user name and password in web.config.
3. One thing which worked in my case is when I given write permission to 'Users(<machinename>\Users)' group using security tab. I dont know how it worked or is it the correct solution and if yes, then will it wiork for different OS and IIS.
Thanks in advance for any help.
Regards,
NN
|
|
|
|
|
|
I would guess that you're getting newlines in your text, but you need to replace them with break tags if you want to render the text onto your page.
.Replace(Environment.NewLine, "<br/>"); on the string before you render it. Or before you store it.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
HI Christian Graus
Thanks for reply
|
|
|
|
|
i hav a dropdown which is binded to a table
here
i will select the text from dropdown and press a button
to save details in db
here while saving or inserting a record
i am not getting any values in dropdown which i hav selected
pls reply
tanx
|
|
|
|
|
you have to insure the drop down property AutoPost back is true
|
|
|
|
|
Rubbish. If he's got a button set to do the postback, that will work just fine, and if he has a problem, AutoPostback won't fix it.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
well changing the selected item in the dropdownlist and causing a postback on that event might be the solution i guess
|
|
|
|
|
Not a chance in hell. If it gets lost, it will still get lost on an autopostback
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Odds are good that you're binding to your data source every time. This will clear the selection. So, bind your drop down to your data source in an if (!IsPostback) block.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
anbusenthil wrote: here while saving or inserting a record
i am not getting any values in dropdown which i hav selected
I Guess, this is due to postback while storing and loading data from database. Unless you post the relevant code its difficult to say.
|
|
|
|
|
Hai Friends
I have declared a variable outside all the function in an aspx.cs page, like
public partial class StaticVar : System.Web.UI.Page
{
static int a;
protected void Page_Load(object sender, EventArgs e)
{
Response.Write(a.ToString());
}
protected void Button1_Click(object sender, EventArgs e)
{
a = 50;
Response.Write("set 50, a= " + a.ToString());
}
protected void Button2_Click(object sender, EventArgs e)
{
a = 60;
Response.Write("set 60, a= " + a.ToString());
}
protected void Button3_Click(object sender, EventArgs e)
{
Response.Write("a= " + a.ToString());
}
}
The problem is that when more than one user access this page and modifies the variable a, all the users gets the new value for a,
i.e., they loose the value what they had set for a. They get the value that is been set by the last user.
If I remove 'Static' from its declaration, then its value is not available to other functions.
How to solve this problem.
Please help me.
Shivanandan C V
|
|
|
|