|
Hi guys, how can i get the linkbutton text assigned value whatever is in the str on the clickme event
string str="hello";
<asp:LinkButton ID="lnk" OnClick="clickme" runat="server"><%=str%></asp:LinkButton>
thanks
|
|
|
|
|
Could you explain in detail what you have to achieve ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
|
Hi, I'm hoping someone can help me figure this out. I'm trying to retrieve entire web pages via httpwebrequest so I can parse through the links. Some of the links on the pages I'm accessing are generated through javascript (and consequently don't appear in the source). Is there a way to access these links using .NET? I have no problem retrieving the non-javascript-generated content.
|
|
|
|
|
As the Javsacript content is going to generate at client side (in Browser)
and you are getting the whole page using httpwebrequest so can't get the javascript genearsted content.
Another way is just check what javascript is doing by downloading the javascript files and try to escalate the things
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Right. Is there a way to programmatically access the client-side content?
|
|
|
|
|
hi all i am working on audio i have all songs on server and name list in database on page load i am listing list of songs now if user select 3 songs and clcik on play i want to buffer these songs while playing so it will work fast also like we see on othe song's site so how to implemnet buffering task in asp.net
Thanks & Regards,
Prashant B. Lavate
Software Engineer
Mobile : +919423872257
Pune(India)
|
|
|
|
|
Did you consider using Media Services?
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
|
|
|
|
|
Dear All
I have to Search the text inside the database for my website(asp.net) based on keywords (not by %like query), I can't got how can I achieve this.
On googling I found integration of Indexing server and sqlserver accomplish this but till not sure.
Any helps are highly accepted with suggestion links and comments.
Thanks
|
|
|
|
|
|
Hi, I'm just wondering if there's an ASP.NET data presentation control out there for data nested to an arbitrary depth i.e., a self-referencing table e.g., [Employees and their supervisors --> and tb_employee.supervisor_id references tb_employee.id] or [Categories and sub-categories --> tb_category.parent_id references tb_category.category_id, if top level it's set to null or 0].
Somewhat like a cross between a TreeView and Repeater.
TreeView comes close but you can only bind text and value...
Like a nested Repeater/GridView/DataGrid (take your pick) with the nested aspect being implicit.
I hope I'm being clear enough.
If as I suspect there isn't such a .NET control any advice is welcome.
|
|
|
|
|
There isn't any inbuilt .NET control. If you are just displaying the data, I recommend using repeater and nesting it. It's fast and you will get more control on the HTML.
|
|
|
|
|
Metal
---Gold
---Silver
---Bronze
Wood
---Oak
------Oak1
---Maple
Since the nesting levels are arbitrary I'd have to add the repeaters programmatically. I've had trouble with postback trying to do that in the past.
|
|
|
|
|
loupceuxl wrote: I've had trouble with postback trying to do that in the past.
Are you trying to display the data or you need your control to post back ? Have a look at here[^] to see nesting with repeater. This[^] also gives an insight to extending repeater. Repeater class is not sealed, hence you can create your own class which inherits from Repeater . Provide nesting functionalities to the custom created control
Hope this helps
|
|
|
|
|
Yeah, I've done this before when I knew how many levels of nesting there were going to be, usually 2 or 3. Although, unlike this example I wrote most of my code in the .cs page inside the OnItemDataBound event.
I'm looking for something where the following is NOT applicable:
"The data source must be regular in shape—it is not feasible to bind to a data source that is 2 levels deep in some places and 4 or 5 levels deep in others."
But that link you sent me is pointing in another direction, gonna check it out. Thx .
|
|
|
|
|
loupceuxl wrote: The data source must be regular in shape—it is not feasible to bind to a data source that is 2 levels deep in some places and 4 or 5 levels deep in others."
As I said go for custom control extending from Repeater.
loupceuxl wrote: But that link you sent me is pointing in another direction, gonna check it out. Thx .
Glad to know that it helped.
|
|
|
|
|
I get this error and can not find much information on this:
Warning 1 G:\ADEM\Forum\Forum.aspx: ASP.NET runtime error: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. (G:\ADEM\forum\web.config line 46) G:\ADEM\Forum\Forum.aspx 1 1 G:\ADEM\
Error 2 It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. G:\ADEM\Forum\Web.config 46
I am trying to run it from Visual Web Developer 2008 when I start the forum.aspx.
But in the web.config this is at line 46:
<authentication mode="Windows" />
<!-- AUTHORIZATION
This section sets the authorization policies of the application. You can allow or deny access
to application resources by user or role. Wildcards: "*" mean everyone, "?" means anonymous
(unauthenticated) users.
-->
<authorization>
|
|
|
|
|
I am creating a website for www.adem.arkansas.gov... I am pretty much done with it but I wanted to add a forum to the website. I have searched and found this one that I liked.. Now it will be running on Windows Server 2003, but how do I know if everything works before I upload it to the server? I copied the files in the zip file to a folder Forum in the website.. what do I do now though?
|
|
|
|
|
It's better to post this on that articles discussion board.
|
|
|
|
|
|
After reading some more of the post it looks like it does not work with ASP.net 2.0... you wouldn't happen to know of any free discussion boards that use 2.0 do you?
|
|
|
|
|
|
i have a web page and i need to export part of it into word docment,the part i need to export it somthing like datagrid but it is calnder control,i use this code
Response.Clear();
Response.Buffer = true;
Response.AddHeader("content-disposition", "attachment;filename=FileName.doc");
Response.ContentEncoding = System.Text.Encoding.UTF7;
Response.ContentType = "application/vnd.word";
System.IO.StringWriter oStringWriter = new System.IO.StringWriter();
System.Web.UI.HtmlTextWriter oHtmlTextWriter = new System.Web.UI.HtmlTextWriter(oStringWriter);
this.CalnderControl.RenderControl(oHtmlTextWriter);
Response.Output.Write(oStringWriter.ToString());
Response.Flush();
Response.End();
my problem is how can i modify the properties of that output word docment,as example if i need the output of word docment to be in landscape mode
and the another problem the output of this control is appear fine in the browser it render as html tables with cells but when be exported into word ,there are alot of additional cells appear and the word docment make this cells appear ,however the html output contain the true styles but i think somthing like borders the word couldnot understand it
So Can any one know how to export part of webpage into word docment that i can set some proberties to the output word docment,and make it appear as it appear in the browser??
and what i notic that in the result of that docment that it appear without that addtional cells in the reading outline view but the another views appear with that addtional cells,
|
|
|
|
|
Hi, thanks for looking
Id like to signout a user when session ends
I was thinking of handling session_end on global.asax (Im using InProc)
Sub Session_End(ByVal sender As Object, ByVal e As EventArgs)
FormsAuthentication.SignOut()
End Sub
But it doesnt work
How could i accomplish this?
Im using sessions to store some info
Sessions info is loaded when users sign in
And dependnig on session info i load data from DB on some pages
This pages are only available to logged in users
While testing, my session is expiring and when i access the private pages, data is not being shown because session variables are nothing (session has expired), but im still logged in since im being able to see this pages
Is it very common that sessions info is lost before session times out? (I mean, in a normal situation) Not modifying web.config
Thanks in advance
Alexei Rodriguez
modified on Tuesday, April 1, 2008 7:57 PM
|
|
|
|
|
actually you need to call a function that chks whether a user is logged in or not in every authenticated form (on every Page_load regardless of postback condition).
when a session expires the user is logged out, what you need to do is to chk that condition -- that session variables are null and if true redirect them to the login screen. you can call FormsAuthentication.SignOut() as necessary.
I hope that helps
Thanks
Rocky
Success is a ladder which you can't climb with your hands in your pockets.
|
|
|
|