jamello 158 Posting Whiz in Training

Thanks for the prompt reply adatapost.
I tried your suggestion but it did not work. The codes were still showing the html tags raw "as is".
Other ideas are still welcome
thanks once again!

jamello 158 Posting Whiz in Training

Hello experts!
Please how do I display markup text (in html) with a asp.net 3.0 server control? I have a database full of markup text inputted using a rich text control. but I will like to display these text using other asp.net controls that would render the text correctly with the markup applied.
Expecting to hear from you guys.
Thanks
peace :)

jamello 158 Posting Whiz in Training

Hello experts!
Please how do I display markup text (in html) with a asp.net 3.0 server control? I have a database full of markup text inputted using a richtext control. but I will like to display these text using other asp.net controls that would render the text correctly with the markup applied.
Expecting to hear from you guys.
Thanks
peace :)

jamello 158 Posting Whiz in Training

Thanks Guys!
i found that what I needed was to install Network IP-Cameras in those vehicles, administer them with a backend software like webcamXP. Thanks again!

jamello 158 Posting Whiz in Training

I have a challenge. I need to provide a solution that would enable me capture images of occupants of several motor vehicles scattered around a geographical area. These images could be still images or video transmitted over the web to my server in my headquaters.

I can program in JSP, ASP.NET, PHP in the order of preference. I did not want to recieve an infraction by not multiposting under these languages.

so idea(s) are welcome. What is the simplest, cost/time effective approach.

Admin: Is there a part where these type of scenario can be taken care of. that is, Ideas or solutions discussed irrespective of language used. Please permit my idiocy! lol.

jamello 158 Posting Whiz in Training

The point is that the ipod helped in saving the soldiers life. It was said that the ipod helped "slowdown" the bullet. ;)

jamello 158 Posting Whiz in Training

Did you check the error logs?
The error Apache is generating when it fails to start would be extremely helpful in debugging this.

The file should be somewhere around /xampp/Apache/logs/error.log .

I found that while I initially switch off the IIS and apache runs well, on switching on the IIS with the apache still running things are still ok until I try to run an aspx file on localhost. A login/password page is displayed for me to fill which does not normally appear.

jamello 158 Posting Whiz in Training

I used other numbers like 8081, 8082 and still no dice. but I still retry what I did and reboot as you said. thanks for your prompt reply

jamello 158 Posting Whiz in Training

I used the current version of xampp installer(that makes it apache2.2) on XP. (i.e. IIS v5).

jamello 158 Posting Whiz in Training

I have a feeling this question is an age long one. Please forgive me:D
I have IIS and Apache on my computer. Apache would refuse to run unless I stop IIS. I had tried changing the default port number of Apache from 80 to 8080 in the httpd.conf file but no dice. In fact Apache would still not run. What is it am I doing wrong? Below are examples of the edits I did to the conf. file.

# If your host doesn't have a registered DNS name, enter its IP address here.
#
ServerName localhost:80

Changed the above to

ServerName localhost:8080

AND

# Change this to Listen on specific IP addresses as shown below #to prevent Apache from glomming onto all bound IP addresses #(0.0.0.0)
#
#Listen 12.34.56.78:80

Listen 80

TO

# Change this to Listen on specific IP addresses as shown below #to prevent Apache from glomming onto all bound IP addresses #(0.0.0.0)
#Listen 12.34.56.78:80

Listen 8080

And still no dice!
Even changing the port numbers from the IIS side would still not make apache run unless IIS is stopped all together! Any help would be appreciated!:sweat:

jamello 158 Posting Whiz in Training

ok,dont worry...if u installed XAMPP you have to save ur php files in a folder named "htdocs" in c:\programme files\xampp\htdocs then load the web browser and type http://localhost/your php file name.php

u will definitly view your starting HELLO WORLD app

>u will definitly view your starting HELLO WORLD app

Thanks for the emphasis:) It really helped me take another look at the ground I thot I had covered. I found out that in using notepad to edit my "hello world" app I had inadvertently saved the file as "test.php.txt" hence the webserver could not understand the file and thus in following the instruction of situating the file in httpdocs I had a wrong file extention. OTHER NOOBS TAKE NOTE PLS!!;)

jamello 158 Posting Whiz in Training

thanks to you techMARVEL! :)

jamello 158 Posting Whiz in Training

hello guys!
I am also a newbie in php. I installed XAMPP installer on my machine and followed the instructions as closely as I could (it was written in english language! lol). I could get my apache, mysql servers up and running with the appropriate test page. but it would refuse to recognise anything written in codes other than html.

