|
Hello,
im building a web application and although 90% of the users will be internal employees the other 10%
will be the customer.
Tying to keep user accounts in one place I didnt want to create a new sql database.
So I thought about usins AD as the Authentication.
Ive read in places that you should not use this for external users but the info was a bit grey I was wondering if anyone
can give me a low down on why I should not use AD.
Thanks
|
|
|
|
|
Hi.
i want to add controls at runtime in catalog zone.
please look at the code below
<ZoneTemplate>
<asp:DeclarativeCatalogPart ID="DCP1" runat="server" title="Available Panels">
<WebPartsTemplate >
<SMART:WelcomeMessage runat="Server" ID="WelcomeMessage1" title="Welcome Message" Visible="false"/>
<b><MyLastForecasts runat="server" ID="myLastForecasts1" title="My Last Forecasts" Visible="false" />
<MyLastProjects runat="server" ID="myLastProjects" title="My Last Projects" Visible="false" />
<LastFiveQuotes runat="Server" ID="dlLast5Quotes" title="Last 5 Quotes" Visible="false" />
<MyForecastToApprove runat="server" ID="MyForecastToApprove1" title="My Forecasts To Approve" Visible="false" /></b>
</WebPartsTemplate>
</asp:DeclarativeCatalogPart>
<ZoneTemplate>
in this code, the bold text area in of controls that i have to add runtime, actually it depends on user rights to see.
my real problem is adding conrols to catalog zone at runtime.
Can anyone help me for this issue ???
|
|
|
|
|
PLease put the code in the
section <br />
Can u tell what do u mean by catalog zone ? <br />
<br />
<br />
<div class="ForumSig"><font color="gray">Thanks and Regards</font><br />
Sandeep <br />
<br />
<font color="blue" style="font-style: italic">If you want something you never had,<br />
do something you have never done!<br />
</font><br />
</div>
|
|
|
|
|
Hello,
I have an ASP.NET app where I want to display a few labels and images on a page if the user hits the back button on the browser. How would i be able to capture the back event on my app ? iam a little new to ASP.NET to sample code will help too !!!
this is my situation
Page(A)---> Page(B)
if someone presses the back button on Page(B) i want to show Page(A) with certain modifications. Thanks for your help !!!
Regards
RH
|
|
|
|
|
Hi,
What are the possible syatax (usage) that we can able to give in the below symbol in the Design view of asp.net page?
<% %>
(eg) <%= .... %>
FYI, I wish to display all my data from DataSet. In my GridView, I am using the Dataset as a data source. So I wish to know the usage of <% %> in the Design view. I have googled for the all possible usage of <% %>. But its helpless for me.
Regards,
Jay
|
|
|
|
|
Don't know about DataSet, but if you use
DataView or DataTabel the syntax is
<br />
<%#DataBinder.Eval(Container.DataItem, "theColumnName").ToString()%><br />
I have experiensed that I have to use the <%=...%> sometimes
<br />
..table cellspacing="0" cellpadding="0" border="0" style="width:"<%=SomeStaticValue%>"..<br />
|
|
|
|
|
Unless you are using template columns in your gridview you don't need to use the databinding expressions.
only two letters away from being an asset
|
|
|
|
|
Hi
you can use in this way
<%# DataBinder.Eval(Container.DataItem, "Payor.NickName")%>
ok where Payor.Nickname is the datacontainer which contains value
but best is learn it and find by giveing proper query on google
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
I have got the License key of Dunda Chart ASP.NET Prof but i dont know how to register with it.
Any body who can help me..? Plss help me
|
|
|
|
|
Is there any reason why you aren't using the support provided by Dundas? They would seem to be the obvious place to ask that sort of question.
|
|
|
|
|
I have also asked them the question as well.
|
|
|
|
|
Hi,
I have an xml file with employee data and need to uplaod its content to the database.
For this I have used dataset.ReadXml method and then I am using the dataadapter.update method to upload the content of the dataset to the database.
Here is the code:
protected void Button1_Click(object sender, EventArgs e)
{
string path = @"D\emp.xml";
string dsTable = "";
string connectionString = @"Server = DB\SQL2; Database = CWBDB; user = sa; password = sa";
DataSet ds = new DataSet("EMPDS");
ds.ReadXml(path);
foreach (DataTable t in ds.Tables)
{
dsTable = t.ToString();
}
SqlConnection con = new SqlConnection(connectionString);
SqlDataAdapter da = new SqlDataAdapter();
da.TableMappings.Add("EMP", dsTable);
if ((da.Update(ds))>0)
{
Label1.Text = "Uploaded the data successfully";
}
else
{
Label1.Text = "Could not Upload the data";
}
}
But I see an exception:
"Update unable to find TableMapping['Table'] or DataTable 'Table'."
Please help!
-- modified at 8:15 Wednesday 11th April, 2007
Rakesh
|
|
|
|
|
rockyl wrote: foreach (DataTable t in ds.Tables)
{
dsTable = t.ToString();
}
What are you trying do here ? i think it will overwrite in each loop
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
da.TableMappings.Add("EMP", dsTable);
The above statement of my code makes a mapping between database table and dataset table, the first parameter is the database table name and the 2nd paramaeter is dataset table name. So I am getting the table name from the dataset and passing to it so that a mapping may occur between the database table and the dataset table.
In short I will explain what I am trying to do. Theres an xml file consisting of Employee data, I need to upload this xml content to the Database. For this I have used the Dataset.fill(xmlpath) and then using the dataadapter for updating the data to the database. Now u can see my previous code and get clear understanding.
Rakesh
|
|
|
|
|
how do i upload a image in thumbnail format
monu_khan
|
|
|
|
|
Why you want the imgae in the thumnail format ?
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
|
Hi All,
What is meant by pearreview and codereview?
Explain me with example
Thanks.
|
|
|
|
|
Hi,
PeerReview is review done by your peers (co-workers)to identify bad code which leads to malfunctioning of the application.
CodeReview is also the same thing but can be done by anyone not only your peers.
Rakesh
|
|
|
|
|
hi
In want to develop a project" leave management system "in ASP.NET
in that how to transfer details we type in web forms to outlook??
whatever i save in web form will get updated in database which is saved in server, so how to get the datas from text box to outlook content.
i inherited the component microsoft outlook view, but i dont know how to use it.in what format it will be saved in outlook express.
tanksss
shalini
shs
|
|
|
|
|
Hi all,
i just want to know that if i install .NET framework before IIS what is the command that i can use so that i don`t need to reinstall both again.
This is because you can`t execute the project if you do so. You have to do vice versa. can any buddy gimme the command or an exe file that should be executed to solve the prob.
thanks in adv...
|
|
|
|
|
Hi,
See Link
OR
You can reinstall just the framework.
Mubashir
Software Architect
Storan Technologies Inc, USA
Every job is a self portrait of the person who did it.
|
|
|
|
|
Use this tool aspnet_regiis.exe located in Microsoft.NET\Framework\vxxxxxx
<< >>
|
|
|
|
|
simply run %windir%\Microsoft.NET\Framework\version\aspnet_regiis.exe -i
at command prompt version will be the version of .net u are using
monu_khan
|
|
|
|
|
Hello,
VS 2005
I have created a web service and the web service as a connection string in the config file.
Only the user will know the connection string details when they first install the web service. i.e. server, user id, database etc.
I have created the setup using the msi webSetup.
However, my problem is how do i get the user information for the connection string from the user and update the web.config with the new connection details.
Need serious help with this, and code examples would be most helpful.
Thanks very much,
Steve
|
|
|
|