|
Hello there,
I've been searching around the web for a particular issue but i can't fing the exact answer i'm looking for. I want to achieve this kind of style for my controls http://xs538.xs.to/xs538/09153/sc2a813.jpg[^]
If it was a desctop application i would make a base usercontrol, define all the common properties and rendering and then inherit the base control for each of the needed controls.
HOWEVER this trick doesnt word for web? When i define a base UserControl and i add some controls to it, save it , build it and then try to inherit from it, the result control does not HAVE any of the parent's defined controls.
Markup cannot be inherited ?
What is the most correct way to achieve this kind of control style ?
|
|
|
|
|
In my form, there is a javascript error relating to some css code. But the code behind the aspx looks fine, cannot findout any error. The funny thing is the page works correctly in Firefox but showing javascript error in IE 7.0.
When I try to execute the page in IE, a file named as WebResource_4.axd file opens and there are error lines (green lines) in many of the places, not sure which line is erroneous. The tooltip says that 'Expected Expression'. I am not getting any head and tail of this file. Can anybody please help to resolve this?
Thanks
Meeram395.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
because if you see mozila firefox-> tools->option
it provides the option to disable enable java and active x on browser and once you checked it its always enable for browser.
while in intenet explorer the javascript and java support is on ask mode so it gives error.
|
|
|
|
|
hi experts.
i have a several special characters in my column
like example
goes here
empno emp name
1 ve?u.r
2 raj
3 venki
4 Stáció
5 gái
6 Vecsés
7 Mosonmagyaróvár
8 sachin
i want to list out the names with only special charactersand shuld get the values in my page
regards
venu
|
|
|
|
|
Hi,
I have a COM Dll, when referenced in Window App, works fine. But behaves strangely in ASP.NET.
Can you suggest me the reason for the same.
Thanks
|
|
|
|
|
Is it possible to store more than one value in HttpCookie ...
|
|
|
|
|
HttpCookie MyCookie = new HttpCookie("Cookie1");
MyCookie.Values["Val1"] = "1";
MyCookie.Values["Val2"] = "2";
MyCookie.Values["Val3"] = "3";
Response.Cookies.Add(MyCookie);
|
|
|
|
|
Hi,
In gridview with paging if the number records will high, then the page numbers displayed in the bottom also increased. So the grid width increases.
Is there is any way to display the numbers using Dots so that only the first 10 pages will be displayed after that it increased depends upon the total pages.
|
|
|
|
|
you need some inline coding and a bit of css in it.
try the site asp.net /samples
or google it "gridview displays" or "gridview display examples" also try ajax on it.
|
|
|
|
|
set Pagesize="10"
and add below code in .aspx page
<PagerSettings Mode="NumericFirstLast" NextPageText="" Position="TopAndBottom" PreviousPageText="">
</PagerSettings>
may be it will work..![Smile | :)](https://codeproject.freetls.fastly.net/script/Forums/Images/smiley_smile.gif)
|
|
|
|
|
hi,
I have a textbox.I have to trigger an event whenever any key is prressed except the alphabets and numbers like event trigger on when tabg button is pressed.I have used textchanged event but it only worked for enter key.
regards,
Bill
|
|
|
|
|
Its quite difficult to answer unless and until you have put the code for that section.
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
use javascript..
onblur()
|
|
|
|
|
What is the difference between Sqldata reader,Sqldata adapter with dataset and Sql datasource? Which is the best and effective method for database operations?
|
|
|
|
|
|
i have a datetime field,its name is modifydate. i want 2 previuse day of modifydate. what should i do in c#. plz help
|
|
|
|
|
you need to use timespan function or you can also use
System.DateTime dtTodayNoon = new System.DateTime(2006, 9, 13, 12, 0, 0);
System.DateTime dtTodayMidnight = new System.DateTime(2006, 9, 13, 0, 0, 0);
System.TimeSpan diffResult = dtTodayNoon.Subtract(dtYestMidnight);
Government Dyal Singh College Lahore.
|
|
|
|
|
The OP was not asking for the difference between 2 datetimes, he asked for a datetime minus 2 days ![Confused | :confused:](https://codeproject.freetls.fastly.net/script/Forums/Images/smiley_confused.gif)
|
|
|
|
|
Buy a basic ASP.NET book and read it. Learn to use intellisense to investigate methods on a class. Learn to use google, and the MSDN site in particular. Asking in the right forum ( this has nothing to do with ASP.NET )
The DateTime class has everything you need.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
As counter-intuative as it might seem at first glance, it is totally appropriiate to supply a negative number to the AddDays[^] method on a DateTime.
|
|
|
|
|
There is dropdownlist on my page which showes country name. on click of country name popup will get display which showes companyname of selected country , and same dropdown will again get display.
In Popup dropdownlist ,it will display selectedItem value (CountryName)as which we have selected from main page.
for tht i have return code as follwes
drdCountry.DataTextField = "CountryName";
drdCountry.DataValueField = "CompanyCount";
drdCountry.DataSource = dsCoverageList.Tables[0].DefaultView;
drdCountry.DataBind();
drdCountry.SelectedItem.Text = Request.QueryString["CountryName"].ToString();
drdCountry.SelectedItem.Value = Request.QueryString["CompCount"].ToString();
but prob is on popup page in dropdownlist is showes duplicate value of selected item
means suppose i have selected US (CountryName) from main drplist thn in popup page is showes US 2 times in DrpList.
why is it so??..
please help me out..
|
|
|
|
|
use page.ispostback check on page load
or clear dropdown list before filling it...
Government Dyal Singh College Lahore.
|
|
|
|
|
i have writ code in (!IsPostBack)
still its not working..![Frown | :(](https://codeproject.freetls.fastly.net/script/Forums/Images/smiley_frown.gif)
|
|
|
|
|
Hi,
What namespace should I use in order to access the Membership.ValidateUser() method?
I have added using System.Web.Security and I have added System.Web in the References folder but I cannot access Membership????
Illegal Operation
|
|
|
|
|
using System.Data.OleDb; ![Smile | :)](https://codeproject.freetls.fastly.net/script/Forums/Images/smiley_smile.gif)
|
|
|
|