|
Ask one.
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
Don't use caps
Don't use the word urgent
Post your code
Use code and pre tags!
Don't use the word 'doubt' when you meant to use 'question'
|
|
|
|
|
|
I have a database(mydb) with userid fild data.
and i want to use AspLogin control and other control that manage membership
that uses aspnetdb of asp.net application.
so
how i can use the userid of aspnetdb and bring it in my own database(mydb)
when the users loged in ?
thanks
|
|
|
|
|
You have a couple of options:
1. When a new user is created you can hook into the event, get the Guid and username and post that into your database then.
2. Use Membership.User.Guid (I think thats it, better double check), this returns the Guid of the current logged in user.
|
|
|
|
|
thanks for your attention.
but
there isnt any member or method like Membership.User.Guid
anyway thanks again
goodluck
|
|
|
|
|
Membership.GetUser().ProviderUserKey is what I meant. The method returns a type of System.Object but if your using SQL Server and the built in membership provider its of the type Guid.
|
|
|
|
|
Hi
I trying of use a xml file as database, i know what exist a library called openxml, but only find tutorials to sql server, exist openxml to php?.
If not exist openxml to php, how i can read a xml file with sql statements?, thanks very much for yours replys.
Greetings from Mexico
-----------------------
Cuando salga el sol, no estare aqui...
|
|
|
|
|
I must admit that I am not an expert with the openXML standard. However PHP's support of XML is fantastic (as of 5.1).
You have two choices:
The old DOM functionality (Link[^]), Which is great. The DOM classess work and are well tested.
Now PHP has recently documented the XMLReader (Linkety)[^] / XMLWriter (Linkety)[^] classes, which are the replacement for DOM. If you have any questions on them I can probably answer them or point you to the resource you need.
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
PHP has COM library support and so do OpenXML Library.
Do you find some solution now?
|
|
|
|
|
Well no, What is OpenXML?
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
|
Can you send me a link about how use openxml in php please?, i want make this:
SELECT field1, field2 FROM [XMLFILE] WHERE [CONDITION]
Where fields are xmlnodes
<?xml version="1.0" encoding="ISO-8859-1" ?>
<items>
<item>
<field1>some value</field1>
<field2>some value</field2>
</item>
<item>
<field1>some value</field1>
<field2>some value</field2>
</item>
<item>
<field1>some value</field1>
<field2>some value</field2>
</item>
</items>
Is possible make this in php reading the xmlfile with sql statements?, thansk very much
-- modified at 18:08 Monday 5th March, 2007
Manuel say: Greetings from Mexico, Cuando salga el sol, no estare aqui...
---------------------------------------
Web: http://www.otakuzone-fanzine.com
Forum: http://www.otakuzone-fanzine.com/foro
|
|
|
|
|
|
I need an Access style listbox that will
allow me to format columns like Gridview :
XXXX___YYY__1234
ZZZ____2222__3456
but allow line select so the user can click
anywhere on the line, (like it does now),
unlike Gridview which requires a
"Select button" column(control)
Reccomendations?
Thanks..;)
|
|
|
|
|
Hi
You can use datalist in this case.
1. For displaying data, use SP to concatenate different columns e,g.. col1 + '---' + col2 etc...
2. Set RepeatColumns = "1".
3. If a row is selected, then change the background color of that row using Javascript function. To call javascript function for each cell / row, add an event ItemDataBound of DataList.
I think this is possible...
Rate this message. Thank you. Harini
|
|
|
|
|
Anyone off the top of their head know
a simple way to change the startup page
of a running WEB app? ..My site needs to
come down nightly for maintanance, and I
want users trying to link to get a
maint.aspx page instead of :
default.aspx..using Vis Studio 2005
Thanks..;P
B.Griffin
|
|
|
|
|
I have a method on one of my sites where the pageload in default.aspx checks for the existence of a file (or value in a database, or you could just check for a specific time period, ie between 11pm and 1am). If it finds it, it just does a response.redirect to a "Maintenance.html" page.
You could put that code into a separate class, and call it in the pageload from all aspx pages on the site (rather than just relying on it in the default.aspx page), or even better, put the code into a master page, or a custom page which is inherited by all the other pages.
Just an idea.
|
|
|
|
|
Thanks..!..that's a good idea..I'd gotten so busy
that I fogot somebody could "jump" into the middle
somewhere too!..not just the home page..
a Q:Could I put the check/test into the session start
code so no matter what page they call it goes to
maint.aspx? If so, how would I drop the Access
DB connection so the compact routine has exclusive
access? I could reboot the server, doing the same check
in the app start routine, before the connection is made,
and any attempt to connect would be caught by the session
start code.
B.Griffin
|
|
|
|
|
Your'e right!..I did..it catches the initial link,
but once at my maint page, they can divert to any
page they want by typing it into the address bar!
So I had to take your advice and put a check and
.redirect in the page load of every page..
but, it works!..
Thanks again..you're good deed will come back to you.
|
|
|
|
|
I have usually kept a default.aspx in my project and in the page_load I have a response.redirect to the correct start up page. Seems to work ok for me.
If you don't like that solution you can go to the properties of your web site. Then go to the document tab. Click the add button and type in your start page and make sure it is the page at the top.
Hope that helps.
Ben
|
|
|
|
|
Ben:
Thanks!..I'm gonna `try it.
B.Griffin
|
|
|
|
|
Or before you do nightly maintenance, you could always modify the iis default page properties.....
|
|
|
|
|
Chris:
Will that catch a session start, no matter where
they try to jump into the app?
Thanks,
B.Griffin
|
|
|
|
|
In the Global.asax there is a session start method you can tap into.
Ben
|
|
|
|