|
You can change the orientation property
Best Regards
-----------------
Abhijit Jana
Microsoft Certified Professional
"Success is Journey it's not a destination"
|
|
|
|
|
hi Abhijit
thanks.
i checked this .but not working...
|
|
|
|
|
Just Select "Menu" From Tool Box and Chnage the "Orientation" Property.
can you infrom me the details problem you are facing?
Best Regards
-----------------
Abhijit Jana
Microsoft Certified Professional
"Success is Journey it's not a destination"
|
|
|
|
|
Try this ... I have just Put aspx code for you
<asp:Menu ID="Menu1" runat="server" BackColor="#B5C7DE" DynamicHorizontalOffset="2"<br />
Font-Names="Verdana" Font-Size="0.8em" ForeColor="#284E98" Orientation="Horizontal"<br />
StaticSubMenuIndent="10px"><br />
<StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" /><br />
<DynamicHoverStyle BackColor="#284E98" ForeColor="White" /><br />
<DynamicMenuStyle BackColor="#B5C7DE" /><br />
<StaticSelectedStyle BackColor="#507CD1" /><br />
<DynamicSelectedStyle BackColor="#507CD1" /><br />
<DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" /><br />
<Items><br />
<asp:MenuItem Text="Home" Value="Home"></asp:MenuItem><br />
<asp:MenuItem Text="About US" Value="About US"></asp:MenuItem><br />
<asp:MenuItem Text="Contact Us" Value="Contact Us"></asp:MenuItem><br />
</Items><br />
<StaticHoverStyle BackColor="#284E98" ForeColor="White" /><br />
</asp:Menu>
Best Regards
-----------------
Abhijit Jana
Microsoft Certified Professional
"Success is Journey it's not a destination"
|
|
|
|
|
|
Hey!
I am trying to retrieve data from the database and display into the textbox.
For example, when the user wants to edit a current event stored in the database, he clicks the edit button and the edit panel shows. The edit panel consists of all the different textboxes to key in the values. When the edit panel loads, the data in the current event is to be populated into the corresponding textboxes.
I tried using gridview and with following code. StartTimeTextBox.Text = GridView1.Rows(1).Cells(1).ToString
Hope someone could help!
Thanks in advance!!!!
|
|
|
|
|
You have to handle the ItemCommand event.
guardianhm wrote: GridView1.Rows(1).Cells(1).ToString
Also this might be like the following
StartTimeTextBox.Text = GridView1.Rows(e.ItemIndex).Cells(1).Text
|
|
|
|
|
I have built a login authentication section that uses forms authentication. The administrator can log in with their password and username and are granted access to admin pages. However...I dont want a login page as normal users of the site are not monitored. I would like another method so that when the admin is browsing the site the admin pages are made avaliable. Maybe using a cookie or IP address or something. HELP!
cheers
|
|
|
|
|
I use both cookie and session.
Glad to discuss with you and best wishes.
|
|
|
|
|
Hi all
(ASP.NET)
I would like to allow a logged in administrator to upload files to my web application for download.
1) select file for upload
2) upload file
3) web app displays download link for file
Is the best way to do this using a database table "files" or a folder containg uploaded files? Any suggestions welcome plus code examples?
cheers
|
|
|
|
|
I prefer to store files in a folder. and store file path in a table.
Glad to discuss with you and best wishes.
|
|
|
|
|
When you upload the file you can add file name with its path in the database. When the user go on the file listing you can easily display the file as a link from the database. I usually don't save files in the database until and unless I am very sure about their size and when its a requirement.
Faraz Shah Khan
MCP, MCAD.Net
Blog
|
|
|
|
|
In my page, the visitor will fill in a form and can upload a file.
I do not need to save the file itself to the database, rather I save the file to a folder on the server with a reference in my table.
The Problem is:
if more than one file with the same name and extension were uploaded, each one will overwrite the older one
I have 2 solutions of my own:
1- I can create a sub-folder with a name same as the primary key of the record this file belongs to. and upload the file to that sub-folder
2- I can append the primary key as a prefex to the file name
But, I think this problem has more smart solution that I faild to find by google or even in codeproject articles
Mohammed Gouda
foreach(Minute m in MyLife)
myExperience++;
|
|
|
|
|
|
What solutions you have suggested are good you can also do one more thing is to rename the file either with the primary key or some GUID name and keep the actual file name and path of the file in the database so that when you display the file you can show it with actual name and on the backend its with some different unique name.
Faraz Shah Khan
MCP, MCAD.Net
Blog
|
|
|
|
|
Thanks
But I gussed there is more standarad direct solution
Mohammed Gouda
foreach(Minute m in MyLife)
myExperience++;
|
|
|
|
|
To be more honest I have not seen any better solution so far as the above 3 solutions. any way there still can be a better way but I couldn't find any thing wrong in this one.
Faraz Shah Khan
MCP, MCAD.Net
Blog
|
|
|
|
|
farazsk11 wrote: but I couldn't find any thing wrong in this one.
One of the lacks of the above 3 solutions is that them all depend on the primarykey.
And I generate the primarykey on the submit event (for some reason)
So, how to use it in the upload event before it is generated
Mohammed Gouda
foreach(Minute m in MyLife)
myExperience++;
|
|
|
|
|
Well as a matter of fact I usually use GUID to rename files and as the GUID is generated in the code I pass it in the database. I usually store the GUID name and the actual name so that when the user request I can display it as actual name and on the backend i keep it with GUID.
Faraz Shah Khan
MCP, MCAD.Net
Blog
|
|
|
|
|
I have a problem with using div in master page with a fixed CSS file. The div contains content panel. The content panel has a grid view or a data view or both. When they appear in the page, they go out of the page.
I tried to make the height = inhernt and also height = auto, but both of them didn't work.
How can I make the page expand to contain them/it as long as they expand?
Regards,
modified on Sunday, March 30, 2008 5:24 AM
|
|
|
|
|
try not to give any property of height in the css file.
|
|
|
|
|
I am not using CSS file. I am using inline code.
|
|
|
|
|
You might want to try giving your DIV the CSS attribute of overflow:auto; .
I hope this helps.
|
|
|
|
|
Can someone tell me please how can I change the location of a div when a page loads?
I need to change the location on the page of the div. I tried to use java script but i couldn't manage. Thanks infront
|
|
|
|
|
Does your DIV have an ID attribute? If so, if you want to move it using JavaScript, you could put the following code in the BODY section of the web page. Or, if you wanted to have the JavaScript in the HEAD section, you could turn the code into a function and have it called in the OnLoad event of the page.
<br />
<script type="text/javascript"><br />
myDiv = document.getElementById("theDivID");<br />
myDiv.style.left = fillIn+ "px";<br />
myDiv.style.top = fillIn+ "px";<br />
</script>
(Note, replace both fillIn with integers and theDivID is the actual ID of the div)
I hope this helps.
modified on Sunday, March 30, 2008 3:59 AM
|
|
|
|