Showing posts with label link. Show all posts
Showing posts with label link. Show all posts

Thursday, March 29, 2012

please check this link http://www.kerala.bsnl.co.in/newdqasp/newdq1.asp

http://www.kerala.bsnl.co.in/newdqasp/newdq1.asp

when the mouse is over the thariff menu the menu will be listed but the drop down list is just over the menu any solutions to solve this..

are you saying you want the popupmenu to appear slightly lower? It looks like when the mouse goes over the menu item a function call MM_ShowMenu is called and this takes coordinates for where to display the menu. Try changing

<A id=link14 onmouseout=MM_startTimeout();
onmouseover="MM_showMenu(window.mm_menu_0611164247_0,0,16,null,'link15')"
name=link15>TARIFF</A>

To

<A id=link14 onmouseout=MM_startTimeout();
onmouseover="MM_showMenu(window.mm_menu_0611164247_0,0,25,null,'link15')"
name=link15>TARIFF</A>

Not really sure what it will do as I'm unable to test it here but give it a go.


i wanted the menu to be on top of dropdown list insted of showing the dropdown list betwen the menu.


Hi,

I notice something abt the site... When u click the dropdownlist and dun select anything, then mouse to ur menu the dropdownlist still appear... Which dun look gd


what should i do to overcome this problem

Monday, March 26, 2012

Please Help - How to do Content Gathering!

ok...here goes...

I need to be pointed in some direction on how this can be done using C#.

Lets say that there is a link for a tab delimited .txt file, or a excel spreedsheet with information that i want to get from one site and populate my database off of that information. But i want to be able to make my webapp smart enough to be able to go get this information in some kind of intervals I want (i.e. --> weekly, monthly, every 3 months...)

Can someone please point me in the right direction as to where I can find how to do this...

thanks in advance.If this has to happen on a regular basis - thus not request-based - ASP.NET is likely not the platform to use. Well, it's the platform to use when creating the web app, but not the technology to gather the content. Instead, there are quite some ways to do this:
1. Create a Windows application to gather content and schedule it using at.exe or the Windows Scheduling in the Control Panel.
2. Create a background Windows Service that can do the gathering behind the scenes.
3. (Advanced) Create a SQL Server Notification Services app that accepts incoming inputs from various sources and - as a delivery - inserts the new retrieved data in the database.
Aye create a service to query your remote server every (X) [x = your interval].
Then have it bring your stream back and parse through it. What are you writing this in c# or vb. You do know depending on what your doing with spreadsheets you may need a copy of excel on your server?
I got a little code that basically works. my problem is that the site i am gathering the information from has sessions on it. so if i just put in the link to the site's file i'll will tell me that the session has expired or that there was a problem with the page. Here is the code I have.

and yes, excel and all the goodies are on the server already.


private void Page_Load(object sender, System.EventArgs e)
{
// it works when the open read command is pointed to the actual file.
System.Net.WebClient Client = new WebClient();
Stream strm = Client.OpenRead("http://www.whatever.com");
StreamReader sr = new StreamReader(strm);

string line;

if (strm != null)
{
do
{
line = sr.ReadLine();
ListBox1.Items.Add(line);
}
while (line !=null);
strm.Close();
}
else
{
lblStatus.ForeColor = Color.Red;
lblStatus.Text = "Something went wrong";
}

Stream strm2 = Client.OpenRead("http://www.whatever.com.aspx?format=excel&prefix=");
StreamReader sr2 = new StreamReader(strm2);
line = string.Empty;

if (strm2 != null)
{
do
{
line = sr2.ReadLine();
ListBox2.Items.Add(line);
lblStatus.Text = line;
}
while (line !=null);
strm2.Close();
}
else
{
lblStatus.ForeColor = Color.Red;
lblStatus.Text = "Something went wrong";
}

}

Saturday, March 24, 2012

PLEASE HELP ! URGENT ! repeater errors !

I now get the following error with my repeater...
short desc. of problem. I want to display hyperlinks with a repeater,
but add "link not available" and disable the hyperlink if the field in
DB is null.

as it is now i get:

"Compilation Error"
"Compiler Error Message: BC30201: Expression expected"

in the compiler output i get "error BC30545: Property access must
assign to the property or use its value."

at the line: Container.DataItem("SubjectName") & ": link not
available",
and i also get "error BC30205: End of statement expected" at the same
line...

can anyone see what i'm doing wrong ?

everything was working fine until i tried to add the conditional
statements (iif...)

this is my code in the itemtemplate of the repeater (except the html
tables etc)

