|
You could set up session values and do it that way or pass them through the URL
|
|
|
|
|
How to pass HTML text value to aspx page
|
|
|
|
|
Did you even read the answer ?
If the HTML page does a POST, I think you can read those values in your code behind. You can't put stuff in the session in a HTML page, that was just wrong. You CAN form a URL that means you pass parameters as querystring parameters, tho.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Good point of course you cant put a session in the html code my brain isnt working yet!
|
|
|
|
|
function getPrint(print_area)
{
//Creating new page
var pp = window.open();
//Adding HTML opening tag with … portion
pp.document.writeln('<title>')
pp.document.writeln('<base target="_self" />')
//Adding Body Tag
pp.document.writeln('');
//Adding form Tag
pp.document.writeln('');
//Creating two buttons Print and Close within a table
pp.document.writeln('');
//Writing print area of the calling page
pp.document.writeln(document.getElementById(print_area).innerHTML);
//Ending Tag of , and
pp.document.writeln('');
}
with above function i am able to print by passing div id .. i need to print without opening a new page in the same way by passing div id.
|
|
|
|
|
Can't be done. The only thing you can print in a website, is the entire window.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hello
Friends
I need to find distance between two locations using Names or postal address using either Map Point or Google Earth
Please if any one knows how to do it ...i will be thankfull
NOTE: Getting Latitude and Longitude values using Postal Code or Name ...Can also Solve my problem
Thank You
If You win You need not Explain............
But If You Loose You Should not be there to Explain......
|
|
|
|
|
|
Hi..
I am making a website using asp.net 2.0. I am using validators like required field validator & regular expression validator. Everything works fine on my local pc. But when i upload it on remote server, validators works fine but gives error "event is null or not an object" when i click on any linkbutton, on all pages where i have used validators with gridview.
I tried removing validators & in dat case everything wrks fine. I also tried uploading folder aspnet_client/system_web/2_0_50727 on remote server. But still it gives same error. Can someone give me some solution. Its very urgent please....
|
|
|
|
|
requiredfieldvalidator and regular expression validator which are related with those texbox u make grouping with same name
<asp:TextBox runat=server ID=ksearch ValidationGroup=ks CssClass=”txt”></asp:TextBox>
<asp:ImageButton ID=”ImageButton1? ValidationGroup=ks Width=38 Height=24 ImageUrl=”images/gobutton.gif” OnClick=”go” runat=server/>
<asp:CustomValidator ID=”cu” ValidationGroup=ks runat=server ControlToValidate=ksearch ValidateEmptyText=true ClientValidationFunction=”check” >
which are grouped by using ValidationGroup=ks
no knowledge in .net
|
|
|
|
|
u r using ajaxenabled website ?
if yes then try tagmapping....
Ashish Sehajpal
|
|
|
|
|
Hi my friends ,
my database is sql and it's work as good on local mode , but after copy web site , an error with web.config ,, sure it's is the connection string ,
I ask if I must change the connection string or not ,,,
when I take a domain on details I see :
MSSQL mssql136.win-servers.com
what is the new connection string to be right ..
jooooo
|
|
|
|
|
It depends. If your old SQL Server is on your local network, and your web server cannot see it, then you need to deploy to a SQL Server that the web server can see. If the server is on your network, and the SQL Server was not the local machine, it should just work.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Thanks my friend ,,
I will check it
jooooo
|
|
|
|
|
you need to specify the IP adress/ live URl of database server (even the port number if it is on shared hosting)
Ashish Sehajpal
|
|
|
|
|
I have a trick for this situation
I keep three connection strings in my web.config file. The first connection string is named app_name_local, the second is app_name_server and finally app_name_application. For example if you have an application Foo you would have Foo_local, Foo_server, and Foo_application.
I make all connections in the application to the app_name_application string. This makes it simple to manage. You never have to make a change to the connection string name anywhere in the application.
I also keep copies of the server string and the local string in the other connection strings. When I upload the web.config file to the server, the only change I need to make is to the application connection string by copying the string from the server cs to the application cs. This way, I can keep local data to code with and not affect real data on the server.
I hope this helps.
Tom
|
|
|
|
|
thanks my friend ....
jooooo
|
|
|
|
|
Hi
My Gridview is displaying data as.
SN ID
1 C120
2 C121
3 C124
4 C121
5 C128
6 C120
7 C121
when i click on one button this above grdview is displayed .my dataset is returning these 2 values.
I want to display Count column in Gridview as
SN ID Count
1 C120 1
2 C121 1
3 C124 1
4 C121 2
5 C128 1
6 C120 2
7 C121 3
if ID e.g in above gridview C120 is repeating 2 times & C121 is repeating 3 times.So
I want to display as above shown Count .
Please help How i do this.
Thnx
GroCareer
|
|
|
|
|
write your SQL so it returns this extra column, then bind to it. Always the easiest way. you could just add the column and use code to set the values, but why not do it in the DB?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
How to calculate Count's value in SQL.
Please help how to write query for this.
Thx
Grocareer
|
|
|
|
|
It could be an expensive query, I'm thinking you need to ask for the count of items with the same Id, whose row number is less than the current one.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi
I have answered the same question in SQL / ADO / ADO.Net
Try this:
SELECT
SNO,
Id,
(
SELECT
(COUNT(*) + 1)
FROM
table1 b
WHERE
b.SNO < a.SNO AND
a.Id = b.Id)
FROM
table1 a
OR
SELECT
SNO,
Id,
(
SELECT
COUNT(*)
FROM
table1 b
WHERE
b.SNO <= a.SNO AND
a.Id = b.Id)
FROM
table1 a
Harini
|
|
|
|
|
hi,
I am using vs2005 and as backend I am using sql server 2005 express edition that is coming inbuilt with vs 2005. But it does not support the reporting service facility and i have to use that service in my project.
After surfing from net I came to know that in the Sql Server 2005 express edition with advanced feature reporting service is present. So I downloaded the source for it and installed in my PC. But it didn't show me the option of BIDs in VS2005 for generating reports. So I again installed Sql server 2005 developer edition without uninstalling the sql server express edition, as a result it generated many instances in microsoft sql server---> MSSQL.2,MSSQL.3......,MSSQL.7 .Even after this it didn't show me BIDs in VS2005. Now when I am running my original project with connection string as follows
str = "Data Source=.\\SQLEXPRESS;AttachDbFilename=E:\\Bizworld21\\App_Data\\Database.mdf;Integrated Security=True;User Instance=false"
oConnection.ConnectionString = str
it gives me an error as below...
"Instance failure."
How to solve this problem? Pls help me
|
|
|
|
|
I think you just want
"Data Source = E:\\Bizworld21\\App_Data\\Database.mdf;Integrated Security=True;User Instance=false"
either that, or you want something like
data source = localhost;etc
without the stuff about the file path.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
If you are a vb.net programmer, is ASP.Net hard to learn?
|
|
|
|