|
|
I have read it
I mean create outside the function the counter.
if the counter has reached 2, then I'll get the created controls and put them into the new DIV with CSS...
Thats my GroupRepeater ItemdataBound
protected virtual void RepeaterGroup_ItemdataBound(object sender, RepeaterItemEventArgs e)<br />
{<br />
MuMSkillGroup group = (MuMSkillGroup)e.Item.DataItem;<br />
SkillGroupControl currentGoup = (SkillGroupControl)e.Item.FindControl("Skillgroup");<br />
currentGoup.CurrentGroupName = group.SkillGroupName;<br />
currentGoup.IsMatrix = false;<br />
currentGoup.BindAsMyskillpage = true;<br />
}
|
|
|
|
|
if (CountGroup == 6)<br />
{<br />
Repeater getGroupRepeater = (Repeater)sender;<br />
<br />
foreach (RepeaterItem rptItem in getGroupRepeater.Controls)<br />
{<br />
foreach (Control ctrl in rptItem.Controls)<br />
{<br />
if (ctrl is Panel)<br />
{<br />
Panel panelGlobalContainerBox = (Panel)ctrl;<br />
<br />
if (countItemdataBound)<br />
{<br />
panelGlobalContainerBox.CssClass = "content_left";<br />
countItemdataBound = false;<br />
}<br />
else<br />
{<br />
panelGlobalContainerBox.CssClass = "content_right";<br />
countItemdataBound = true;<br />
}<br />
}<br />
}<br />
}<br />
}<br />
THX Abhishek Sur for your Time its solved now
|
|
|
|
|
You are most welcome my friend.
Abhishek Sur
Don't forget to click "Good Answer" if you like this Solution. Visit My Website-->www.abhisheksur.com
|
|
|
|
|
Hi Everyone,
I've just finish re-installing VS.NET 2005 and tried the Walkthrough: Displaying Data in a Web Forms Page
I followed exactly as it is that is I tested the connection "Connection Sucessful", test Query "Successfull" but when i run it prompt me with the following error message:
-------------------------------------------------------------------------------------------------
Failed to find or load the registered .Net Framework Data Provider.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Configuration.ConfigurationErrorsException: Failed to find or load the registered .Net Framework Data Provider.
PLease help me in this...
Thanks in Advance
|
|
|
|
|
Well, the problem might be the with the configuration. Check if the config sections are there in web.config.
If that is not the case, I think the provider is not installed properly or corrupt somehow. Might be reinstalling the framework will fix the issue.
Abhishek Sur
Don't forget to click "Good Answer" if you like this Solution. Visit My Website-->www.abhisheksur.com
|
|
|
|
|
I have an inline frame which contains a treeview, when a treeview is clicked by the user, it suppose to call a vb method which is sitting in the parent page. How do I do this?
|
|
|
|
|
|
In general, if you want to invoke method from other frame, you need to first access the page using javascript. May be you place your custom AJAX method in page b, and from page a you access the method using window.parent.topframe.document when the name of the top frame is topframe.
http://www.pageresource.com/jscript/jframe1.htm
why dont you remove frames, rather use Masterpage, which is the server side Frame kind of thing. This would help you manage your application more easily.
Abhishek Sur
Don't forget to click "Good Answer" if you like this Solution. Visit My Website-->www.abhisheksur.com
|
|
|
|
|
Hi,
I'm trying to include some user credentials for accessing a remote
webservice. The remote location requires that I use Basic
authentication(RFC2617), which means, from browsing around, I need to include
the user name and password in the HTTP header, but I'm not quite sure
how to access the HTTP header that is sent with the webservice soap
message request.
Can anyone help?
Thanks in Advance.
Kunal Tilak
|
|
|
|
|
Hi,
how did you managed the webservice access? Are you using WCF?
Regards
Sebastian
|
|
|
|
|
I am consuming a webservice in asp.net(c#) which is hosted by some third party which grant access to webservice using Http Basic thentication(RFC2617).
I am not using wcf.
plz send me some working code for how to call webservice giving username and password using Http Basic authentication(RFC2617).
|
|
|
|
|
Doesn't anyone in Code project site know the answer of question?
Plz reply if anyone knows.
|
|
|
|
|
Hi Friends,
I am facing an issue with my live server where our website is hosted, when i change some content it's reflecting on localhost and test server but not on the live server, either we remove our home page form live but it still shown on live, but if we remove css it's reflecting.
Script: Asp.Net2.0
Web server: iis6.0
kindly help, we have done "enable content expiration" to "Expire immediately" in web server website property.
Thanks iin advanced,
Abbas
|
|
|
|
|
Hi all
I am getting Date time from date base in the following format
5/13/2010 12:00:00 AM
I want to display it in UI in following format 08-May-2010 can u guys please help me how to do this
Thanks and regards,
Amit
|
|
|
|
|
Hi,
Please use the below:
DateTime dt = DateTime.Now;
string strDate = dt.ToString("dd-MMMM-yyyy");
Regards,
Jamil
|
|
|
|
|
You can get the date in the required format from the database.
Try this
SELECT CONVERT(VARCHAR,GETDATE(),106)
modified on Friday, April 30, 2010 3:34 AM
|
|
|
|
|
I assume you want to display 5/13/2010 as 13-May-2010 and not 08-May-2010. Its very easy to do it. If you are displaying the date in a label then you are probably assigning the date value to the text property like this
Label1.Text = DateTimeValue.ToString(); .
Now to apply formatting in this case just pass the format string as parameter to the ToString() function like this
Label1.Text = DateTimeValue.ToString("dd-MMM-yyyy");
You could also use this String.Format("{0:dd-MMM-yyyy}", DateTimeValue.ToString());
NOTE - Month should be specified as "MMM" and not "mmm".
For more format strings refer this page - String Format for DateTime [C#][^]
|
|
|
|
|
|
Hi, use following while selecting datetype column from databse.
select replace(convert(varchar,getdate(),106),' ','-')
Thanks,
Arindam D Tewary
|
|
|
|
|
I am using a timer control in one of my page. and that page contains 2 update panels.can i associate the timer control with a particular update panel of that page.
because the timer refreshes the 2 update panels in every TICK event.
|
|
|
|
|
Yes. In Update Panel there is a properites Called "Update Mode" . Bydefault it is, Always . You need to make them Conditional for both of the UpdatePanel. Now In Timer Tick Event, You can call the Update() Methods of particular Update Panel.
Like say, UpdatePanel1.Update().
Hope This Answer your questions.
Thanks !
Cheers !
Abhijit Jana | MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
thanx for ur reply Mr. Jana,
It matches with my situation.But I got an error
"Invalid postback or call back argument.plz check <%@ Page EnableEventValidation="true" %> "
when 2nd update panel (not the timer one) is refreshes.
I am using the update panels in master page.where I can't find <%@ Page %>.
Is there any alternative way to handle this.
|
|
|
|
|
souravghosh18 wrote: Invalid postback or call back argument.plz check <%@ Page EnableEventValidation="true" %> "
Please update the web.config section using :
pages validateRequest="false" enableEventValidation="false"
Please read this thread
http://forums.asp.net/p/922994/1064482.aspx[^]
Cheers !
Abhijit Jana | MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
modified on Friday, April 30, 2010 4:54 AM
-- Modified Friday, April 30, 2010 4:54 AM
|
|
|
|
|
thank you sir.
It is working fine.
|
|
|
|