|
whats wrong with you man!Can you please be Polite.
Take it easy.
|
|
|
|
|
He is in fact polite, calm and poised and he has helped out in great depth. You ought to first read his full suggestion before embarking on your journey of throwing a counter-thread for clarification.
Coming to your question, you can actually have a simple VBScript (VBS) file to use XmlHttp to hit the URL and get the response. You can have this VBS file scheduled to execute from your Windows Scheduled Tasks.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Well, actually I do understand the need for this kind of automation. Using ASP.NET to automize things can be very handy, when running the asp.net app on a shared webspace...much cheaper than buying dedicated servers. If using dedicated servers I agree, a windows service would do better.
|
|
|
|
|
|
As one of the messages on that article states..."what a mess".
There is no way that using the Cache is a good way to schedule tasks, mostly because you cannot guarantee that the cached item will not be removed before you ask it to (ie, in low memory conditions). You end up having to bolt workaround after workaround on top of this olution to handle early expiration of cache items.
Do yourself a favour and write a VBS and use windows scheduler as someone suggested above.
|
|
|
|
|
Hi,
I have a gridview control and a radiobuttonlist with 4 options. Each option applies a different Rowfilter (one of them is "All data") to the dataset.Tables[0].DefaultView Rowfilter and then the grid is bound to the filtered dataview. On the localhost the app run 100%, as soon as I publish the app I get a "Internet Explorer cannot display the webpage" error on the radiobuttonlist_selectedindexchanged event. The dataset returned from the sql db can be very large 10000+ records (even after I added a number of parameters to reduce the result, I cannot apply more paramaters therefore I'll have to get a way to display and filter that amount of data)
Any help would be much appreciated.
Thanx
|
|
|
|
|
You are trying to display 10,000+ records all at once?
Have you thought about Paging?
only two letters away from being an asset
|
|
|
|
|
Yeas, I do use paging: pagesize: 20. At first I read all data in at once saved it in session and the rebind on pageindexchanging to the session object. I got the same error. Then I changed the code to alter the sqlcommand on the rbl_selectedindexchanging event and read only the data from the database for the selected error. Then on pageindexchanging the sql command is executed again. Still the same error.
|
|
|
|
|
Hi! I'm doing a project where I need to generate at run time new View controls inside a MultiView control. The Views generated are based on data pulled from an Xml file, so it must be done at runtime. Additionally I have a command button for each View - when I click on the first button, the first view should show...
So far I have written the code to generate these at runtime (the code is in a Page_Load event), and the first button I click on shows the correct View with no problem. However when I click a second button I get the following error message:
"
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentOutOfRangeException: ActiveViewIndex is being set to '0'. It must be smaller than the current number of View controls '0'. For dynamically added views, make sure they are added before or in Page_PreInit event.
Parameter name: value "
I understand that this is saying that my code to generate views should not be in Page_Load, but should instead be in Page_PreInit, and when I have run tests moving the code It has worked with no problem.
HOWEVER..... I have the constraint that I am trying to do all of this inside a Web User Control, which does not have a Page_PreInit event (this is so that I can use the component in a DNN module later)
Does anybody know of a work around for this?
Thanks in advance,
Chris
modified on Thursday, February 21, 2008 10:51 AM
|
|
|
|
|
c2423 wrote: I have the constraint that I am trying to do all of this inside a Web User Control
Are you talking about Custom Web Control? Override any of Render methods which is available with all controls.
|
|
|
|
|
No, I'm talking about a Web User Control
The difference being that I'm using the one where you click and drag controls around, like a normal Web Form/Windows Form, rather then the one where you write the rendering code
I dont see quite how overriding the render method will help?
Thanks,
Chris
|
|
|
|
|
I have a button in my web page , on clicking that button , a pop up window appears , the pop up form has a gridview(has two columns , name and check box column) , after selecting certain records in the gridview , i click the button in the same window which save the selected records in the temporary table and finally in the session and last the pop up window gets closed.
now my problem is , how should i populate those selected rerords of pop up window , in the parent web form , right after closing the pop up window.
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
If you're storing the data to the database in the popup, the options are a refresh, or AJAX.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
hi
i have 3 tables.and i write some data for example.
1. tAssetMaster------AssetCode -PK ,Descriptionlong etc.
1 Nagarjun Fertil
2 Tata motors
2. tSectorMaster-----SectorCode - PK,Description etc
1 Auto
2 Aggriculture
3.tAssetSectorMap----AssetSectorCode-PK, AssetCode , SectorCode etc
1 1 2
2 2 1
i want datarelation between these three tabels.
pls help me
gayatri
Gayatri
|
|
|
|
|
Ask your professor
only two letters away from being an asset
|
|
|
|
|
hello sir
you are my proffessor so i ask you
help me
gayatri
Gayatri
|
|
|
|
|
niki_nilu wrote: you are my proffessor
Too late, you have missed the submission deadline. You get a 0 and will have to repeat the class.
only two letters away from being an asset
|
|
|
|
|
hi
don't tell me about datarelation.
because i know about it.
if you want then tell me.
gayatri
Gayatri
|
|
|
|
|
Finished the class already? Or maybe you just watch a Channel9 video. I bow to your expertise now.
only two letters away from being an asset
|
|
|
|
|
Hi All,
I have a dll that will be installed and called from clients' machines. This should upload files form these machines to a server. I don't want to upload files directly to the server location. I want to create an ASPX and put it on the server. Then the dll should contact this page and pass to it file stream. And the ASPX should recieve and save the files on the server. I don't know how to access the aspx page and make it do actions (save files) from the dll. Any ideas?
Thanks.
|
|
|
|
|
Hhmm, I´m not sure if I got you right.
The dll is on the client an uploads the file to the aspx?
So you can just post the file to the aspx:
<br />
private void Page_Load(object sender, System.EventArgs e)<br />
{<br />
foreach(string file in Request.Files.AllKeys) <br />
{<br />
HttpPostedFile theFile = Request.Files[file];<br />
file.SaveAs(Server.MapPath("DestinationFolder") + "\\" + file.FileName);<br />
}<br />
}<br />
This should do the file-saving for you.
Why do you use a dll to upload a file? Did you had a look on MTOM[^]?(Awesome article!)
|
|
|
|
|
Hi this following site they discussed about login controls
<a href="http://www.dotnetjohn.com/articles.aspx?articleid=166">http://www.dotnetjohn.com/articles.aspx?articleid=166</a>[<a href="http://www.dotnetjohn.com/articles.aspx?articleid=166" target="_blank" title="New Window">^</a>]
I download that code and worked it,
In that i am getting error,
In <b>master page login and password recovery control place he used some thing like Submitbuttonstyle</b>:
<submitbuttonstyle font-names="Verdana" font-size="0.8em" borderstyle="Solid" borderwidth="1px">
BorderColor="#507CD1" BackColor="White" ForeColor="#284E98"></submitbuttonstyle>
Whats the need of that one?,
Becoz of that i am getting error,
Plz tell me abt that
Thanks & Regards,
Mageshh,
please don't forget to vote on the post
modified on Thursday, February 21, 2008 6:23 AM
|
|
|
|
|
Hi All,
I have a datagrid with check box in each row at first column; our requirement is looks like hot mail and yahoo mail working system, after selected mail(s) using check box user can delete mail. In the same way, we would also develop functionality for edit, delete buttons only when checked row from the datagrid.
I have started like this, whenever I click on the edit button after I selected check box(s), I need to open a popup window only for the checked rows, for this I have created a session in first page and passing the parameters to second page (Popup).
Edit button
Dim rowCount As Integer = 0
Dim mySelection As StringBuilder = New StringBuilder
Dim DemoGridItem As DataGridItem
For Each DemoGridItem In DGWHPkg.Items
Dim myCheckbox As checkbox=CType(DemoGridItem.Cells(0).Controls(1, CheckBox)
If myCheckbox.Checked = True Then
rowCount += 1
mySelection.AppendFormat("'" & "{0}" & "'" & ",", DemoGridItem.Cells(2).Text)
End If
Next
lblChosen.Text = mySelection.ToString().Substring(0, mySelection. ToString().Length - 1)
Session.Add ("Chosen", lblChosen.Text)
Popup window
If Not Page.IsPostBack Then
Dim cScript As String
cScript = "<script language='javascript'> opener.location.href = 'WebForm4.aspx'; </script>"
RegisterStartupScript("parentwindow", cScript)
lblChosen.Text = Session.Item("Chosen")
Now the problem is only few times the session is calling from main page to child (popup) page.
How to add the session to next page, whenever the edit button clicked?
But I am unable to do it. Please suggest me how to solve it. Guidance for Delete button too.
Don't take any decisions when you are Angry,
Don't make any promises when you are Happy.
|
|
|
|
|
Hi Friends,
Anybody have a list of new features in 3.5 over 3.0.
I can get these details by searching in microsoft website or in google, but i do not have time its urgent for me so anybody alredy have a list of this features please send me immediately.
Waiting for response.
Thanks
Hari
modified on Thursday, February 21, 2008 7:01 AM
|
|
|
|
|
Kuricheti wrote: ...i do not have time its urgent...
Yet you have the time to ask the question here and wait for answer
only two letters away from being an asset
|
|
|
|