|
Hi
In my web application i want to allow access to my web application only those user whose entry exsist in web.config file
<identity impersonate="true" userName="s717369" password="pa$$w0rd"/>
Note there is no any domain exsist, i want to give access in my application to only those user who is giving this userid and password same as web.config during windows login.
Sajid A.
|
|
|
|
|
It would be much better if your ID and password were being compared to a database login but if you want a solution for the above check this out:
http://msdn.microsoft.com/en-us/library/aa292118(VS.71).aspx
We are not a Code Charity
|
|
|
|
|
hi all! I have an issue and I really don't know how to solve. I am building a web app, and I am loading a XML Document. After I am loading the document, I want on the web site to display a data table with the data from the xml document. I want the data to be populated depending from the data what I have in the xml document. For example:
<Employees>
<Employee ID="1">
<Name>John</Name>
<Status>ProjectManager</Status>
</Employee>
<Employee ID="2">
<Name>Samantha</Name>
<Status>SoftwareDeveloper</Status>
</Employee>
</Employees></code>
then from that xmldocument I want to populate a datatable. Is that possible? Thanks ahead
|
|
|
|
|
Simply read the xml data to dataset.
Dataset ds = new dataset();
ds.readxml('xmlfilepath');
Datatable dt = new Datatable();
dt = ds.tables[0];
G. Satish
|
|
|
|
|
The thins is that I am receiving the xml from web service like a string, and not like a xml document. Any help in that case?
|
|
|
|
|
DataSet.ReadXML(TextReader reader,XMLReaderMode mode) use this overload. StringReader is an implementation of TextReader class, which you can use to read from a string.
|
|
|
|
|
can you give me example how should I use in my case. I am getting the string from the web service:
string test = Status.GetXMLDocument(ID, Name, Status);
DataSet ds = new DataSet(TextReader reader, XmlReadMode mode);
and when I am trying like this, it gives me errors expecting ')' and ';' after reader and after mode. Thanks ahead
|
|
|
|
|
laziale wrote: DataSet ds = new DataSet(TextReader reader, XmlReadMode mode);
string test = Status.GetXMLDocument(ID, Name, Status);
DataSet ds = new DataSet();
ds.ReadXML(new StringReader(test),XmlReadMode.Auto);
|
|
|
|
|
Thx, it works, but I cannot populate the gridview with the dataset, simply remains empty, any idea how can I populate with data from the dataset? Thanks
|
|
|
|
|
Hi all,
I have a requirement to drag a control in a web page from one place in to another place and at the same time, i need to change the width and height of the controls in web page..(similarly as we do in vs2005 designer).
How can we achieve this
G. Satish
|
|
|
|
|
I think the AJAX tookitt comes with a similar type of panel. Have you checked that ?
|
|
|
|
|
Check this out:
http://www.asp.net/AJAX/AjaxControlToolkit/Samples/DragPanel/DragPanel.aspx
We are not a Code Charity
|
|
|
|
|
Hi all, I have an interest to attend for online classes with free of cost regarding asp.net, c#, vs2005, sqlserver. which are conducted by Microsoft in weekends in various cities. But i dont know the source how to attend for this?
Where i have to register for this?
Can any one knows, let me know.
I am staying at Hyderabad, Andhra Pradesh, India.
I am not knowing whether this is a correct Place to post this Message or Not ? if Not, Sorry for this post.
G. Satish
G. Satish
|
|
|
|
|
|
ya, exactly like this i wanted. But this session is already completed in march. I need upcoming sessions regarding .net. Just now, i logged in to this site, all the posts and etc are before 2006. No latest things are there.
If other than this, any thing is there..just give the links.
Thanking you greatfully
G. Satish
|
|
|
|
|
http://msdn.microsoft.com/en-us/asp.net/default.aspx?pull=/library/en-us/dnaspp/html/aspnet-createrssw-aspnet.asp
We are not a Code Charity
|
|
|
|
|
You may like to check out the regional UserGroup website (http://groups.msn.com/dotnetusergrouphyd/[^])
Not sure who has voted a '1' for this. Since I didn't find anything harmful or hurting, I am just trying to make it balanced.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hi People,
I have an ACE placed on a user control.
If no matching results are found for the criteria supplied I display --> No match found. Please select the item that matches your field of expertise.
This is a bit late and maybe less intuitive.
What I would like is to place a non selectable item in the result list at the very bottom. It would say --> Please select the item that matches your field of expertise.
The result list would then look like this below.
Finance
Clerk
Developer
Trader
Retail
etc
--------------------
Please select the item that matches your field of expertise
The last 2 lines would have some javascript that would prevent them from being selected. The webservice current does this ...
<br />
<br />
If Not (tblOccupations.hasRows) Then Return New String() {"Not found. Please try again for the closest match"}<br />
Dim items As List(Of String) = New List(Of String)(tblOccupations.totalRows - 1)<br />
While (tblOccupations.nextRecord)<br />
items.Add(tblOccupations.OCCUPATION_NAME)<br />
End While<br />
'--- Add Text To Inform User To Select The Closest Match<br />
items.Add("-------------------------------")<br />
items.Add("Please select the item that matches your field of expertise")<br />
Return items.ToArray()<br />
<br />
Is it at all possible to add any javascript here?
Many thanks
|
|
|
|
|
How to show ModalPopupExtender on page load?
Help on this really appreciated!
|
|
|
|
|
Hi,
Can u pls explan excatly the scenario.
|
|
|
|
|
Just wanted to show a popup on page load.
|
|
|
|
|
Using ModelPopupExtender.Show() method.
please don't forget to vote on the post that helped you.
|
|
|
|
|
can't i access the session variables in the .ascx file(web user control)?
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
u can access session variables in user controls
|
|
|
|
|
i have to pick some values of variable in web forms to web user control.
and i can't use the session valiables there?
It always evacuate the values from session , while using them in .ascx file.
Don't u think so?
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|