Showing posts with label hii. Show all posts
Showing posts with label hii. Show all posts

Saturday, March 24, 2012

Please help DEPERATE page randomly stops loading

Hi

I am getting pretty frustrated here.
I have a simple page architecture that consists of a header web user
control, the main page content and a footer web user control

Every so often that page loads the header content and just stops. If I click
view source, I see that all the content has been pushed to the client. It
just doesn't render!!

This happens at random points often when doing postbacks. I am not using
smartnavigation.

Has anyone else seen anything similar?

Thanks,

SBad HTML is the problem.
You did not close the tag or the quotes.
Sometimes IE can recover sometimes not.

George.

"SamIAm" <samuel@.rubbachicken.com> wrote in message
news:%23ouR1T4$DHA.2348@.TK2MSFTNGP09.phx.gbl...
> Hi
> I am getting pretty frustrated here.
> I have a simple page architecture that consists of a header web user
> control, the main page content and a footer web user control
> Every so often that page loads the header content and just stops. If I
click
> view source, I see that all the content has been pushed to the client. It
> just doesn't render!!
> This happens at random points often when doing postbacks. I am not using
> smartnavigation.
> Has anyone else seen anything similar?
> Thanks,
> S

Wednesday, March 21, 2012

please help i need help urgently

Hi

I am working on asp.net application using vb.net as its language

I want to displaysystem date in a textbox and enter the value into sql database when a button "submit" is clicked

how can do it?when ever this webpage is started the textbox should automatically take the date in the text box and when i click a button submit that date should enter into the sql database

how can i do this?

please help i have an urgent project to be submitted on this plzzzz

You can get the current date by using System.DateTime.Now, however, I suggest you go through the video's and tutorials fromhttp://asp.net/learn to learn how to use ASP.NET before starting on any "urgent" projects.


Hi,

In the Page Load event

first check

if(!ispostback)

then

textbox.text=datetime.now.tostring()

also same for the submit button accept send the value in the insert query rather then textbox


You can also implement it in database level by using getdate()(for SQL server) function in the insert query or stored procedure whatever used by you to insert the value in databaseYou can also implement it in database level by using getdate()(for SQL server) function in the insert query or stored procedure whatever used by you to insert the value in database.


You can also implement it in database level by using getdate()(for SQL server) function in the insert query or stored procedure whatever used by you to insert the value in database.


"please help i have an urgent project to be submitted on this plzzzz"#

sounds like homework..

Friday, March 16, 2012

Please help me with regular expression

Hi

I need a correct regular expression for this pattern:
aaa;some text;abcdef;this is another text

-> semi-colon separated strings that contain only letters, numbers and spaces.
(= no wild chars like*#,:% etc.)

But these should not match:
aaa;bbb;;ccc;ddd (two consecutive semicolons with nothing between them)
aaa;bbb; ;ccc;ddd (two consecutive semicolons with only spaces between them)
(the string between the semicolons must contain at least one letter or number)

Thanks much in advance.
In case something's unclear, I can some more detailed explanation.
H.look at
http://virtual.park.uga.edu/humcomp/perl/regex2a.html

Jagdip

(For the lazy people who cannot be bothered to learn anything new and just want the answers)
\w+[;]

Any character/number one or more times followed by a semi colon...

aaa;bbb;;ccc;ddd

will match:
aaa;
bbb;
ccc;

will not match empty or the ddd cause theres no semi on the end.

Let me know if you have problems..
Thanks for replying aikeith.

Your suggestion is not bad, however, it contains the following bugs:

- stringaaa;bbb;ccc;;ddd;eee;ffff shouldNOT match, becase it contains several consecutive semicolons (with nothing between them)

- stringaaa,bbb;!@.,?#$%^&*;xxx shouldNOT match, because it contains several disapproved characters (commas, -, #, ...) - only letters and numbers and spaces are allowed.

- stringaaaSHOULD match because it contains one correct word (no semicolons, yeah, but they're needed only when two or more words are to be separated)

Thanks for help anyway, if you know how to fix the stuff above, I'll be very grateful.
H.
I suppose I misunderstood your question.

I dont get this though:
"- string aaa SHOULD match because it contains one correct word (no semicolons, yeah, but they're needed only when two or more words are to be separated) "

so would this match?

aaa;bbb
I got this:

[[[a-zA-Z0-9]+[' ']*[a-zA-Z0-9]*]+[;]]+

Jagdip
Sorry, got it slightly wrong. Not sure if it will work, but this is what I meant

[[[a-zA-Z0-9]+[[' '][a-zA-Z0-9]+]*]+[;]]+

Jagdip
aaa;bbb should match.

You can imagine it like you have some list of items (words):

bread
milk
coke
chocolate bars
potatoes

and you write then in a sinle line, separated by semicolons:

bread;milk;coke;chocolate bars;potatoes

And now:

1) the list can contain only one word
(the string"bread"should match

2) the list cannot contain empty items: (thus two consecutive semicolons are disapproved)
(the string"bread;milk;;chocolate bars" shouldNOT match)

3) the words in the list can only contain numbers, letters and spaces (like in "chocolate bars")
(the string"2 breads;27 eggs"should match but the string"bread ###;milk %%%" shouldNOT match)

I hope I made it a little bit more clear.
Thanks for your interest, but I tried your expression on

aaa;bbb

and it didn't match (although it should)

(in fact, I failed to come up with any string that matches)

I admit I'm not real good at explaining things, so maybe you didn't understand me correctly, if you are still interested please look at my post above, I tried to explain more clearly.

Thanks anyway, H.