|
Hello everybody,
I want to design only one master page for different type of users. Menu items should display accoding to permission for a user type. To design, i have used menu tool. I want to connect the menu with different sitemaps, because sitemap stores xml data. I will provide all sitemap with different names menually. When someone logging in it will check the user type and set menu items accordingly.
But sitemap datasource by default connect with web.sitemap and shows menu. There is no option found to menually set other sitemaps for a menu.
How can i link with other sitemap at runtime? And how can i design this type of master page? If there is any other process, please tell me.
Please help me.........
Thank you in advance.
Dipak
|
|
|
|
|
sir plzz any one suggest the csharp coding to take printscreen on an image
|
|
|
|
|
amitbhatt wrote: any one suggest the csharp coding to take printscreen on an image
Print screen of an image ? If you know the image path, why you need print screen ?
|
|
|
|
|
Hi friend
I am opened an asp.net project from networking folder they showing security error in message box
The project is not fully trusted by the .NET runtime.This is Usually because it is either a network share or mapped to a
network share not on the local machine.if the output path is under the project location your code will not execute as
fully trusted and you may receive unexpected security exceptions
who to give permission .Net framework 1.1 Cofig wizard
this project is developing on vs 2003
Prasanna Kumar.B
|
|
|
|
|
You MUST copy the project to your localhost to be able to open it, I think
Mohamed Gouda
Egypt
|
|
|
|
|
how many types of columns we define in a grid view..
|
|
|
|
|
Hi,
you can check this link[^] to get better idea.
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
Hi i am using vs2003,
Using datagrid hyperlinkcolumn, i am passing parameter from one form o another,
I achieved this one for one parameter,
But i am strugging to pass 2 values,
This is my hyperlink column:
<asp:hyperlinkcolumn target="_self" datanavigateurlfield="fdate" datanavigateurlformatstring="frmTravelExpDetails.aspx?Fdate={0}"
DataTextField="FDatelink" HeaderText="Travel Period">
<itemstyle font-size="14pt" horizontalalign="Center" forecolor="Blue" verticalalign="Middle"></itemstyle>
</asp:hyperlinkcolumn>
i want to pass one more parameter cell in this,
Any one help me,
Thanks & Regards,
Mageshh,
please don't forget to vote on the post
|
|
|
|
|
HMagesh wrote: frmTravelExpDetails.aspx?
Hi,
u can do as per below code.
frmTravelExpDetails.aspx?param1=test¶m2=test2
Like this.
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
how to run .sql file of a oracle using vb.net..iam writting some pl/sql using begin and end statements and iam saving the file as xyz.sql now this file i have to run in oracle usig vb.net....is this possible .....
|
|
|
|
|
Try reading the file contents and pass it to ExecuteNonQuery() method.
|
|
|
|
|
Hi,
in asp.net why we are writing connection strings in web.config?.can't we store connection strings in class or in any dll.
With regards,
anu
|
|
|
|
|
It doesn't make as much sense in ASP.NET because it is compiled on demand. However, the reasoning is that configuration settings should not be compiled into an application. Also, SOX compliance and good corporate governance means a developer should not have access to production passwords, thus a network admin needs to be able to make the adjustments.
Need a C# Consultant? I'm available.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
|
|
|
|
|
It's your choice of keeping connection string. It can be kept anywhere. But keeping it in a configuration file like web.config, allows to edit the value without recompiling your application.
|
|
|
|
|
yes you configure a connection string programmatically in every class on your application.
of course, I'm sure you wated the conection strings to be saved in the settings, ypu could do it by adding the necessarily references.
as well you can use your dataset designer to do it.
Shimi
|
|
|
|
|
Also we can protect the connectionstring specified in connectionstrings section of web.config.
Arun J
|
|
|
|
|
I've got a web project using Atlas. The web project also uses a master page. On one page, I need an alert box to pop up roughly half of the time the UpdatePanel is refreshed, and the text of the alert box needs to be dependent on the outcome of code executed before the UpdatePanel is re-rendered.
Concretely: The page has a GridView that is filtered by radio button options, and there are some action buttons under the GridView. If the radio button selection is changed, I don't want an alert box to pop up. But if an action button under the grid is clicked, I want an alert box to pop indicating the outcome of the operation.
I have tried writing dynamic JS directly into the UpdatePanel through the use of a Literal control, and I have tried using RegisterClientScriptBlock(). But in neither case has my alert box actually come up when I click one of my action buttons.
Any ideas?
Thanks.
|
|
|
|
|
for as long as i knew, showing alert box in update panel can't be done.
i don't know if there is any funky method to achieve this goal.
when i was in the project that change application's framework 1.1 to 2.0 with asp.net AJAX, the solution to this problem is providing a label control that hidden or visible = false. if you want to show any message just show the label and assign it with some string value. you can add font-color = "red" if you want to, and font-size = "even blind man can see"
i hope this help, if you have the funky method that i'm talking about above, please tell me what your method is ...
thx fellow developer...
|
|
|
|
|
I am using hidden labels with bold red text right now. The problem is a bunch of the moron users have 800 x 600 screen res. I started getting flooded with complaints, "I never saw a confirmation message..." So my client asked me to take out all of the labels and replace them with alert boxes.
When the alert box experiment failed, I tried using JS code to force the browser to scroll back to the top of the page. That failed too. That's when I began thinking there's a problem with rendering JS in a refreshed UpdatePanel.
If it can't be done, then I'll just tell my client that that's the case, and that the next solution is to move the messages from the top of the screen to just above the buttons they click.
Thanks for your help.
|
|
|
|
|
Anytime dude...
|
|
|
|
|
Hi,
Me too had similar problem. Try using following code
private void ShowMessage(string message)
{
//This code works if there's no UpdatePanel
//string script = "<script type=\"text/javascript\">alert('" + message + "');</script>";
//Page.ClientScript.RegisterStartupScript(this.GetType(), new Guid().ToString(), script);
//Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
// We must do something slightly different with an UpdatePanel
string jScript = "alert('" + message + "');";
ScriptManager.RegisterClientScriptBlock(UpdatePanelNewsLetter, UpdatePanelNewsLetter.GetType(), new Guid().ToString(), jScript, true);
}
now call the ShowMessage() function wherever required in UpdatePanel
Regards...
|
|
|
|
|
Hi All,
Could you please give me an Html code/Java script code to detect an opertaing system before opeing a web page?
How can i place the code in my Html for the page so that it can call the script before loding the page?
Thank you very much
Regards
|
|
|
|
|
kibromg wrote: Could you please give me an Html code/Java script code to detect an opertaing system before opeing a web page?
Google[^] not working where you live?
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
i have created a multiview which has 4 views.........multiview is placed in a panel.... when the active view is changed.... active views are displayed at different locations of the screen exactly whre they are present in ASPX file.......... i want that whatever view is active it should be displayed on the same location.....
What should i do
|
|
|
|
|
If you're using the asp.net multiview control it should be working fine, no need for extra panels.
only two letters away from being an asset
|
|
|
|