|
Hi there,
I've craeted a new WebControl in my controls subfolder of my project named myWebControl. VS2005 now created a public partial class controls_myWebControl which derives from System.Web.UI.UserControl. My myWebControl has some Properties, The trouble I have is to load this control in Webpages (project folder) calling
<code>controls_myWebControl myCtrl = (controls_myWebControl)Page.LoadControl(path to myWebControl);</code>
I can only create an instance of WebControl but now I can't use my properties. Any advice? Thanx in advance!!!
|
|
|
|
|
Hi,
Just check whether you have set accessors also defined for the properties in your user control.
And also just check whether the access modifier of the field is private and the property is public.
As i see there is no problem the way you have done it..
Hope it helps
Thx,
Gayani
|
|
|
|
|
Our shop is just starting to write ASP.Net applications. We're trying to think ahead and write our applications with easy maintenance in the design.
We'd like to put some of our connection strings that will be used by multiple web applications in one area. We were thinking about the machine.config file but we're not sure if this is as secure at the web.config is supposed to be or not?
Any suggestions?
Lost in the vast sea of .NET
|
|
|
|
|
|
I want to request a page which is located in IIS server of one PC in network from other PC of network.
How I can deploy my webproject at IIS and access that web page from other PC of network.
Any one pls help me....
|
|
|
|
|
http:// <computername>/<the page="" you="" want="" to="" request="">where computer name is the name that the page is located at
|
|
|
|
|
thanks for reply.
But suppose my ip address is 198.168.1.1 and i have deploy my website on the IIS server of this computer. So i can use
http://localhost/Myproject/login.aspx
but other PC on the network which has ip address 198.168.1.2, can use which path ?
http://198.168.1.1/Myproject/login.aspx
this path not work so tell me how i can use login.aspx file which is on 198.168.1.1 PC
|
|
|
|
|
Hi all.
I need to check a web page and compare his data with the data in a data base, access data on textbox and click in same buttons programmatycally.
Somebody can hept with a start point? Somebody nows if with silverligth I can do that. Maybe scraping?
Thanks.
|
|
|
|
|
How do I make input in certain fields mandatory? I've gotten nothing but unrelated junk when I've tried googling.
====================================
RequiredFieldValidator
Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots.
-- Robert Royall
modified on Thursday, July 31, 2008 10:19 AM
|
|
|
|
|
|
Hi there,
I'm currently trying to fix a bug in a site that uses a gridview to load info from a database via a few dataviews into several tabs in a tab control.
Part of this information is the latitude and longitude which is used to display a map on virtual earth. I am having a problem in that the javascript GetMap() is called by adding an onload command to a body I have nested in the fourth tab.
This means that the javascript is only getting called once as I'm using an update panel to remove full postback.
I'm calling the javascript from the dataview databinding sub on the server side to prevent the map from being loaded too early without the necessarry information.
How can I call the javascript eveytime the index is changed on my gridview??
You can see the problem on http://www.ozfarmguide.com/Farms.aspx[^]
Many Thanks
JimBob SquarePants
*******************************************************************
"He took everything personally, including our royalties!"
David St.Hubbins, Spinal Tap about Ian Faith, their ex-manager
*******************************************************************
|
|
|
|
|
JimBob SquarePants wrote: I'm calling the javascript from the dataview databinding sub on the server side
No you are not. Server side code cannot call/execute client side code.
JimBob SquarePants wrote: How can I call the javascript eveytime the index is changed on my gridview??
As I stated above you can't. What one can do is take advantage of whatever client side mechanism they are using, like body.onload event, to execute javascript code. In your case since you are using an Ajax call (update panel) then you need to use whatever mechanism it supplies to execute client code upon return of the request to the browser.
led mike
|
|
|
|
|
Yeah sorry, call was probably not the best choice of words.
I tried adding OnLoad="GetMap()" to the markup on my UpdatePanel but I returned this compilation error: 'GetMap' is not a member of 'ASP.farms_aspx' The client side attributes are not available in the code behind unlike the body.
Javascript is a great unknown to me. I had real trouble getting the map to show properly in the first place.
What's your advice?
JimBob SquarePants
*******************************************************************
"He took everything personally, including our royalties!"
David St.Hubbins, Spinal Tap about Ian Faith, their ex-manager
*******************************************************************
|
|
|
|
|
JimBob SquarePants wrote: Javascript is a great unknown to me.
JimBob SquarePants wrote: What's your advice?
My general advice is not to work with technology that is unknown to you without first learning it. As to your current problem, I have never worked with the update panel but I imagine there must be a client side mechanism to leverage upon return to the browser. I would also imagine there is some small amount of example code in the MSDN documentation for the update panel control. I would certainly start by looking there. If that is not enough I would goolge for something like: ASP.NET UpdatePanel tutorial
led mike
|
|
|
|
|
Thanks for the pointer.
Sometimes the problem with Google is knowing what to look for.
It turns out I had to put this command into my GetMap() Function:
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(GetMap);
I understand the principle but not the science itself. Looks like I have a lot of swotting up to do.
Thanks Again
James
JimBob SquarePants
*******************************************************************
"He took everything personally, including our royalties!"
David St.Hubbins, Spinal Tap about Ian Faith, their ex-manager
*******************************************************************
|
|
|
|
|
I've ran into an access limit while trying to update a table with an insane number of fields. While access supports 255 fields/table the maximum number for an update query is only 127. tblWtf is at ~170. Currently the gridview is wired directly to an AccessDataSource with a single massive query: UPDATE tblWTF SET WTF1 = ?, WTF2 = ? ... WTF170 = ? WHERE (WTFID = ?) . The guilty project management has proven resistant to cluebats so I need a planB to make their 'design' 'work'.
Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots.
-- Robert Royall
|
|
|
|
|
how to make a Task Scheduler in asp.net
|
|
|
|
|
1. Design
2. Code
3. Test
Please be more specific.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Task Scheduler a module which will run after perticaular interval of time to do any perticular task. In my case send email to user 3 days before his due date
thanks.
i m reading few articles on net but finding bit difficult thats y asking and plz 1 more thing is Global class is .asax file ??
thanks very much
|
|
|
|
|
This isn't an ASP.net thing. You need to look at creating, for example, a windows scheduler type of program. ASP.net isn't set up for running in the background.
|
|
|
|
|
Unless you really abuse a long running worker process.
|
|
|
|
|
Mmm. The one that's liable to randomly recycle. Sounds like fun debugging to me...
|
|
|
|
|
|
Didn't you like the replies to your previous question, which was effectivley the same thing?
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Hi
How would I hide a div using c#?
I have done a quick search on google but it doesnt explain how to do it dynamically.
thanks
|
|
|
|