|
Hi all
I am developing a web application wher i need to have some parent child relations.
I need a special gridview (something else doesn't matter) where i can do multiple add/update/delete events then in one click save all. My client cann't handle a server trip on each event.
Any Help !!!!
|
|
|
|
|
This is my first.cs page.....
namespace testvalueobject
{
/// <summary>
/// Summary description for first
/// </summary>
[Serializable]
public class first
{
int a, b, c;
public first()
{
a = 10;
b = 20;
}
[XmlAttribute]
public int add()
{
c = a + b;
return c;
}
}
}
this is my default.aspx.cs page....
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using App_Data.testvalueobject;
using App_Data.testvalueobject.first;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
i can't access the methods of cs page in aspx.cs page......
kindly help me soon
sarala.s
|
|
|
|
|
Create an object of the class file in aspx file and then you can access the variables. You can also access it using properties.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
First F=new First();
int a=F.Add()
What is issue with that ? are you talking about some thing different ?
cheers,
Abhijit
|
|
|
|
|
I am using an Update Panel in my page called Company.aspx for populating Countries and States. There are two dropdownlists for the States and Countries. This is working perfectly fine.
In the database, there is a table called Company where the StateId and CompanyId is stored.
Now, if I want to display back the Country and State in the particular dropdownlists, how should I do that in the dropdownlists which is in the UpdtePanel? When I try to do as follows, it doesn't give me any error, but not selecting that particular value:
ddlCountry.SelectedItem.Value = Codtls.CountryName; // CoDtls.CountryName is a property having the country name.
Can anybody pls help me? Any code examples? Thanks in advance for any help.
Please let me know if I need to clarify more.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
Couldn't get your problem
Can you explain a bit little more
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
Check My Blog
|
|
|
|
|
I have two dropdownlist in my form for populating Country and States. When user selects a Country, the corresponding States will populate in the State dropdownlist. I have done this using the UpdatePanel. So whenever user selects a country, the States dropdownlist will automatically populated without a postback. While saving the data, I'm passing the selected CountryId and StateId.
Now, if I want to show those selected values back in the respective dropdownlists from the database, how should I do that? I can get the value from DB, but not able to show those selected values while loading. By default, in the Country Dropdownlist the first item is selected and nothing in StateDropdownlist.
For eg: While inserting, if the user selects Country as India and State as Karnataka, then while doing modificiations,the page should show in the respective dropdownlists those values selected.
Sorry for a long post. Hope now it is more clear.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
hi
i have a gridview manually bounded to an accsess db. how can i adjust (in my case reduce) the width of specific columns?
i've tried to set the width for the header,footer and item templates but all it did was narrowing an invisible text area - caused the text to wrap down but the size of the column remained the same...
help on this will be very appreciated..
thanks
j
|
|
|
|
|
try, eg:
....Columns(1).ItemStyle.Width = System.Web.UI.WebControls.Unit.Percentage(30)
or
....Columns(1).ItemStyle.Width = System.Web.UI.WebControls.Unit.Pixel(100)
|
|
|
|
|
thanks Phil but i've tried that and didnt effect the columns width
j
|
|
|
|
|
hmm, well... remember that web-controls are rendered on the page as straight HTML - tables in this case. Take a look at the page source of one of your pages and see the HTML code there - is there an appropriate
<td width="XX">
in there?
Assuming so, remember that the width may still display incorrectly if the other column widths are either not set or are contradictory...
|
|
|
|
|
i've looked at the source code and width is appearing as i've set it, i.e. if i'm using:
gridView.Columns[4].ItemStyle.Width = Unit.Percentage(30);
i'm getting:
td style="width:30%;"
how do you think setting the width issue can be solved?
thanks,
J
|
|
|
|
|
Then something else is throwing it off - you will have to examine the HTML to see what it might be:
- something with a non-variable width (eg an image) that is wider than the column width allocated
- are column widths set for ALL columns?
- if so, are they contradictory (maybe they add up to only 90%, or 110%)
- is an overall table width set? if so, does it tally with the sum of the column widths?
- have you taken table borders, cellspacing and cellpadding into account, as well as margins/borders round objects within (eg images, again)
- is this a browser-specific issue?
All sorts of things can combine to throw off a table display - but at least you know the correct width is being applied via your code. All you need to do is figure out what's wrong in the resultant HTML and adjust things accordingly....
|
|
|
|
|
thanks... i will examine all that i can think of
j
|
|
|
|
|
Hi All,
I was developed a site, in that there is a form enquiry.aspx. The problem is when is try to run the site in dubug mode(By press F5 from my VS) it works fine. Even the enquiry also work fine. But when i uplad the site on the server the mail send option is not working.
What would the problem.
Awaiting for reply
Yogesh Agarwal
|
|
|
|
|
Please post your code for the sending mail event.
It could be that it is only working for localhost
Whats the difference between a triangle and Tottenham Hotspur?
A triangle has 3 points.
|
|
|
|
|
if your are using SMTP for sending emails then verify that you are changing the settings after uploading to the server.
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
yogesh_kumar_agarwal wrote: But when i uplad the site on the server the mail send option is not working.
Please Check the Configuration of SMTP Server on your Web Server.
cheers,
Abhijit
|
|
|
|
|
I am getting this error while accessing the lotus notes. It is working fine when executes in my system but giving this error while executing in IIS virtual directory.
The error is
Retrieving the COM class factory for component with CLSID {29131539-2EED-1069-BF5D-00DD011186B7} failed due to the following error: 8007000e.
Source Error:
Line 22: protected void btnAddress_Click(object sender, EventArgs e)
Line 23: {
Line 24: Domino.NotesSessionClass sessclass = new Domino.NotesSessionClass();
Line 25: sessclass.Initialize("lotuspwd");//PWD is required
Line 26: Domino.NotesDatabase notesDB = sessclass.GetDatabase("serveraddress", "names.nsf", false);
Thanks for any help.......
Lakshmi
|
|
|
|
|
I have the same problem!!
Do you have found any solution? Thank you.
|
|
|
|
|
Hi,
Any one can suggest any book/ebook/article for designing and implementation of ASP.NET with AJAX.
Thanks in advance,
|
|
|
|
|
Google is the best book
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
ASP.net ajax
Whats the difference between a triangle and Tottenham Hotspur?
A triangle has 3 points.
|
|
|
|
|
Hi
Please use this linkhttp://www.asp.net/Learn/ajax/[^]">
Cheers!!
Brij
|
|
|
|
|