|
Is it possible to start a function or subroutine AFTER an aspx page has loaded? I have tried Page_Load(), read into AJAX and tried a few things (UpdatePanel and ScriptManager), and tried calling a vb function from javascript on the page (calling back to my _Default class); thus far, nothing has worked.
My goal is to develop an application that checks for the existence of registry values and logs a line of text to a listbox control after each registry check. This is pointless if the logging is all populated to the listbox before the page completely loads (which is what happens if I use Page_Load()). I also want this entire process to be automated so that the user does not have to click a button or do anything to initiate the registry checking.
Is what I'm trying to accomplish possible with ASP.NET with or without AJAX? Am I on the right track? Any suggestions?
Thank you!
|
|
|
|
|
Hi..
I have made a page using which files can be uploaded.File gets uploaded after creating a folder with same name of the particular file,within a root folder.
Now,I want that a specific group of users will be able to download not all but some files,other files will be not be accessible to them.Again another group of users will be able to download another set of files.
I hope my need is clear
So,how can this be achieved?Any suggestion,code snippet,tips will be helpful..
Thank you
|
|
|
|
|
You are making it difficult by creating folders for each file, not to mention creating quite a mess on the file system. If you had folders that represented the different user roles, you could have the files uploaded there and use the web.config file to restrict access to the folders based on the roles.
only two letters away from being an asset
|
|
|
|
|
Thank you for response..
Actually the scenario is that, in a learning institute different courses are offered.Courses have their unique ids.And students are enrolled to one or more courses.Students will be able to download only those contents to which they are enrolled to.
So,what may be the most optimized solution to this?
Thank you in advance
|
|
|
|
|
Hi,
idont speek english well sorry!
I work with visual web developer 2005 asp.net for the 1st time and sqlserver2005 to achieve an intranet site for the service school.
Now what they are doing is that university is:
For each semester, the registration service write the names and num-registration ds register students this semester in an Excel worksheet for each level.
each teacher introduced the notes of his field for different students in a column (note_matière1 for example) of this spreadsheet excel.
they use Excel to calculate ways,..
I spent a lot of time to test a gridview but there is no possibility of inserting a column if I:
Num_inscription name marks_frensh
1077 ssss 12
1078 AAA 15
1079 kkkkk 16
To insert the notes they need me whenever select and then click update for each student and it is not practical !!!!!
I spent a lot of time with and excel without result.
I consulted a lot of forum was told than in the controls Infragistics, there is a grid like excel but I need the license !!!!!!!
I dont know if I happened to explain this project or not.
Thank you very much,
Thanks again.
laila
|
|
|
|
|
What is your question?
Do you want a licence for the Infragistics product? Then you'll have to purchase one, just like everyone else.
If you don't want to purchase a 3rd party product, you can develop an editable grid in ASP.NET using the GridView control. An explanation of how to do this is beyond the scope of a forum question, but there are plenty of examples online. For instance, try here[^].
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
foryou wrote: I spent a lot of time to test a gridview but there is no possibility of inserting a column
Why not ?
foryou wrote: but I need the license !!!!!!!
Yes, you do. So, if you can't pay for it, then you need instead to think about how their control does what you want, and write your own code to do the same.
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 )
|
|
|
|
|
What is your question?
foryou wrote: Infragistics, there is a grid like excel but I need the license !!!!!!!
Then, buy it, what are you waiting for?
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|
|
Thank you very much pmarfleet, Paul Conrad and Christian Graus
Im sorry I am unable to thank you before .
I am a student I can not buy the license .
my question is if you know another easy way to do this.
Thanks .
|
|
|
|
|
Please ado you know another easy way to do this.????
|
|
|
|
|
Hi,
If I want that after only checking a certain check box a button will be activated. As for example, suppose after checking the "terms and Conditions" check box ,the "Submit" button will be enabled.
How can I do that?I am using ASP.NET(c#).
Thanks in advance.
|
|
|
|
|
You can do it with javascript. You need to hook OnClick event to the checkbox, get the button's object using getElementById() and use controlObject.Disabled = false;
|
|
|
|
|
or use c# and set the checkbox to postback and then put a statement like
if checkbox.checked == true
{
btbutton.visible = true
}
put that in the c#
|
|
|
|
|
Why go through a postback to show a button? The previous response using JavaScrip was perfectly adequate and would be a much better user experience.
only two letters away from being an asset
|
|
|
|
|
I just thought that it would be easier to stick to one coding language
plus javascript can be turned off at the client end therefore rendering the bit of code useless
cheers for the input though!
|
|
|
|
|
Hi,
The C# code you are talking about,that I have to put in CheckedChanged event?
Thank you for the responses..
|
|
|
|
|
Thank you both of you a lot..both are working.
|
|
|
|
|
In my ASP.NET 2.0 application, I have to automatically intimate
users regarding their memberships via EMAILS.
I am restricted not to use any Event driven code because these emails are to be sent on regular basis.
can i use any web service to schedule the emails to be sent?
How can I search such a web service?
|
|
|
|
|
You can use windows service. Write a service and install it on server. This service should send mails at the required time.
|
|
|
|
|
Thanks for posting a reply, but I can not use a windows service (my web server does not support that)
Any other suggestions?
|
|
|
|
|
You ca write a webservice which does the job. Then call this webservice from a windows application at the specified intervals. You can keep the windows application in any of the machine which is connected with internet.
|
|
|
|
|
I have some question in my mind that are not clear.
1)How Process goes or what processes get executed while .cs files converted into .exe?
2)Is JIT is part of CLR?
3)What is the use of Datatable in ASP.Net
4)AJAX is used for?
5)How CLR can take reposibilites of code execution? How the process handled by CLR?
6)What are user control?What is the use of that control?Is these controls same as which is in already in the Framework?
7)What do you mean by Prerendering of page?
Thank you
Regards,
sjs4u
modified on Friday, March 7, 2008 9:05 AM
|
|
|
|
|
Is it just me, or people getting very lazy. Think for yourself, research, all of these questions can be answered if just look for the info, its there and not too difficult to find. Who knows, along the way you might actually learn something.
only two letters away from being an asset
|
|
|
|
|
i think it might be best if you search on google for those answers
|
|
|
|
|
Hi,
I am developing a web app using c#, asp.net and vs 2003 but I am having problems trying to create a page like the picture below. I need a grid(any control) to represent each player in the test or a single grid with headers for each player. I have the sql written and at the moment each grid on the pic has its own datatable in a dataset, so I am just wondering what is the best way to go about this I have been trying to use a repeater but I am not sure if this is the correct way. Any idea or suggestions would be appreciated
Regards
Tim
http://img257.imageshack.us/img257/1937/testreviewoo7.jpg
|
|
|
|