|
TheEagle wrote: Is it possible to make in a Mail Inbox i an asp.net website by reading from the Hosting server m
yes, if you can read all the property means, From,Subject, Received Time, etc, you can easily disply it in Grid.
cheers,
Abhijit
|
|
|
|
|
But how to read from the Hosting server email?The emails are there How could I read from there?
I am too late but i will never give up
|
|
|
|
|
For that you need API. First of all From Which Hosting server you want to retrive the mail. Let say's GMail. then you need GMAIL API's For Retreive Email.
cheers,
Abhijit
|
|
|
|
|
Hi,
I have a problem with a marquee on my master page.Whenever a postback occured(without navigating to another page) on the master page the marquee disappear.Otherwise it works fine.Do any one know what could cause this problem and how to solve it?.
I am too late but i will never give up
|
|
|
|
|
Where did you add the Marquee Tag?
cheers,
Abhijit
|
|
|
|
|
In the master page inside a DIV.
The marquee contains a PlaceHolder which I add to it literals in code-behind of the master page.
I observed now that the literal control(which contains the data) are added if not is post back.I will try to remove if(!IsPostBack) and then tell you about the result.
I am too late but i will never give up
|
|
|
|
|
It works.Thank you very much your question helped me to think about where is the code?.
I am too late but i will never give up
|
|
|
|
|
Hi , i have two table in sql . I have to insert data from Ist table to IInd table . in Ist table there is only two field( id , serial) ,
In IInd table also three field(id , serail1 , serial2)
now i want to insert data from Ist table to IInd table , but in IInd table data has to b entered in particular manner .
Ist table id serial
(1, 001) (2, 002)(3, 003)(4, 004)(5, 005)(6, 006)(7, 007)
(8, 008)(9, 009)(10, 0010)(11, 0011)(12, 0012)(13, 0013)(14, 0014)(15, 0015)(16, 0016)(17, 0017)(18, 0018)(19, 0019)(20, 0020)
this data enterd in IInd table with this manner
(001,002)
(002,003)
(002,003)
(003,005)
(003,006)
(004,007)
(004,008)
(005,009)
(005,0010)
(006,0011)
(006,0012)
(007,0013)
(007,0014)
(008,0015)
(008,0016)
ihis loop worked like that (1>1>2>2>2>3>4>5)
|
|
|
|
|
If you just specify how the data should be combined into the second table, it's easy enough to insert it. Example:
insert into SecondTable (serial1, serial2)
select f1.serial, f2.serial
from FirstTable f1
inner join FirstTable f2 on f2.something = f1.something
where f1.something = something and f2.something = something
However, it's not really clear how you mean that the data should be combined into what you show.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
I have a excel files in store data. some cells are fill up and some cells are blank. when excel to import grid view and save data base. that time if cell is blank then store the in database but i want to store null value.
|
|
|
|
|
Hi,
how i write a method or function which returns time range values for example( 8:00 AM to 5:00PM with interval of 15 minutes) becuase i have to add times to each table header cell .
Any help?
Regards
|
|
|
|
|
rameez Raja wrote: how i write a method or function which returns time range values for example( 8:00 AM to 5:00PM with interval of 15 minutes) becuase i have to add times to each table header cell .
I did give you an example code. See your previous post.
please don't forget to vote on the post that helped you.
|
|
|
|
|
You can write two diffrent function for getting two values
public function get_time_range(BYVAL seta AS Datetime,BYVAL Setb as Datetime) AS Double
{
Dim Diff1,Diff2,Diff3 AS DOUBLE
IF Setb < Seta THEN RETURN 0
Diff1 = DateDiff(DateInterval.Day, Seta.Date, Setb.Date)
Diff2 = DateDiff(DateInterval.Minute, Seta.Minute, Setb.Minute)
Diff3 = DateDiff(DateInterval.Second, Seta.Second, Setb.Second)
Return Diff1 + Diff2/60 + Diff3/60
}
|
|
|
|
|
hi all,
how can i add new row to the gridview without reload the old already created rows,because i have a gridview with 2 templete column one of them are dropdownlist ,when i create new row with the same critera the dropdown list in the first row reload from start and dont have the last selected value
so how can i create new row and the first row keep(stored) the value in it
how can i do that ?
thanks for advice
Kareem Elhosseny
modified on Saturday, July 12, 2008 4:55 AM
|
|
|
|
|
Where we can use HTML controls?please give me some example.I think in order form that a customer want to see a preview of her order.is it correct?
|
|
|
|
|
bbc_sh wrote: Where we can use HTML controls?please give me some example.I think in order form that a customer want to see a preview of her order.is it correct?
There are no more differece between htmlControl and WebControl.The main defference is that webControls have default runat="server" while htmlControls do not have.
so that htmlControls are not accessible in code behind page but if you set runat="server" property of that control then it work like as webcontrol but with its own property values
Suppose
you use input text and you set runat="server" to it then you can access the value of this control in code behind side by using "Value" property ot "Text" like as textbox
please don't forget to vote on the post that helped you.
|
|
|
|
|
Hi, all
how i merge the corresponding cells of table control based upon database startdatetime and enddatetime .
i have added header cells with interval of 15 minutes from 8:00AM to 5:00PM
for example 8:00AM To 9:00AM
iam developing reservtion application .
any help is highly appercaited.
Regards
Rameez
|
|
|
|
|
rameez Raja wrote: i have added header cells with interval of 15 minutes from 8:00AM to 5:00PM
try this code
TimeSpan timeSpan1 = TimeSpan.Parse("5:00");
TimeSpan timeSpan2 = TimeSpan.Parse("20:00");
TimeSpan timeSpanDiff = timeSpan2.Subtract(timeSpan1);
int mins = timeSpanDiff.Hours * 60 + timeSpanDiff.Minutes;
int cells = mins / 15;
string minDiff = "0:15";
for (int i = 0; i < cells; i++)
{
Response.Write(timeSpan1.ToString() + " - " + timeSpan1.Add(TimeSpan.Parse(minDiff)) + "<br>");
timeSpan1 = timeSpan1.Add(TimeSpan.Parse(minDiff));
}</br>
please don't forget to vote on the post that helped you.
|
|
|
|
|
Hi friends,
I have an Authentication part in my website (which is written in .net) in my local system every thing is ok but when I move it to our server, when some one authenticates every thing goes well as he is authenticated and no error is thrown but he is not authenticated and he redirects to login page as he is anonymous! I though may it is because of the server time setting so the cookie is expired but it was not! at last after too much trying I decided to check it on another server and this time it worked correctly!! so I think there is some settings in IIS which cause this problem but as I have searched by now I found nothing! every help or suggestion would be very helpfull,
thanks in advanced.
|
|
|
|
|
hi
any body who knows names of books regarding MCAD windows application Development Exams Perpartion .
regards
|
|
|
|
|
Ok here is my code:
string[] info = new string[2];
info[0] = DateTime.Now.ToShortDateString() + " " + DateTime.Now.ToShortTimeString();
info[1] = "OPEN";
SqlDataSource sds = new SqlDataSource(ConfigurationManager.ConnectionStrings["HelpDeskConnectionString"].ConnectionString, "Select ID From [Company_Ticket]");
sds.ID = "SqlDataSource1";
this.Controls.Add(sds);
TextBox txt = new TextBox();
txt.ID = "txtTime";
txt.Text = info[0];
txt.Visible = false;
this.Controls.Add(txt);
txt.ID = "txtStatus";
txt.Text = info[1];
txt.Visible = false;
this.Controls.Add(txt);
QueryStringParameter qsp = new QueryStringParameter();
qsp.Name = "AdminName";
qsp.QueryStringField = "Admin";
qsp.Type = TypeCode.String;
ControlParameter cp = new ControlParameter();
cp.ControlID = "TextBox2";
cp.Name = "Issue";
cp.Type = TypeCode.String;
sds.InsertParameters.Add(cp);
cp.ControlID = "TextBox1";
cp.Name = "Company";
cp.Type = TypeCode.String;
sds.InsertParameters.Add(cp);
cp.ControlID = "txtTime";
cp.Name = "Started";
cp.Type = TypeCode.DateTime;
sds.InsertParameters.Add(cp);
cp.ControlID = "txtStatus";
cp.Name = "TheStatus";
cp.Type = TypeCode.String;
sds.InsertParameters.Add(cp);
sds.InsertCommand = "INSERT INTO [Company_Ticket] (Admin, Started, Issue, Company, Status) VALUES (@AdminName, @Started, @Issue, @Company, @TheStatus)";
sds.Insert();
Ok here is the error I get:
The variable name '@TheStatus' has already been declared. Variable names must be unique within a query batch or stored procedure.
Must declare the scalar variable "@AdminName".
I don't get it.. I declare TheStatus only once.. and why do I keep getting this about AdminName?
|
|
|
|
|
You are only instantiating a ControlParameter once. Create a new instance for each parameter -
ControlParameter cp = new ControlParameter();
cp.ControlID = "TextBox2";
cp.Name = "Issue";
cp.Type = TypeCode.String;
sds.InsertParameters.Add(cp);
cp = new ControlParameter();
cp.ControlID = "TextBox1";
cp.Name = "Company";
cp.Type = TypeCode.String;
sds.InsertParameters.Add(cp);
etc...
|
|
|
|
|
WOW I can not believe I didnt notice that.
I have making a v2 for my company for a ticketing software and used the same method in the last one. It worked... because I did use cp = new ControlParameter().
I was combining the two to see if I could figure it out and I over looked that... WOW
Thanks though!
|
|
|
|
|
Hi all,
I have created helptooltip usercontrol and using it on my other controls and pages.
aspx is
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="HelpTooltipButton.ascx.cs" Inherits="Controls.HelpTooltipButton" %>
<asp:ImageButton ID="TooltipButton" runat="server" Height="19px" Width="19px" ImageUrl="~/Images/HelpIcon_sm.gif" />
the code behind is :
protected override void OnPreRender(EventArgs e)
{
this.TooltipButton.TabIndex = 1000;
functionScript = new System.Text.StringBuilder("showPopup('" + Content + "','" + Title + "','" + TooltipButton.ClientID + "');return false;");
TooltipButton.OnClientClick = functionScript.ToString();
TooltipButton.CausesValidation = ButtonValidator;
}
This control is being used in other user controls.
In my main aspx page, I have used multiview control, to use for tabstrip.
when I am on one tab, and if help button is clicked, helptooltip opens.
without closing that tooltip if I move to other tab, the tooltip is still open.
I would like to close that popup when I move from one tab to other.
I tried to use mouseover and mouseout events for the tooltip as:
protected override void OnPreRender(EventArgs e)
{
if ((TEAMAppConstants.m_AppMode == TEAMAppConstants.AppMode.AdminPages) && (TEAMAppConstants.SelectedUseCase == TEAMAppConstants.DASHBOARD_STATUS))
{
return;
}
this.TooltipButton.TabIndex = 1000;
functionScript = new System.Text.StringBuilder("showPopup('" + Content + "','" + Title + "','" + TooltipButton.ClientID + "');return false;");
TooltipButton.Attributes.Add("onmouseover", functionScript.ToString());
TooltipButton.Attributes.Add("onmouseout", "hidePopup('" + TooltipButton.ClientID.ToString() + "');");
TooltipButton.CausesValidation = ButtonValidator;
}
here, onmouseover tooltip opens, but on mouseout I javascript exception as object not found.
can anyone please suggest me, how can I handle onmouseout event to close the already opened tooltip help?
Many thanks.
|
|
|
|
|
Is there a way to create a config file that controls the elements on specific pages. For example I have 2 pages viz. page1.aspx and page2.aspx. I want to have a config file in which I can control the visible property of the textbox controls on both pages.
Something like this:-
<page id = "page1.aspx">
<controls>
<control1 ID = "Textbox1" Visible = "false">
</controls>
</page>
<page id = "page2.aspx">
<controls>
<control1 ID = "Textbox1" Visible = "true">
</controls>
</page>
|
|
|
|