I have tried every thing I know(apparently not much :P ) and no show.
So till now I have not been able to run the "legendary" hello world app in php. Heeeeeeelp!!!!!:icon_cheesygrin:

jamello 158 Posting Whiz in Training

hello smartheads!
I am currently investigating the extent of adoption of mono by the different flavours of linux OS. I am aware that opensuse and ubuntu are favourably disposed to mono but what I cannot ascertain is wheher RedHat linux has adopted/implemented mono. I keep getting conflicting reports:confused: . I would be glad if this could be cleared up by the house. peace:cool:

jamello 158 Posting Whiz in Training

eba and egusi soup. A west african delicacy! I do not know if you "oyinbo" people seen what it looks like

jamello 158 Posting Whiz in Training

thank you man for the idea. I am currently looking at the link.
I will really want it to be dynamic.

Thanks man :)

first of all do they need to be added dynamically? could you get away with adding them manually first and hiding/showing certain controls. You can set the index of the step so you could technically override this on postback and then alter the index given some requirement you may have.

If you must obtain this dynamically. Then you are required to rebuild all the controls on initialisation.

Example
- Create WizardStep1
- User Goes to Next Step
- On Initialization
--- Rebuild WizardStep1
--- Create WizardStep2
--- Set Index of wizard to 1 (the second step)

There are many tutorials for dynamic control postback state. Here is a good one. http://aspnet.4guysfromrolla.com/articles/092904-1.aspx

jamello 158 Posting Whiz in Training

Let me first of all wish everybody a very happy new year!:)

I have a present challenge and would like suggestions from you great guys.
I have an aspx web form where I have manually added a wizard control. I then attempted to add the wizard steps dynamically i.e add wizardsteps at runtime.

I am able to load these wizard steps for the first time (in the page_load or page_init event). When I hit the 'next' button to move to the next step it gives an error which says

ActiveViewIndex is being set to '1'.  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 wanted the first step to be displayed to be the second steps out of the total number of steps.(ie activeviewindex = 1).

