|
hello there! noone has something to share with me? a little help? need this help to move forward.thanks for replying.if a part is not clear just tell me and i'll be glad to explain.thanks
eager to learn
|
|
|
|
|
Using sql query its possible to find the last week dates?,
Mean Current date is 7/14/2008...,
So last week dates 7/7/2008 to 7/12/2008 have to come...,
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
Post it in SQL Forum
cheers,
Abhijit
|
|
|
|
|
|
I am learning a new way of setting up ASP .NET projects. So far, I've been using a structured approach as I am learning. However, now I am setting up projects using 3 layers, bl, dl, and dal. My question is, how would you databind a gridview going through all the layers? Any good examples? I couldn't really find any.
Thanks
|
|
|
|
|
You can create like this
BO [Business Object]
BLL [Business Logic Layer]
DAL [Data Access Layer]
Now First we define the BO
Here you can create some property according to need..
Now You can create your BO,BLL class objects into your UI code behind...
Now you assign the BO property
BO oBO=new BO;
myBLL oMyBLL=new myBLL();
oBO.PropertyName=ControlName.Text;
dataset ds=oMyBLL(BO oBO);
Now refer to you BLL
Create a class in you BLL folder which has the paratemer of BO
public dataset class myBAL(BO oBo)
{
}
and this BO class call the DAl like this
public dataset class myBAL(BO oBO)
{
return oDAL.YourSelectMethod(BO oBO)
}
Now DAL CLASS is like this
public dataset Class myDAL(BO oBO)
{
// Your Code for select is here
}
above is the secenirio That will be some error.. Hope you solve it into you level. Here I given only example
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
Hello Everyone,
I want to get the WebUsercontrol TextBox value in following issue.
1.Actually I Create a WebUserControl in my project there are several textboxes.
2.Then I create a MasterPage for Common ToolBar(For Insert,Update,Delete)for all UI page.
3. Now I Call the WebUserControl in my page.
4. Now I want to fill the text boxes from UserControl and click My Common ToolBar Insert Button.
5.But My page give the error Object reference not a set......
My Master Page Code sinpet is follows :
public delegate void ToolBarDelegate(object sender, EventArgs e);
public partial class ofcOpMasterPage : System.Web.UI.MasterPage
{
public event ToolBarDelegate AddEvent;
ToolBarDelegate AddFunction;
public event ToolBarDelegate InsertEvent;
ToolBarDelegate InsertFunction;
public event ToolBarDelegate DeleteEvent;
ToolBarDelegate DeleteFunction;
protected void Page_Load(object sender, EventArgs e)
{
AddFunction = AddEvent;
InsertFunction = InsertEvent;
DeleteFunction = DeleteEvent;
}
protected void ibtnAdd_Click(object sender, ImageClickEventArgs e)
{
if (AddFunction != null)
AddFunction(sender, e);
}
protected void ibtnInsert_Click(object sender, ImageClickEventArgs e)
{
if (InsertFunction != null)
InsertFunction(sender, e);
}
protected void ibtnDelete_Click(object sender, ImageClickEventArgs e)
{
if (DeleteFunction != null)
DeleteFunction(sender, e);
}
}
And Default Code Sinpet are
public partial class Default : BasePage
{
protected void Page_Load(object sender, EventArgs e)
{
PIInfoSoft.UI.OfficeOperation.ofcOpMasterPage objofcOpMasterPage = (PIInfoSoft.UI.OfficeOperation.ofcOpMasterPage)this.Master;
objofcOpMasterPage.InsertEvent += new ToolBarDelegate(objofcOpMasterPage_InsertEvent);
}
void objofcOpMasterPage_InsertEvent(object sender, EventArgs e)
{
PIInfoSoft.UI.UserControl.officeoperation.wucTourMaster objwucTourMaster = new PIInfoSoft.UI.UserControl.officeoperation.wucTourMaster();
objwucTourMaster.savedata();
}
}
}
and my WebUserControl sinpet is follows
public partial class wucTourMaster : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
}
public string aa
{
get { return this.txtTourCode.Text; }
}
public void savedata()
{
}
}
so can you suggest me how I insert the data through webcontrol in above secnerio after clicking the common toolbar Insert Button
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
Hi all,
In my application I am using Response.TransmitFile to download a file on clients machine which, prompts the user where to save the file if the user clicks on save button. But I want to fix the location on clients system if he clicks on save button. Is it possible ? How do I meet this by any other means.
Thank U all,
Kiran
|
|
|
|
|
kadkir wrote: I want to fix the location on clients system if he clicks on save button.
How do you know what type of file system the client is using.
When you fix the location you give
Something like
C:\......
If C drive doesn't exist(If it is a unix system) what will happen?
kadkir wrote: Is it possible ?
The very first answer is NO
kadkir wrote: How do I meet this by any other means.
If you really want to do this, The answer is ActiveX controls.
EVEN THE WORD IMPOSSIBLE SAYS I M POSSIBLE.
|
|
|
|
|
Thank U Sherin,
Can any one suggest a site for free down-load of "File down-load activex control" which meets my requirement.
|
|
|
|
|
I am getting error(Entry Point not found) while calling unmanaged dll into VB.net.
The code is as follows.
<DllImport("u2lxxxxx.dll", EntryPoint:="BreezeTime")> Public Shared Function BreezeTime(ByVal ParamBlock As UFParamBlock) As UFError
End Function
Public Function abc() As Integer
Try
Dim ParamBlock As UFParamBlock
ParamBlock.str = "dd/mmmm/yyyy"
ParamBlock.date1 = Now()
BreezeTime(ParamBlock)
Catch
End Try
End Function
where ParamBlock is object of structure type.
Please help me in resolving this issue.
|
|
|
|
|
Hi All,
I have created a application in Visual Studio 2005.Its a Simple application with one master page and some static pages and I have Deployed this appication on server. But i am getting this error
"The codefile attribute on the page directive is not allowed in this page."
I am not getting why i am getting this error.
Please reply me.
I need to run the application as soon as possible.
Thanks and Regards
Avesh Agarwal
|
|
|
|
|
Can you post that line?
please don't forget to vote on the post that helped you.
|
|
|
|
|
Please don't cross post - it's just plain rude. And don't repost so soon after posting in the same forum. Have some respect for the other users.
|
|
|
|
|
Its possible?, attach and sending emails automatically?,
Plz give me some idea or valid sites abt tat...,
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
How do you mean automatically? I know it's very possible with user interaction where an event has to take place to trigger the email and attachment to be sent...
"Sex is not the answer, it's the question and the answer is yes"
|
|
|
|
|
Hi,
how i add value to table header cells dynamically based upon certain range like this
8:00AM to 11:00AM with interval of 15 minutes i have calculated all times but having difficluty to add value to table header cells dymically using loop .
any help is highly appercaited any hint ?
Regards
Rameez
|
|
|
|
|
Hi all,
i have a search page with a search textbox and 2 radio buttons(Arabic & English) and button Search. I need to change the language when choosing arabic radio button to arabic and change it back to english when choosing english radio button. I am being able to change direction only through javascript but being able to change language.
Any ideas
|
|
|
|
|
hi
i am using smtp concept to sent mail . My code is like below:
System.Web.Mail.MailMessage objmail = new System.Web.Mail.MailMessage();
objmail.To = "bretto.be@gmail.com";
objmail.From = "bretto.abraham@aciin.com";
objmail.Subject = "Password Recovery";
objmail.BodyFormat = MailFormat.Html;
objmail.Body = "Name: " + strUserName + "\r\n" + "Password: " + strPassword;
objmail.Priority = MailPriority.High;
//
System.Web.Mail.SmtpMail.SmtpServer = "mail.aciin.com";
// System.Web.Mail.SmtpMail.SmtpServer = "64.187.101.246";
// System.Web.Mail.SmtpMail.SmtpServer = "192.168.0.25";
System.Web.Mail.SmtpMail.Send(objmail);
objmail = null;
but it will display error like this:
The message could not be sent to the SMTP server. The transport error code was 0x800ccc15. The server response was not available
please help me.
with regards,
bretto
|
|
|
|
|
It looks like it should work from what i can see. have you tried doing a search in google for the error?
"Sex is not the answer, it's the question and the answer is yes"
|
|
|
|
|
brettokumar wrote: but it will display error like this:
The message could not be sent to the SMTP server. The transport error code was 0x800ccc15. The server response was not available
First Configre is SMTP Server. You code is fine. You need to Configure your SMTP server that allow you sebnd mail using SMTP.
cheers,
Abhijit
|
|
|
|
|
|
I don't know if i'd use an event handler for this but maybe an if statement and then code in the if statement to retrieve your values. eg
If(checkbox.checked)
{
}
"Sex is not the answer, it's the question and the answer is yes"
|
|
|
|
|
|