|
mnkh wrote: do u hav the answer faltu k answers nhi chahiye
I HAVE ALL THE ANSWERS
|
|
|
|
|
I have to use HTM form instead of ASP script, there is an input
<br />
<% If VerifyPending = true Then %><br />
<input type="text" name="from_date" value="<%= FormatDate(Date, 4) %>"><br />
<% Else %><br />
<input type="text" name="from_date" value="<%= FormatDate(Date+1, 4) %>"> <br />
<% End If %><br />
</input></input>
In my HTM it does not accept <% to insert VB script
1. Do I need include some thing to make the HTM accept the above VB script?
2. If not how can I convert into HTM form?
Note: VerifyPending is VB script only use to return TRUE or FALSE, FormatDate is a VB script to return a new Date
Thank to any help
|
|
|
|
|
Hello,
I am writing an ActiveX control. This control will connect to the remote server then do further processes.
In order to the flexibility, I want to use JavaScript to get the address bar value.
And use this address and pass it into the ActiveX control item in order to connect to the remote server.
Now I know location.hostname can get the hostname of the URL. But if I passed it into the ActiveX, it failed.
I set the breakpoint in the function which is called by JavaScript and checked the argument. But the argument value is bad ptr...
I don't know how to fix it. Do I set the wrong type of argument ? Or JavaScript can't do this feature...(I am a newbie of JavaScript)
Can anybody can help me ?
My Environment : Vista SP1 + VS2005 SP1 + IE7
The JavaScript code is
function OnLogin()
{
var hostname = location.hostname;
document.ActiveXClient1.OnLogin(hostname);
}
The corresponding ActiveX code is
BEGIN_DISPATCH_MAP(CActiveXClientCtrl, COleControl)
DISP_FUNCTION_ID(CActiveXClientCtrl, "OnLogin", DISPID_CV_LOGIN, OnLogin, VT_EMPTY, VTS_BSTR)
END_DISPATCH_MAP()
void CActiveXClientCtrl::OnLogin(LPCSTR ip)
{
}
Thanks.
|
|
|
|
|
Problem is solved.
It works when the argument use location.hostname directly.
Don't need to assign value to other variable first.
The JavaScript code which can run on my pc is
function OnLogin()
{
document.ActiveXClient1.OnLogin(location.hostname);
}
|
|
|
|
|
Im tring to write some characters(eg <, %,) to a webforms's textbox but they dont appear on the textbox, the code below tries to illustrate what im saying:
string mytext = "<test>"; // "Test" works
textbox1.text = mytext;
This happens even if i use javascript
does anyone know what im doing wrong here.
modified on Tuesday, September 23, 2008 9:01 AM
|
|
|
|
|
omlac wrote: does anyone know what im doing wrong here.
Kinda hard to say, since you didn't bother to actually post the code that's broken. My guess is, you're failing to HTML escape your text.
---- You're right.
These facts that you've laid out totally contradict the wild ramblings that I pulled off the back of cornflakes packets .
|
|
|
|
|
Hie
Thank you for your response, Im sorry about that, but the following java function is not pasting the value ,m, when i have the "<" signs but if i remove them it works fine.
function LoadField()
{
var editor = $find("<%=radBody.ClientID%>");
var lst = document.getElementById("cboMergeField");
var i = lst.selectedIndex; // for the selectedIndex
var n = lst.options[i].text;
var m = "<" + n + ">";
editor.pasteHtml(m);
}
Thank you
|
|
|
|
|
I would like to use a event fired on a usercontrol on the page it is nested in
Like for instance say the usercontrol has a button on it, when the button gets clicked the event fired should be able to change a textbox nested in the page and not in the user control itself ?
Any examples or pointing in the reight direction will be greatly appricated
Le Roux Viljoen
Web Developer
PCW New Media
South African Branch
www.pcwnewmedia.com
|
|
|
|
|
Ok here is the solution on the ascx file the code should look like
public event EventHandler ButtClick;
protected void Button1_Click(object sender, EventArgs e)
{
ButtClick(sender, e);
}
This will register a onButtCLick Event that can be wired up in the host page
Le Roux Viljoen
Web Developer
PCW New Media
South African Branch
www.pcwnewmedia.com
|
|
|
|
|
Hello Freinds,
I need help regarding a SQL Query We are designing a job site, and there is a job search. In this searchThere is a textbox for entering the keywords or any string for the search. After the Search button click I should give results of the string in a data grid.But I had doubt in SQL Query. Here I am using Full text engine in SQL 2005. And the queries are FREETEXTTABLE and COTAINSTABLE.The rank differs for both.Example:Enter Keywords:I Want jobin .net,vb compnay is Microsoft
FREETEXTABLE QUERY: Select * From jobposting as posting Innerjoin Freetextable (jobposting,*,'"*I*" | "*want*" | "*job*" | "*in*" | "*.net*" | "*vb*" | "*company*" | "*is*" | "*microsoft*" ') as frees ON trees. [Key]=posting. [ID] order by Rank Desc
CONTAINSTABLE QUERY:
Select * From jobposting as posting Innerjoin Containstable (jobposting,*,'"*I*" | "*want*" | "*job*" | "*in*" | "*.net*" | "*vb*" | "*company*" | "*is*" | "*microsoft*" ') as frees ON trees. [Key]=posting. [ID] order by Rank Desc Suggest me the appropriate query for my search,
Thanking You,Phani.
|
|
|
|
|
This is the wrong forum for this question
|
|
|
|
|
Hello,
I had doubt about multithreading concept in asp.net. I saw the examples in vb.net and asp.net, in this examples I found the use of threading is main thread runs in front end while other thread works in back end. I need to work it out in a web application in visual basic (vb).
Please give brief details about this concept and example, such as the importance of threading and how to use.
Thanking You,
Phani.
|
|
|
|
|
This is the wrong forum for this question.
It is also too general. You must do your own research. People here are happy to help with specific queries, but no-one is going to write you a treatise on the concepts (with example, if you please) of multi-threaded applications.
|
|
|
|
|
Friends pls help me to undertand the causes for IIS hang
|
|
|
|
|
Are you running .net 2.0 on your server ?
if so whenever you change the home page in the documents tab of IIS it messes up the service, thus shutting down all your sites, some kind of bug we experienced aswel , just go to your administrative tools and services and restart your "World Wide Web Publishing"(right at the bottom of list) Service.
This will fix up the stalling problem
Le Roux Viljoen
Web Developer
PCW New Media
South African Branch
www.pcwnewmedia.com
|
|
|
|
|
I am using Inoa Orbix (BOA) with C++, trying to retrive / search records from the server, some times it hangs, and IIS shoud restarted
|
|
|
|
|
wont be able to help you with that dont know C++ and Orbix that well but usually the most common cause for hanging would be a loop that retrieves incredible amounts of records in a single request, (check the max request length of the web.config) or try paging your data , or sandboxing a ligter version of the code that just returns one row.
But all in there can be numerous reasons for iis hanging.
Le Roux Viljoen
Web Developer
PCW New Media
South African Branch
www.pcwnewmedia.com
|
|
|
|
|
Hi Guys,
Is there a solution on how to convert TimeStamp to DateTime?
Thanks
hifiger2004
|
|
|
|
|
Why isn't this in the SQL/database forum?
To quote from SQL Server Books Online:
"The SQL Server timestamp data type has nothing to do with times or dates. SQL Server timestamps are binary numbers that indicate the relative sequence in which data modifications took place in a database. The timestamp data type was originally implemented to support the SQL Server recovery algorithms.
Never use timestamp columns in keys, especially primary keys, because the timestamp value changes every time the row is modified."
|
|
|
|
|
Yes, I actually read the mssql help file and it says that its the same as the rowversion. Microsoft shouldn't named it to timestamp. It could be something like "rowstampid" or something. Because in Oracle the timestamp can be converted to datetime.
Anyway, thanks for the answer.
hifiger2004
|
|
|
|
|
Hey all,
This may be a silly question, but I haven't found a clear answer anywhere yet.
I want to start using Ajax on my on-line shop, in my dev environment I have installed all the necessary bits and it works fine. I'm using Visual Studio 2005 Pro and targeting .net 2.0 with Ajax 1.0.
We don't have the Ajax extensions installed on the server yet, and we're looking at upgrading to .net 3.5 in the very near future and using Visual Studio 2008.
If we just install .net 3.5 framework on the server, will I be able to use my .net 2.0 Ajax 1.0 site with the extensions included in 3.5?
or do I need to install Ajax 1.0 on the server then install .net 3.5 over the top, is it even possible to use both at the same time? (I'm new to Ajax if you can't tell...)
Is it worth just waiting for Visual Studio 2008 to arrive and upgrading the site to .net 3.5 and just installing that framework instead of faffing around with different versions?
Cheers for any input / advice
Mark
|
|
|
|
|
markymark82 wrote: (I'm new to Ajax if you can't tell...)
You question has nothing to do with Ajax but is specific to the products you are working with. I suggest you read the installation and compatibility information for the products to find the answers to your questions.
led mike
|
|
|
|
|
Hi I run the same scenario will be able to help
If you would like ajax for your .net 2 applications you need to install the extensions on your server - no restart needed and it will work 100% , The ajax extensions installed on 3.5 is for 3.5 alone and not 2;
.NET 3.5 works 100% with all other versions of .net and does not cause any compatibility issues since to use .net 3.5 the web.config for the application uses .net3 settings.
I suggest you install .net 3.5 SP1 on your server (lots of improvements and stability) and unlike the previous versions of of .net 3.5 does not need you to run the aspnet_regiis /i command to be able to recognize the framework.
Le Roux Viljoen
Web Developer
PCW New Media
South African Branch
www.pcwnewmedia.com
|
|
|
|
|
That's excellent,
I had just managed to find a blog suggesting similar so that's great to have it backed up with someone who's had solid experience with it.
Thanks very much for your reply.
Mark
|
|
|
|
|
Just a quicky..
I take it I don't need to install .net 3.0 on the server before 3.5?
and can I just download and install the .net 3.5 SP1 or do I need 3.5 on its own first?
Sorry, just need to get it right first time as I don't have access to a test server, this is going on to our internal app server...
Thanks in advance..
|
|
|
|