Methinks it sorts of loses the viewstate of the of the control and the wizardsteps or views of the multiview controls at postbacks and this assumption is what I have pursued with no success yet :(

I may be wrong hence I need the experts' advice.
Below I have listed the simple codes showing what I have attempted to do.

At page_load or page_init event 

 if (!IsPostBack)
        {

           CreateWizardSteps();
        }
public void CreateWizardSteps(int noofsteps)
    {
        // create the number of wizardstep controls to create and load.
        string sid;
        int g = 0;
        for (int i = 0; …
jamello 158 Posting Whiz in Training

I'm sure there are "egg-heads" that are able to give a helping hand here. :)

Howdy there my people!

I have a pretty 'thorny' issue I have been battling with for some time now and I am really hoping that with expert-eye-a-plenty in this forum the challenge is a done deal.

It really beats me hollow why a control which I downloaded free from the net and modified a little for my purposes worked well in vs 1.1 and generates an error in vs 2.0. The error message is not an "earthshaking", 1500 line-error-liner. It just said Microsoft JScript runtime error: Object expected ( I was at my wits end. I do not know whether to post this problem in the javascript section or asp.net so do forgive me)

The control uses javascript extensively, and then it is called in an aspx page.
here is the javascript code

var	fixedX = -1 // x position (-1 if to appear below control)
	var	fixedY = -1 // y position (-1 if to appear below control)
	var startAt = 0 // 0 - sunday ; 1 - monday
	var showWeekNumber = 1	// 0 - don't show; 1 - show
	var showToday = 1		// 0 - don't show; 1 - show
	var imgDir = "../controls/cal/"	// directory for images ... e.g. var imgDir="/img/"

	var gotoString = "Go To Current Month"
	var todayString = "Today is"
	var weekString = "Wk"
	var scrollLeftMessage = "Click to scroll to previous month. Hold …
jamello 158 Posting Whiz in Training

Thanks for your reply Fungus1487.

like I said "b.aspx" contains two text boxes and a command button. It is the clicking of this command button that the "illegal" reaction is produced.

Thanks for the referenced site. It gave quite a lot of ideas I am now reviewing. I will get back to you about any head way. Thanks once again
peace man!

jamello 158 Posting Whiz in Training

Howdy there my people!

I have a pretty 'thorny' issue I have been battling with for some time now and I am really hoping that with expert-eye-a-plenty in this forum the challenge is a done deal.

It really beats me hollow why a control which I downloaded free from the net and modified a little for my purposes worked well in vs 1.1 and generates an error in vs 2.0. The error message is not an "earthshaking", 1500 line-error-liner. It just said Microsoft JScript runtime error: Object expected ( I was at my wits end. I do not know whether to post this problem in the javascript section or asp.net so do forgive me)

The control uses javascript extensively, and then it is called in an aspx page.
here is the javascript code

var	fixedX = -1 // x position (-1 if to appear below control)
	var	fixedY = -1 // y position (-1 if to appear below control)
	var startAt = 0 // 0 - sunday ; 1 - monday
	var showWeekNumber = 1	// 0 - don't show; 1 - show
	var showToday = 1		// 0 - don't show; 1 - show
	var imgDir = "../controls/cal/"	// directory for images ... e.g. var imgDir="/img/"

	var gotoString = "Go To Current Month"
	var todayString = "Today is"
	var weekString = "Wk"
	var scrollLeftMessage = "Click to scroll to previous month. Hold mouse button to scroll automatically."
	var scrollRightMessage = "Click to scroll …
jamello 158 Posting Whiz in Training

>nam.sri thanks for the reply, I have check with 2 -3 CD's but getting the same error.

Though this is a long shot, It is possible to have repeated errors of a number of set of cd's if you got your set of cds from the same source.

I use XP sp2. I suggest you get the latest service pack from microsoft site.
please get back to me.
peace

jamello 158 Posting Whiz in Training

Hello there!

>Its a prerequisite to un-install VS2003

I currently have both vs 1.1 (2003) and vs 2.0 (2005) on my machine without much ado.
I do not think that is the problem because I didn't not run into any problem during my installation.

I advise that you check the integrity of your installation CDs.
peace

jamello 158 Posting Whiz in Training

Hello experts!!

I have this challenge. I need to display a popup window with some controls on the clicking of a button on a page. Thereafter the contents of these controls (textboxes) on the popup window are to be transfered into a gridview on the parent form.

Current status:
I am able to display the popup window on clicking a button on the parent form(which is actually a form displayed in a customized window) and Fill the data popup window with data. But I found that when I click the "ok" button(which persists the data to a database) on the popup window a new window is displayed with the same content of the popup window while leaving the popup intact.

The challenge:
I do not want another page displayed because of the obvious postback as a result of the clicking of a button

I want the instantaneous refresh of the gridview showing the data just persisted without the popup window "flinching"

Please find below a sample of how the popup window was created on clicking of a button the parent page

<script type="text/javascript">
     var formflds;
    
     function fCallDialog()                                             
     {
     var j;
       j= showModalDialog("B.aspx",window,"status:no;dialogWidth:400px;dialogHeight:350px;unadorned:yes;help:no");
     }
     

    </script>

B.aspx contains a server button control and some text boxes.
Any Idea will be deeply appreciated
peace :.)

jamello 158 Posting Whiz in Training

Hello experts!
I believe there's someone out there with an idea on how I start off on this project. I know that there would be a server and a client module. Since it is a webbased app what port do I listen to and how do I go about it?:)

jamello 158 Posting Whiz in Training

hi,
for IE inorder to remove header /footer go to page setup in file.There u find header and footer,just remove the code in header and footer textboxes.
Hope it helps

Will this work for all browsers and not just IE?

jamello 158 Posting Whiz in Training

i guess u can use datalist to achieve this functionality

Thank you greeny for your reply.
Yes I can also use datalist. The main challenge is that I want to display this short-record-length-high-volume data in a way as to fill my entire screen not just one direction only. In other words I want the data displayed in vertical and horizontal axis. comprende?:?:

jamello 158 Posting Whiz in Training

Is your application working on your development machine?

jamello 158 Posting Whiz in Training

I have a project I am currently working on and I need users to be able to chat online amongst themselves. Please experts, what are the basics I need to know and implement so that this becomes possible.:?: :cool:

jamello 158 Posting Whiz in Training

Yes prasu seems correct but I am worried about the comparisons. That would be an awful number of comparisons to do. imagine I want to create 1000 groups:-/

Methinks the combination prasu's idea and storing the groups in the database table might give a leeway for comparisons because the database would just naturally throw off duplicates which can be reconstructed and stored.

Thank you guys
peace

umm.. what prasu says is correct.

Its just that sometimes you may have to do a lot of comparisons.

jamello 158 Posting Whiz in Training

No no i am not using this for an e-testing software.
Thanks all the same tuse. You are a great guy:)

U know talking about another way, I had this idea of generating guids then picking out 16 characters and then changing the alphabets to their numeric equivalents. Then save the results in a database table with the number being the primary key trusting the database to throw out duplicates if any.
Now how's that
what's your take?

Try this-

Just generate 16 x 40 numbers random numbers using the code. If you want it in the range as said, find the remainder of the generated random numbers on division by 10. Then split this one dimensional array into the matrix you need.
------
Hopefully you will get as you need.

But by no means is this the best way to go. There might (must) be a better way.

------
Are you using this for an online test application?

jamello 158 Posting Whiz in Training

Yes,
the integers naturally would be 0 to 9 for the groups.
i mean something like this

1.  8937474633290944
2.  8464595950698568
3.  0734736478237473
...
40 9689896859895596

get it?
peace

Can you tell me the range in which you need these integers?

I have something in mind which depends upon this.

jamello 158 Posting Whiz in Training

people!

I noticed that when a web page displayed is sent to the printer for a hardcopy, some sometimes annoying and unnessary headers and footers are printed alongside the main document. This are usually the file paths of the document being printed.

I believe there is a way this "feature" can be turned off in the browsers. Is there? :-/

jamello 158 Posting Whiz in Training

aww..!
I use vs 2005. but would upgrade soon.:(

jamello 158 Posting Whiz in Training

Or is the repeater not the appropriate control to use?
I just wanted to display these data and not for them to be editable. Any ideas people?:sweat:

I have data I am displaying with a repeater in vs 2.0. Its just a very short record length but high volume data. The repeater displays it vertically but most of the screens real estate is left empty.

The challenge is how do I manupulate the repeater table tags to display verically and horizontally to fill the screen - a 1024 by 768 pixel screen and not just one direction.

jamello 158 Posting Whiz in Training

It is doing what its supposed to do.
if you drag a textbox from the toolbox onto your web page, the property page displays its id as textbox1. If you do not change it and add another textbox it would be named as textbox2.

All you need to do is to change the name in the property page for each of the text boxes.
if the first text box is meant to host "user surnnames" just change the textbox1 to "txtsurname"

I hope it is clear.
peace

jamello 158 Posting Whiz in Training

tuse,
thanks for your reply. Yes that is a good idea, but if i fill the first line with 16 integers (aided by an array) I would want the next group of 16 to be unique as a group. So if I generate 1000 of such group of 16 integers no group would apear twice. I hope the challenge is clearer.

Thanks

jamello 158 Posting Whiz in Training

tuse, your online test solution looks interesting. I had downloaded a copy and was wondering which version of vs did you use for development. v2 or 3.0?

jamello 158 Posting Whiz in Training

I have data I am displaying with a repeater in vs 2.0. Its just a very short record length but high volume data. The repeater displays it vertically but most of the screens real estate is left empty.

The challenge is how do I manupulate the repeater table tags to display verically and horizontally to fill the screen - a 1024 by 768 pixel screen and not just one direction.

jamello 158 Posting Whiz in Training

Hello people!
I need ideas about how to randomly generate a set of integers - a set of 16 on 40 rows.
I had tried the Randomize function on the .net framework but has not been successful. Any idea woud be appreciated

jamello 158 Posting Whiz in Training

Well, different strokes for different folks!:)
I find coding before design 'easier' or more convinient for me to do. I generally know what the functionality of the website would be and code accordingly(using asp.net). so it is always easier for me to change the design later or anyhow I want it after implementing all the functionality of the website

peace:cool:

jamello 158 Posting Whiz in Training

eba and egusi (melon soup) plus water.

jamello 158 Posting Whiz in Training

Hi there experts!!
I am translating an app from asp.net 1.1 to v2.0. In version 1.1 I could right click a source file in the solution explorer and pick my build action i.e none, compile, embedded resource. but to my chagrin I could not find the build action property in vs2005. Any ideas please?:-O

jamello 158 Posting Whiz in Training

I do not think you would be able to disable the back button. My take is that you take a critical look at your design again so that it mitigates this problem.
I had the same problem some time ago and my research led to a dead end.
I had to redesign.
peace

jamello 158 Posting Whiz in Training

Sorry, I misunderstood. You can always fully qualify the names (use System.Security.Principal.GenericPrincipal anywhere that you are currently using GenericPrincipal). Otherwise, this article explains why you can't use the "using" key and offers a workaround: http://rossnelson.blogspot.com/2005/11/fixing-globalasax-in-aspnet-20.html

I hope this helps!

Yes, This was what I did eventually to move ahead. Thanks all the same. It was quite nice of you...

And the blogpost you suggested? SUPER DUPER!!!!
Gracias A Plenty!!!!!!

jamello 158 Posting Whiz in Training

Looks like you have it right... System.Security.Principal.GenericPrincipal

What error are you getting?

I am yet to get any error:) The point is that I cannot find or create the generic principal objects mainly because I cannot reference the objects by the usage of the "using" clause at the top of the global.asax file. So I repeat, How do I include this code or how do I make the generic principal objects available for use in the global.asax file.