<asp:HyperLink NavigateUrl='<%# "http://" &
Container.DataItem("Dep_WebsiteURL") %>'text='<%#
iif(Container.DataItem("Dep_WebsiteURL") is dbnull.value,
Container.DataItem("SubjectName") & ": link not available",
Container.DataItem("SubjectName")) %>'enabled='<%#
iif(Container.DataItem("Dep_WebsiteURL") is dbnull.value, false,
true)%>'Runat="server" Target="_blank" ID="Hyperlink1" /
thanks a lot...I'm kind of in a hurry here...

FredrikFredrik why don't you try doing it in your CodeBehind ?

*** Sent via Developersdex http://www.developersdex.com ***
Howdy everyone !!!
Please disregard this message ! I have solved the problem !
Thanks alot, especially "london calling" who provided me with a better
solution !!

Thanks

Friday, March 16, 2012

please help me!

hi to all;
i'm using asp.net 1.1, c#.net.visual studio 2003 to make my asp web applicat
ion
in my application, i want when i add a new topic a link or icon about this t
opic appear in another page .
example:
consider we have two page "add new message" and the "show all messages"
in add new message page:
i use two text boxes to set a name of the topic and to write a content in th
e second text box.and then click on save/insert button to save the the mess
age in the database.
what i want is : after saving the message--> a link about this message appea
r in the "show all mesage page". so the other user when go to "show all mess
age page" can view a link --> click on it then redirect to the page where i
s the content of the messag
e.
what i want is mostly like what i do now
[i wrote a message name "Subject" textbox--> then i write now the content o
f the message in "Message" texbox-->then i will click on post button --
> then a link of my message "please help me !" will appear in forums page --
--> so the other users of t
he site can go to the forums page,see my message,click on it to view the con
tent of the message]
please help me with code,i really need help to do this ideaOn Jun 5, 10:26 pm, Mero wrote:
> hi to all;
> i'm using asp.net 1.1, c#.net.visual studio 2003 to make my asp web appli
cation
> in my application, i want when i add a new topic a link or icon about this
topic appear in another page .
> example:
> consider we have two page "add new message" and the "show all messages"
> in add new message page:
> i use two text boxes to set a name of the topic and to write a content in
the second text box.and then click on save/insert button to save the the me
ssage in the database.
> what i want is : after saving the message--> a link about this message appear in t
he "show all mesage page". so the other user when go to "show all message page" can
view a link --> click on it then redirect to the page where is the content of the m
ess
age.
> what i want is mostly like what i do now
> [i wrote a message name "Subject" textbox--> then i write now the content of the
message in "Message" texbox-->then i will click on post button --> then a link
of my message "please help me !" will appear in forums page --> so the other users
of
the site can go to the forums page,see my message,click on it to view the content of the me
ssage]
> please help me with code,i really need help to do this idea
You need a DataGrid control
http://samples.gotdotnet.com/quicks...c_datagrid.aspx

please help me!

hi to all;
i'm using asp.net 1.1, c#.net.visual studio 2003 to make my asp web application
in my application, i want when i add a new topic a link or icon about this topic appear in another page .

example:

consider we have two page "add new message" and the "show all messages"
in add new message page:

i use two text boxes to set a name of the topic and to write a content in the second text box.and then click on save/insert button to save the the message in the database.

what i want is : after saving the message--a link about this message appear in the "show all mesage page". so the other user when go to "show all message page" can view a link --click on it then redirect to the page where is the content of the message.

what i want is mostly like what i do now
[i wrote a message name "Subject" textbox--then i write now the content of the message in "Message" texbox-->then i will click on post button --then a link of my message "please help me !" will appear in forums page --so the other users of the site can go to the forums page,see my message,click on it to view the content of the message]

please help me with code,i really need help to do this ideaOn Jun 5, 10:26 pm, Mero wrote:

Quote:

Originally Posted by

hi to all;
i'm using asp.net 1.1, c#.net.visual studio 2003 to make my asp web application
in my application, i want when i add a new topic a link or icon about this topic appear in another page .
>
example:
>
consider we have two page "add new message" and the "show all messages"
in add new message page:
>
i use two text boxes to set a name of the topic and to write a content in the second text box.and then click on save/insert button to save the the message in the database.
>
what i want is : after saving the message--a link about this message appear in the "show all mesage page". so the other user when go to "show all message page" can view a link --click on it then redirect to the page where is the content of the message.
>
what i want is mostly like what i do now
[i wrote a message name "Subject" textbox--then i write now the content of the message in "Message" texbox-->then i will click on post button --then a link of my message "please help me !" will appear in forums page --so the other users of the site can go to the forums page,see my message,click on it to view the content of the message]
>
please help me with code,i really need help to do this idea


You need a DataGrid control
http://samples.gotdotnet.com/quicks...c_datagrid.aspx