|
|
Hi friends,
I am in problem. I am using Asp.Net 2.0 application.I got an output in hash table like
System.Collections.Hashtable
Key: ashok.org
Value:
System.Collections.Hashtable
Key: status
Value:
available
Key: classkey
Value:
domorg
The above hash table output i got it. I want to read this hash table object and i need to get the Key and value both.
I can create hash table object and using IDictionary i can get these Key and Value. But first time i can get Key and write it. Here my Value is in object type and inside I have Key and Value. How can i read the object?? and get the Key and Value inside of Value. Please give me suggestion. Hope yours reply.
Every Successful Person Have A Painful Story
|
|
|
|
|
You have a hash table of hash tables ? So use the Keys collection if you need it to iterate over the keys, then cast the values to whatever they happen to be, and go from there.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Using string builder it is possible i think. But the Value is an object type that system.collections.hashtable.So i couldnt read this one.
Every Successful Person Have A Painful Story
|
|
|
|
|
hi..i hav encountered a prob whil connectin database wit my front page..i hav then tried usin sql2008 but it shows error message as "wrong path"..pls solv tis prob
vinod
|
|
|
|
|
can you copy the connection string here ..
vikas da
|
|
|
|
|
Are you sure about what you asking?
The subject says "SQL Server 2005 with VS 2008", the content says "SQL Server 2008".
vinodgumms wrote: i hav encountered a prob whil connectin database wit my front page..i hav then tried usin sql2008 but it shows error message as "wrong path"
Great. The question is as great as that we don't know what you are trying say. Could you please ask your question somewhat clear?
|
|
|
|
|
tanx for the reply...
intially tried to connect sql sever 2005 but ten fed up wit it..so nw tryin sql 2008 but still its nt connectin....
|
|
|
|
|
vinodgumms wrote: ntially tried to connect sql sever 2005 but ten fed up wit it..so nw tryin sql 2008 but still its nt connectin....
if no luck with above will you try other database also ??? some are DB2,Oracle,MsAccess etc...
will you let us know your feeling ,understanding,problems about the code....???
vikas da
|
|
|
|
|
I am trying to trigger an event in the textbox changed event, but the system is giving an error, "Could not find an event named 'UserName_Changed' on associated control 'UserNameTextBox' for the trigger in UpdatePanel 'UpdatePanel1'.
Following is my html code:
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:TextBox ID="UserNameTextBox" CssClass="PCMSStandardTextbox" OnTextChanged="UserName_Changed"
runat="server" MaxLength="50"></asp:TextBox>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="UserNameTextBox" EventName="UserName_Changed" />
</Triggers>
</asp:UpdatePanel>
<asp:UpdateProgress ID="UpdateProgress1" runat="server">
<ProgressTemplate>
<span class="ProgressBar">
Checking for Username availability...</span></ProgressTemplate></asp:UpdateProgress></td>
in aspx.cs:
protected void UserName_Changed(object sender, EventArgs e)
{
string strUserName = UserNameTextBox.Text.Trim();
List<string> UserNames = u.GetUserLogin();
}
I tried to put AutoPostBack=true property of the textbox. But doesn't make any difference. Am I doing something wrong here?
Can anybody please provide any help on this? Thanks in advance.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
UserName_Changed is the name of the handler. The name of the event is OnTextChanged.
|
|
|
|
|
on the EventName property for the AsyncPostBackTrigger leave out the prefix for the event name i.e: OnTextChanged becomes TextChanged; look in your properties window for the event names required.
|
|
|
|
|
U need to provide the EventName and not the MethodName that invokes the event.
So in your case, the following line seems to be the solution.
<asp:AsyncPostBackTrigger ControlID="UserNameTextBox" EventName="TextChanged" >
|
|
|
|
|
Hello
This is my first message posted on this site. I used it alot before but didn't sign in until now.
I have to make a website in ASP.NET(VB.net) for school so that I can log all users that go to a blocked site (e.g. www.nl.netlog.be). Now it just redirects you to www.google.be but we have to make our own site to put on the intranet. It needs to get user information like the username and save it. If he comes on the website for like 3 times I want to give him a warning. It's supposed to be stored for a week (the amount of times the specific user was on the website). The users can log in on different computers.
How should I start with this? Or do you guys have any tips?
Thanks
Klaas Lecomte
|
|
|
|
|
Welcome to code project.
Firestrikers wrote: I have to make a website in ASP.NET(VB.net) for school so that I can log all users that go to a blocked site (e.g. www.nl.netlog.be).
ASP.NET can't monitor the sites which user is visiting. Your question is not clear. Please explain in details what you are trying to achieve.
|
|
|
|
|
N a v a n e e t h wrote: Welcome to code project.
Firestrikers wrote:
I have to make a website in ASP.NET(VB.net) for school so that I can log all users that go to a blocked site (e.g. www.nl.netlog.be).
ASP.NET can't monitor the sites which user is visiting. Your question is not clear. Please explain in details what you are trying to achieve.
Well, I don't have to monitor the pages wich the user want to visit, I just need to monitor the names of the persons who come on THIS page that I have to create. Only people who go to sites that are blocked in the network end up on THIS site.
I hope this clears things up
|
|
|
|
|
Well, I assume you want to get the windows login id which the user is using. Right? Read about this[^]
|
|
|
|
|
Thank you for the link, that will come in very handy. But the hardest part for me is how do I save the information of the amount of times the user came on the page in 1 week?
|
|
|
|
|
Trace login and logout duration time.
Parwej Ahamad
ahamad.parwej@gmail.com
|
|
|
|
|
hi friends...
..my problem is that..i have 5 rows in single column..so i want dispaly that 5 rows as 5 columns in gridview...
plzzzzzzz help me...
txs in advance........
|
|
|
|
|
instead of using gridview use datalist
|
|
|
|
|
Hi,
I had a problem. I can access my ASP.NET application through localhost and also
through my IP in my system.
But I am unable to connect from other system which is in same LAN. I was able
to access before but now I am not able to access
from other system. Is there anything to set in my IIS? Pls help me regarding
this.
Waiting for ur response.
murali krishna
|
|
|
|
|
avvaru.murali wrote: Is there anything to set in my IIS?
I don't think so. If you have deployed your application in IIS and It is accessible from you system by http://yourip/yoursite then Its fine.
avvaru.murali wrote: am unable to connect from other system which is in same LAN. I was able
to access before but now I am not able to access
from other system.
I think there may be some problem with your LAN. What problem are you getting while access that url. Did you ping that IP? Is it accessible?
|
|
|
|
|
avvaru.murali wrote: But I am unable to connect from other system which is in same LAN. I was able
to access before but now I am not able to access
from other system. Is there anything to set in my IIS? Pls help me regarding
this.
What is the OS of your machine? If it is XP, by default the firewall in XP restricts the ports (80) accessed from outside. Add an exception in the Firewall or turn off the firewall and try.
|
|
|
|
|
Hi,
I have a web application in which im trying to access the local machine sybase database...it works fine in my machine...but when i deployed it using MSI ...ie when i installed that MSI in other machine and there im not able to access the database ie when i run my application the page which contains database connection throws an Error like
System.componentModel.Win32Exception:Access denied at iAnywhere.Data.SQLAnywhere.SAConnection.Open....
|
|
|
|