I do hope I am clearer.
Thanks

jamello 158 Posting Whiz in Training

Looks like you have it right... System.Security.Principal.GenericPrincipal

What error are you getting?

I am yet to get any error:) The point is that I cannot find or create the generic principal objects mainly because I cannot reference the objects by the usage of the "using" clause at the top of the global.asax file. So I repeat, How do I include this code or how do I make the generic principal objects available for use in the global.asax file.

I do hope I am clearer.
Thanks

jamello 158 Posting Whiz in Training

Hi there ladies and gentlemen!
I have this code that works in ASP.NET 1.1 but I could not find its equivalent in v 2.0. I had expected it to work having the usual backward compatibility preached by microsoft in mind. But I am yet to succeed. The code 'translation' worked until the need to program in the global.asax file.

The problem is about role based authentication of users using 'forms' authentication. In v1.1 the portion where the need arises to construct GenericPrincipal and formsIdentity objects works well but I cannot find the reference to the GenericPrincipal objects in v2.0

This is version 1.1 code snippets

//included at the top of the global.asax file
using System.Web.Security;
using System.Security.Principal;

In the Application_AuthenticateRequest event handler I add the following code

// Extract the forms authentication cookie
string cookieName = FormsAuthentication.FormsCookieName;
HttpCookie authCookie = Context.Request.Cookies[cookieName];

