|
Using Javascript to change the display style of elements.
---
b { font-weight: normal; }
|
|
|
|
|
Hi , i think the question was ssooooo clear
thank you
try to be good if you can't be the best
|
|
|
|
|
|
Hi,
I'm confused as to how should I create a login for my website administrative module.
There will be a number of users with administrative rights and other users with other rights such as billing department etc.
The users are in a sql database table.
every user type has a certain page access.
if a user not having admin rights tries to enter a page meant for admin, he should be denied access.
So how should i do it.
I've done this in ASP using session variables.
But how to do it in ASP.Net
I'm new to .Net and want a way better than ASP and simple way.
Thanks in advance
Regards,
Rizwan
|
|
|
|
|
You can check the usertype of the user in the page. And on having correct credentials only it will proceed otherwise will be redirected to the login page.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Search for Forms Authentication articles here on CP and you will find what you are looking for.
|
|
|
|
|
VS2005 come with login controls so it becomes a moot point.
--------------------------------------------------------
1 line of code equals many bugs. So don't write any!!
My mad coder blog
|
|
|
|
|
Hi all
I am using following menu.xml.
<Site>
<MenuItem Text="My Copyprint" Value="0" Enabled="false" Url="">
<MenuItem Text="Anmelden" Url="~/Register.aspx" Value="0"/>
<MenuItem Text="Kundenkonto ändern" Url="~/CustomerData.aspx" Value="1"/>
</MenuItem>
<MenuItem Text="Visitenkarten" Value="1" Enabled="false" Url="">
<MenuItem Text="Datei hochladen und bestellen" Url="~/ProductUpload.aspx" Value="0"/>
<MenuItem Text="Layout selber gestalten" Url="~/ProductLayout.aspx" Value="1"/>
</MenuItem>
<MenuItem Text="Warenkorb" Url="~/Basket.aspx" Value="0"/>
</Site>
On menu item click I want to know the "Url" value corresponding to the node clicked on.
I am using following code,
url = XmlMenuSource.GetXmlDocument().SelectSingleNode(
String.Format("//MenuItem[@Value={0}]/MenuItem[@Value={1}]",
MainMenu.SelectedItem.ValuePath.Split(@"/".ToCharArray())[0],
MainMenu.SelectedItem.ValuePath.Split(@"/".ToCharArray())[1])
).Attributes["Url"].Value;
but this code fails when I click on "Warenkorb".
can anyone pls suggest me how can i do it?
Thanks in advance.
|
|
|
|
|
may i know the diff b/w datagrid gridview
plz let me know
with regards
d.ravi kiran reddy
|
|
|
|
|
probably this will help you a bit.
http://msdn.microsoft.com/msdnmag/issues/04/08/GridView/
Best Regards,
Apurva Kaushal
|
|
|
|
|
datagrid is for backwars compatibility
and a gridview is more responsive to the data
--------------------------------------------------------
1 line of code equals many bugs. So don't write any!!
My mad coder blog
|
|
|
|
|
Hi All
I am trying to upload files
How can i rename that files After Uploading OR in uploading process
I want to rename when it is loded or loading time
THX
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
|
|
|
|
|
You can just specify whatever filename you like...? How are you saving your file?
|
|
|
|
|
Hi,
After you uploaded files into server , you are still be able to rename that file, specify file that u want to rename and then click on rename button , that's it,
Hy Chanhan,
I am a student at BBU in Cambodia.
In major: Information Technology.
This web is so interested.
|
|
|
|
|
Hi,
After you uploaded files into server , you are still be able to rename that file, specify file that u want to rename and then click on rename button , that's it,
Hy Chanhan,
|
|
|
|
|
THX for reply
If the user uploaded file name is photo.jpg
Then
On upload time i want to change and save that file as id.jpg (BY programetically)
I am using this code
-----------------------
Dim fileName, pathname As String
fileName = Path.GetFileName(upfile.PostedFile.FileName)
If File.Exists(("c:\Rename" & "/" & fileName)) Then
File.Delete(("c:\Rename" & "/" & fileName))
End If
upfile.PostedFile.SaveAs(("c:\Rename" & "/" & fileName))
File.SetAttributes(("c:\Rename" & "/" & fileName), FileAttributes.Archive)
THX
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
|
|
|
|
|
|
and probably replace your forward slash with a backslash...
|
|
|
|
|
Is there any method to place the ASP.NET textbox CONTROL into the edititemtemplate of the datagrid dynamically?
Please help.
|
|
|
|
|
ItemCreated is possible
--------------------------------------------------------
1 line of code equals many bugs. So don't write any!!
My mad coder blog
|
|
|
|
|
Hi Dear,
I want to share a problem, in developing a website using Asp.Net2.0(C#).
We are in a process of building a website,where i need to include a shoppingCart.
Since i am not an expert in developing,i would like to share my problem, friends like you.
Thanks for Sharing the Problem,Hope to get suggestions/solutions at your convenience.
-- modified at 5:47 Friday 28th July, 2006
With Regards
Satips
|
|
|
|
|
|
Thanks for ur Help,
I have got the idea of building the Shopping Cart for my project.
i should once again thankyou for rendering me a suitable link from the microsoft site itself.
it is easy in programming.
happy regards,
With Regards
Satips
|
|
|
|
|
I have a DataGrid with select buttons on it, when I press a button the page is refreshed only. The problem is that the ItemCommand event is not occuring and I can not figure out why.
Every thing that I have read say it should be working. Including a search of past post to this db.
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
|
|
|
|
|
Can you post a bit of your datagrid declaration?
|
|
|
|