|
I don't want to use image box unless, there is a way to show full size picture. Is there anyway to do?
|
|
|
|
|
do you konw HTML?
like this
I love li li huang ,
ha ha ,
but you don't who is she!
|
|
|
|
|
Hi, in my page i have 2 usercontrols in a aspx page. on left user control i have treeview. I need to create a breadcrumb on top usercontrol of the aspx page.
how do i access the selectedvalue of a treeview in the top usercontrol. plesae someone help.
I did below in page load of top user control but i get object not set to ... exception
Dim ctlheader As UserControl = CType(Me.Page.FindControl("menuleft"), UserControl)
Dim tv As TreeView = CType(Me.Page.FindControl("tvPortfolio"), TreeView)
If Not tv.SelectedValue Is Nothing Then
lblcrumb.Text = tv.SelectedValue
Response.Write(lblcrumb.Text)
End If
|
|
|
|
|
Use delegates to get your controls to talk to each other.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I am trying to use delegates but i am having problem
in left ascx i added
Public Sub SubscribeTreeNodeChanged(ByVal Del As TreeNodeSelectedIndexChanged)
AddHandler TreeNodeChanged, Del
End Sub
Public Sub UnSubscribeTreeNodeChanged(ByVal Del As TreeNodeSelectedIndexChanged)
RemoveHandler TreeNodeChanged, Del
End Sub
in aspx in page load i added.
Me.menuleft.SubscribeTreeNodeChanged(AddressOf Me.headder.buildcrumb) --> please note headder is top ascx
in headder ascx
Public Sub buildcrumb(ByVal sender As Object, ByVal e As EventArgs)
lblcrumb.Text = "hello" --> i need to get the treenode value.
End Sub
but buildcrumb is not called at all. as i dont know how could i call this from page load of headder.ascx
In aspx i can call via Me.menuleft.SubscribeTreeNodeChanged(AddressOf Me.bindPortfolioCapexList) as i have access to menuleft control
thanks
|
|
|
|
|
OK, I don't see why that should fail to work. your events get called after pageload, and so should fire.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I dont know why that failed but as a temporary fix I called it from aspx page itself and set top menu value as.
Dim ctlheader As UserControl = CType(Me.FindControl("headder"), UserControl)
Dim lblcrumb As Label = CType(ctlheader.FindControl("lblCrumb"), Label)
If Not Session("crumb") Is Nothing Then
Debug.WriteLine(Session("crumb"))
lblcrumb.Text = Session("crumb")
End If
but Session("crumb") really is just ValuePath of a treeview on left user control.
so it returns only ids i.e. 3271/3272/3274 but i really want it to be text and id as hyperlink
could you please tell me how. thanks
|
|
|
|
|
I guess your control needs to dynamically render links for the steps and a label at the end. One way to do this is to put a literal control on the page and just emit HTML into it.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
could you please post a sample code so that i could take as a guide as i dont know how to do that.
thanks in advance.
|
|
|
|
|
myLiteral.Text = "<a href="whatever">link</a>";
etc
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
how can i get the text value of valuepath in a treeview?
currently i could only get value\value\value but i want actual text of the treenodepath thats being selected. and i am not putting anything in url parameter as its working all by session so i dont think text might not help much
when treenode on left is selected i filter the gridview on the main page so the crumbs should do exactly same.
please help
|
|
|
|
|
Hi,
We're using asp.net 2.0, c#, and writing keys from HttpContext.Current.Request.ServerVariables to a log file. We're writing all keys except ALL_HTTP*, ALL_RAW*, VSDEBUGGER*, SERVER_*, HTTPS_*, CERT_*. Very often HttpContext.Current.Request.ServerVariables seem to have no values, and nothing gets written to the log.
Under which circumstances are HttpContext.Current.Request.ServerVariables null or empty?
Mostly, we need info about PATH_INFO, PATH_TRANSLATED, URL. Is there another way to get these so that we always have this info? HttpContext.Current.Request.ServerVariables does not always have this info.
Thanks.
Shefali
|
|
|
|
|
try response the value
you can see it is null or empty
I love li li huang ,
ha ha ,
but you don't who is she!
|
|
|
|
|
|
Are you not allowed to use Google in Bangalore? 5 seconds of searching turned this up.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
|
I have a friend who manages an indian team in Bangalore. He says his team is very good, he works for Sun, so they hire and maintain an office. He says for companies where people find a company to handle one project, someone who can type, is a developer, and someone who can touch type, is a senior developer. My experiences with outsourcing make me think he's not exaggerating.
But, the bit where they don't seem to care if their manager sees them here, makes me wonder if some companies hire people and tell them to use CP to get the job done.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
hehehe their managers are the other guys from india posting in here!
Abandon hope all ye who answer here.
Pete O'Hanlon - the General Discussions forum
|
|
|
|
|
One way or the other, I am certain there are people being employed who have no idea how to code, and who are hoping we will fill the gap.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Why you people always blame Indian guys?
I think you dont have a good experience with indian developers.
But trust me, you wd find the most intelligent, performing their jobs brilliantly developers in India too.
“The woods are lovely, dark and deep. But I have promises to keep, and miles to go before I sleep.”
|
|
|
|
|
LucknowRockers wrote: you wd find the most intelligent, performing their jobs brilliantly developers in India too.
I have no doubt. In fact, some of my best dev friends and people I respect highly, are Indian. And, like I said, when a company owns a team in India, my knowledge is only of cases where it works really well. But, every time I've tried to find an outsourcing firm to get some work done for me, it's been an utter disaster, and these forums are flooded with people from India, asking the most basic of questions and completely failing to comprehend the answers they get.
Not all bad devs are indian, nor are all Indian devs bad. But proportionately, it seems there are a lot of bad Indian devs loose on the web.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Christian Graus wrote: Not all bad devs are indian, nor are all Indian devs bad. But proportionately, it seems there are a lot of bad Indian devs loose on the web.
Can be true and the reason might be that the number of people here who are trying their hands in development is too huge that even the number of dumbs gets increased.
Apurva Kaushal
|
|
|
|
|
Yes Christian, I am totally agree with you and you are 100% correct.
As far as your experience with Indian developers is concerned, i would say that you are very unlucky. You always found only bad developers from India.
Why do not you give it another try and outsource some work to me
“The woods are lovely, dark and deep. But I have promises to keep, and miles to go before I sleep.”
modified on Friday, March 14, 2008 11:48 AM
|
|
|
|
|
Hi All,
When an application is being accessed at the same time using multiple tabs in IE7 the session id is being shared and this leads to some problems. Let us say when i opened the application in the first tab the session id is abcdsa1234.... then i opened the same application in the second the session id is same i.e. abcdsa1234..... This leads to several issues.
A solution to this would be making the sessions cookie-less, this way when accessing the same application using multiple tabs different session ids would be created however the session id values are shown in the URL and this for sure is a security threat!
Are there any other ways to handle session ids when accessing the application using multiple tabs or multiple windows??
gauthee
|
|
|
|
|
I just recently have been working on a solution for this which combines both cookies and url session id. My solution focuses on preventing corruption of session data when users open multiple tabs/windows and are browsing to the different pages in the same application which use common variables. I have to admit that I did not consider wither it was secure to have any kind of session key w/in the url.
- All session data is stored as xml in a database on the server. The url and cookies only store the keys to retrieve the data. The key for the data is a session id and a ticket, both are guids.
- The session id is concatenated with the ticket, encrypted with a protected, private key and stored in the client's cookie. The ticket is then used as the key to store and retrieve the encrypted data to/from the client's cookie.
- The ticket is publicly displayed in the url and maintained in all application links, urls
- When session data which is relative to the users location (context) changes a new ticket is generated and the database is updated. Then the session id and new ticket are again encrypted together and stored in the client's cookie. The response from the web server (resulting html page) will contain links/urls with the new ticket.
- If the user tries to change tabs/windows and browse using the expired ticket it will not be found in the database and they will recieve a 'SessionExpired' error and can either be asked to login again to obtain a new session id or redirected to the home page with the context data cleared out.
Some of this is flexible and could change to meet the business needs of the application. For example, the logic could be changed to prevent the 'SessionExpired' error so the user can continue using both windows w/o logging in again or being redirected. For my purposes this involved extra work and wasn't necessary so I didn't write it this way, but it could be done.
I'm curious for feedback from others on this, so since you were looking for something like this I'm interested in what you think.
|
|
|
|