if(null == authCookie)
{
  // There is no authentication cookie.
  return;
} 
  
FormsAuthenticationTicket authTicket = null;
try
{
  authTicket = FormsAuthentication.Decrypt(authCookie.Value);
}
catch(Exception ex)
{
  return;
}

if (null == authTicket)
{
  // Cookie failed to decrypt.
  return; 
} 
  
// When the ticket was created, the UserData property was assigned a
// pipe delimited string of role names.
string[] roles = authTicket.UserData.Split(new char[]{'|'});
  
// Create an Identity object
FormsIdentity id = new FormsIdentity( authTicket ); 

// This principal will flow throughout the request.
GenericPrincipal principal = new GenericPrincipal(id, roles);
// Attach the new principal object to the current HttpContext object
Context.User = principal;

Version 2.0

jamello 158 Posting Whiz in Training

Thanks for your response.
You know I was just not thinking straight! and sometimes it happens;)
I went this way because my requiredfield validator was not firing so I abandoned it for an 'easier ?' way. But I didn't remember to set the causesvalidation attribute to 'true' the default being 'false'. So that's why the requiredvalidator was not firing.

Secondly I found that the code was doing exactly what it was told to do!! silly me!:cool:
Thanks all the same

when you put the <%CheckForSomeErrors()%> in your page, it will be executed every time the page is viewed... postbacks and all. Since this is ASP.NET, familiarize yourself with the validation controls. This can easily be done by adding a <asp:RequiredFieldValidator ... /> and done on the client. But if you so wish to have it done the way you are doing, you need to make that into a server control by adding "runat='server'" to the attributes section and change your code a bit.

Do yourself a favor, read this article and be a pro at this part!

http://www.asp101.com/lessons/validation.asp

Use the RequiredFieldValidators. It will check to make sure it is not null by default. It will not let them submit the form unless it is filled out! Much better.

jamello 158 Posting Whiz in Training

You have to be more explicit and detailed in the description of your problem to get the best of assistance. Ok?

Hi,

I am new to C# and I would like to know is there any way to create User Mode Driver Framework using C#.

thanks,
Hari

jamello 158 Posting Whiz in Training

That was very very very good!

A black man walk in a cafe early in the morning and noticed that he was the only black man there. As he sat down, he noticed a white man behind him.

The white man said, "Coloured people are not allowed here."


The black man turned around and stood up. He then said:

"When I was born I was black,"

"When I grew up I was black,"

"When I'm sick I'm black,"

"When I go in the sun I'm black,"


"When, I'm cold I'm black"


"When I die I'll be black."


"But you sir..."

"When you're born you're pink,"


"When you're sick, you're green,"


"When you go in the sun you turn red,"


"When you're cold you turn blue,"


"And when you die you turn purple."


"And you have the nerve to call me coloured"

The black man then sat back down and the white man walked away...