|
Hi,
I have developed a user control that consists of a label and a datalist populated from a datatable passed to the control. This control is dynamically added to a content holder on another user cotrol on a page which represents a treatment session but on the first execution of the code only the label is populated with data after this though the page works correctly. Any help or ideas would really be appreciated thanks in advance..
Regards
Tim
|
|
|
|
|
Hi,
I have been checking out this framework, and I see that they have classes that are part of the web project. I don't like having classes in my web project, but rather as DLLs. Does any one know why this framework does not create DLLs from projects? I think web client software factory makes use of projects for everything. If classes are part of the web project, does it take longer at runtime? I am looking for speed.
Please can I hear your comments.
Brendan
|
|
|
|
|
It doesn't matter if you separate your code into a separate project. If you publish the website precompiled then the speed is the same. If you don't precompile then it will be slow when it compiles for the first user only.
http://msdn.microsoft.com/en-us/library/cc668225.aspx[^]
I didn't get any requirements for the signature
|
|
|
|
|
The "class" vs. "dll" question is something many people ask themselves. A DLL is a container for classes, therefore when you create a class, it is compiled into a DLL/Assembly. You can simply create another "library" project and move your classes/code from the console project. Once done, then yes, you
have to add a reference to that assembly in your console application.
As far as speed and performance- it's not really faster either way. The contents of the DLL are made available, but not included. The use a DLL can clean up our code because it allows you to refer to class names without their namespace. You can compile one or more classes to a DLL and clean up your code this way. This may or may not increase your performance as a developer. Have fun!
Ranjit Viswakumar
Professional Services Specialist
http://hostmysite.com/?utm_source=bb
|
|
|
|
|
I've spent an hour trying to do this and I can't figure out what's going on. I have a class that I derived from Microsoft.SharePoint.WebPartPages.WebPart. I built the program, and copied the dll's to C:\inetpub\wwwroot\wss\VirtualDirectories\3141\bin. I registered the WebPart through a dwp file. The webpart works great (queries a database and outputs text).
I'm trying to build a User Control and include it in the webpart. To do this I put this in the Web Part's Render method:
<br />
System.Web.UI.Control control = this.TemplateControl.LoadControl(@"WebUserControl.ascx");<br />
Controls.Add(control);<br />
because of various examples online. Program compiles fine. I copied the WebUserControl.ascx all over the place to over all the tutorials I found that had it different places.
Before I copied it to a lot of places I was getting WebUserControl.ascx file not found. Now I'm getting the exception:
Request Failed
Anyone have any ideas about what I'm not doing right? I'm not installing the dll to the GAC, I'm not sure if that has anything to do with it.
Thanks,
-Ken
|
|
|
|
|
Ken, I could never do sharepoint programming. However, I know an easy way to use user controls in SP webparts.
Check this out. http://www.codeplex.com/smartpart[^]
This is the easy way to implement a .ascx as a webpart.
I didn't get any requirements for the signature
|
|
|
|
|
Hi friends,
If i run my web application,it automatically shows a new window and which is having below message.
'An unhandled win32 exception occurred in WebDev.WebServer.EXE[4064]'
If i close that window automatically my browser also to be closed.
Whats the problem in that?
How to rectify this?
Please help me.
Thanks in advance.
Venkat
|
|
|
|
|
Hello,
If it happens avter you've typed some code, you need just to trace and debug the code. Here is a video how to do it: http://www.asp.net/learn/videos/video-10.aspx
If it happens just on a new application, and have not typed anything.. just repair your Visual Studio instalation, or uninstall it and install it again.
|
|
|
|
|
You may need to reinstall your visual studio!!
sepel
|
|
|
|
|
This error usually only occurs if the program is trying to execute some data memory blocks. Try this out-
1) Right click My Computer > Properties...
2) Click the 'Advanced' Tab
3) Under 'Performance,' click 'Settings'
3) Click the 'Data Execution Prevention' tab
4) Select 'Turn on DEP for essential Windows programs and services only'
5) Restart
This option is selected by default, but with installation of SQL 2005 or Visual Studio it can change and cause this type of thing later. Good luck!
Ranjit Viswakumar
Professional Services Specialist
http://hostmysite.com/?utm_source=bb
|
|
|
|
|
Hi..
Thanks for your response.
But in my machine,those buttons are already selected whatever u said..
Still also i got same error..
Please Help me..
Thanks in Advance..
Regards,
Venkat
|
|
|
|
|
Hi Guys,
I have a page where I check if the user is logged on in the page load event, if the user is logged in then I get the user details from a database and then immediately want to send them to a 3rd party site using post parameters from the page load event, if the are not logged in then I want to continue displaying the current page.
To continue displaying the page that is busy loading if they are not logged in is not the problem, the problem I'm having is that if they are logged in I get four string variables, for example
string _a = "abc";
string _b = "def";
string _c = "ghi";
string _d = "jkl";
Then I need to send them through to another site. On the other site they are checking for the following post parameters (_a, _b, _c, _d), so how do I redirect to that url and sending those parameters along as post parameters?
Thanks in advance
No matter how long he who laughs last laughs, he who laughs first has a head start!
|
|
|
|
|
If the 3rd-party site accepts variables in the query string then it's very straightforward:
string _a = "abc";
string _b = "def";
string _c = "ghi";
string _d = "jkl";
string postToUrl = "http://www.RayWampler.com";
Response.Redirect(postToUrl + "?_a=" + _a + "&_b=" + _b + "&_c=" + _c + "&_d=" + _d);
If your values could contain special characters then you'll want to url encode them:
string _a = Server.UrlEncode("abc");
If the 3rd-party site would only accept form POSTs then you'll need to use a technique like the one described in this article:
Posting form data from ASP.NET page to another URL[^]
Ray Wampler
www.RayWampler.com
|
|
|
|
|
I have an Application created and have used SQLExpress for the backend. Also I have created a setup file for the application.
Problem is I have to add the ASPNET user to the APP_Code folder in order to access the .MDF file.
Also I have done some coding to write in to the web.config file and have to add ASPNET user for that file also using windows explrer security tab.(manually)
I want know are there any possible way to do this in executable file or using any entry in config file.???
Your corporation is appreciated!
|
|
|
|
|
Hello Friends,
I've a XML file as shown below i want to update the path of the flv files which i've made bold below. Actually i've a playlist and my video player takes the properties from this XML file so i've to play the different different video which i click on.
<CONFIG>
−
<SETTINGS>
<PLAYER_SETTINGS Name="SelectedSkin" Value="../Files/Skins/flvplayer/skin.swf"/>
<PLAYER_SETTINGS Name="SelectedLoader" Value="../Files/Skins/flvplayer/loading.swf"/>
<PLAYER_SETTINGS Name="FLVPath" Value="http://localhost:4718/VideosUploading/Files/Videos/2.flv"/>
|
|
|
|
|
If it is on your webconfig use ConfigurationManager class to modify it.
sepel
|
|
|
|
|
No, it's not in web.config file. It's a XML file
|
|
|
|
|
|
|
Hi, I have a radio button control on my form. By default its one option is selected. At run time when i clicked a button, i want to change the state to other option?
How it is possible?
|
|
|
|
|
RadiobuttonID.Selected=True;
Apurva Kaushal
|
|
|
|
|
Its not correct. I want to change the selection of one of the options. Not the whole option.
|
|
|
|
|
Assign all radio button same GroupName .
|
|
|
|
|
|
in which case set the SelectedValue or SelectedIndex properties on your radio button list
|
|
|
|