I need to access a custom property of web part(that wraps an ASP.NET user control) from JavaScript. Is it possible ? I need that property value so that I could pass that to an AJAX web service then.
I need to set a style property of an element to the value returned from a code-behind property. I have done this in the past, but it now seems everything I try fails. I get an error telling me that the literal is not formed correctly.These are some of the arrangements I have tried:
I have a cascading dropdown. After the dropdown is populated(it is in another file) i would like to return back to the original form where the control is placed. is there anyway of doing it
I'm using user controls as web parts in an asp.net application. I have skinned the webparts by adding .PartTitleStyle (etc) to my css. I'd now like to let the user select from a list in an editor part to choose the style for the web part.I'm able to change the title for the webpart, but can't seem to figure out how to change the css to use .PartTitleStyleCustom instead of the default, even trying to set the wp.BackColor seems to have no effect. Here is the code I have so far in the page load event of my user control:
I have four columns in database. Consider it as a,b,c and d. I'm trying to place a and b column values in TO part and c and d column values in CC part in outlook. a,b,c,d contains six digits numeric values. I just need to place a and b columns values in to and c and d values in cc part on click of a button.
but there is no component which wraps this code like Repeater, DataList or something like that. How can set the set a DataItem to this code to show the values of an object of a class.
I want to bind an ObjectDataSource to a property in my asp page and I want to do it in the page's aspx code, not in code-behind. I've already done it in code-behind, as follows:
[Code]....
I'd prefer to get rid of the ugly code-behind and just do this in mark-up. Something like [Code]....
This gives me a run-time error: Cannot create an object of type 'System.Object' from its string representation 'SelectedBook' for the 'DataSource' property.Is there a way of doing this declaratively and not in code-behind? Further, what if what I want is to actually use a child property of the property in question? For example, if my Book object has a ReaderComments collection, can I databind to it decaratively in the aspx mark-up?
So in my website, I use jquery to fetch data through ajax. AS part of the ajax response, some of the javascript code comes as well which is executed. The problem is how to debug this javascript in firebug or other tools. This is my experience so far: putting debugger; doesn't work For some javascript, can't set the breakpoint as that script is not yet loaded. even if this new javascript calls some other function thats already loaded (i.e. i can see it in firebug and set a breakpoint), that breakpoint on that function is still not triggered However, the javascript does executes normally and even things like console.log works but cant seem to debug it.
My webapplication starts a new session at a point, where there is no reason.For the moment I even don't know, which part of code I should post.Clicking a button in the browser on the app, everything is ok for the first time.Clicking it a second time, the new session begins.
What could be the reason for this behavior? Perhaps after an answer I can better determine, what lines of code I need to show you.
I have a remove hyperlink which is created in a literal and I want it to post some data (a number in a text box). I think this should be possible but when a user clicks the remove link I want to be able to pick up what is in some text boxes. So in short existing click triggers postback, so I can use request.form("txt1")
I just want to know the concept of commit Transaction and Begin Transaction in Asp.net with c# language, I have a certain code in c# given below... where I declare commit transaction and begin transaction. my code is:
public void dial(string traid, string trakey, string account, string ttref) { try { string[] result = new string[4]; SqlConnection sqlconn_cms = new SqlConnection(sqlconn_cmsstr);
How to I reference say a text box from my code back file? I am having issues with trying to execute an sql query from the click of a button and then place the result into that text box...
I am doing online quiz in a Page in my website. How i will restrict users from going backward or forward using Broowser backward or forward button in that page using ASP.Net,C#,JavaScript.
We have several asp.net web applications we've built and we also want to embed them into various sharepoint pages. We need to have them look like standalone applications when viewed in their own pages, but also have them look like they fit within the sharepoint page when embedded. We are doing this currently with IFrames and it works ok, but I'm wondering if there is some sort of proxy web part where we can configure the web part to point to an existing web app and it will proxy the contents through from the web app into the sharepoint page removing the need for an IFrame. Possible?
I m new in web part tools in asp.net, i create a simple page using web part tools, but now i want in my web part zone too open a web site like I Google..
when u use i google there is a functionality to open a web site in web part zone.
I created a simple gridview user control with a custom property ProfileType which should load different records depending on the ProfileType value when attaching to a web page.
This is my web page:
[code]....
how I can expose user control custom property at its code-behind file.