|
go to the web.config file and set debug=true and then upload the site again, the error will appear, see what's the problem and then upload it once more after correcting the error.
|
|
|
|
|
hey i have a pdf document in the web server and i want to print it with a button in my web page
|
|
|
|
|
Hi,
I am doing a web aplication, and in web.config my connection string is there. but while accessing the connection string i am getting that it is "empty"
Any idea for it !!!
Thanks in Advance
Happy Programming
-----
Abhijit
|
|
|
|
|
Can you give some more idea about how u r retrieving connection key from Web.config file?
This time will also pass.....Remember this in bad days of Life.
Keep Smiling
|
|
|
|
|
Hi,
Thanks for resposne !!!
please check the reply that i have post to jintal
Happy Programming
-----
Abhijit
|
|
|
|
|
hi
please give me the code how u set And get The connection string
Jintal Patel
|
|
|
|
|
That is used in web.config File
<connectionStrings>
<add name="mycon" connectionString="Data Source=M53;Initial Catalog=mydb;User ID=sa"
providerName="System.Data.SqlClient" />
</connectionStrings>
Now in in .cs file
SqlDataSource1.ConnectionString = ConfigurationManager.ConnectionStrings["mycon"].ConnectionString;
And in a aspx page there is a gridview and datasource id of gridview is SqlDataSource1.
While Opening that page i am gettig the error " Connection String is empty",
Any idea about that !!!
Thanks in Advance !!!!
Happy Programming
-----
Abhijit
|
|
|
|
|
hi
If u want to open connection then try with
according your code
<connectionStrings>
<add name="mycon" connectionString="Data Source=M53;Initial Catalog=mydb;User ID=sa"
providerName="System.Data.SqlClient" />
</connectionStrings>
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["mycon"].ToString());
u will be able to open connection ..
OR also try like this
<appSettings>
<add key="connectionString" value="Data Source==M53;Initial Catalog=mydb;User ID=s<a;Password=sa;"/>
</appSettings>
conn = new SqlConnection(System.Configuration.ConfigurationManager.AppSettings["connectionString"]);
-- modified at 2:36 Thursday 18th October, 2007
-- modified at 2:37 Thursday 18th October, 2007
Jintal Patel
|
|
|
|
|
Thanks for your reply,
I will try it and let u know if done
Happy Programming
-----
Abhijit
|
|
|
|
|
Hello,
I have a label with attribute as below
meta:resourcekey="Organizationlbl"
I want to change this attribute to meta:resourcekey="Companylb" when some condition met.
Please suggest.
Regards,
Pavas
-----------------------
[http://longjump.com/]
Dynamic business applications that manage and coordinate teams and information
-----------------------
|
|
|
|
|
Hello guys.
I have an error on my page from something I downloaded and the message says "To avoid this message, change ur EO.Web.Runtime.DebugLevel to Zero".
I have found the EO.Web.Runtime.DebugLevel but it says DebugLevel() as Integer and dont know how to change it to Zero.
Please help guys.Thanx in advance.
kagiso
|
|
|
|
|
matjame wrote: "To avoid this message, change ur EO.Web.Runtime.DebugLevel to Zero".
Did the error message really have txtspk in it?
matjame wrote: I have found the EO.Web.Runtime.DebugLevel but it says DebugLevel() as Integer and dont know how to change it to Zero.
Could it be a cofig file setting? That kind of thing is usually found in the config file.
|
|
|
|
|
I dont know about the txtspk, but the message popped up on my screen as I was running the project.
Its not a config file setting coz I went there and there was nothing.U find it at the .sln file.
With me its called ALGroup.sln.
Its the main project for me.Thanx in advance guys.
kagiso
|
|
|
|
|
iam adding picture in an iframe by command iframe.document.execCommand('insertimage', false, imgSrc);now i want to add table like this .how it possible.
|
|
|
|
|
jagadeeshkumar1984 wrote: iam adding picture in an iframe by command iframe.document.execCommand('insertimage', false, imgSrc);now i want to add table like this .how it possible.
A table is represented by HTML, put an HTML file in the IFRAME.
|
|
|
|
|
First Create aspx page for inserting Table and it will have all the thing which u need to accept for creating table. Something like this:
<table cellpadding="1" cellspacing="1" border="0" width="100%">
<tr>
<td align="right" class="textright">Rows</td>
<td class="textright">
<input name="rows" class="text" type="text" id="rows" value="2"/>
</td>
<td align="left" class="textright">Columns</td>
<td class="textright">
<input name="columns" type="text" class="text" id="columns" value="2"/>
</td>
</tr>
<tr>
<td class="textright" align="right">Table width</td>
<td class="textright">
<input name="width" class="text" type="text" id="width" value="100"/>
</td>
<td class="textright" colspan="2">
<select id="widthType" class="text" name="widthType">
<option value="pixels">pixels</option>
<option value="percent" selected="selected">percent</option>
</select>
</td>
</tr>
<tr>
<td align="right" class="textright">Border thickness</td>
<td class="textright">
<input name="border" class="text" type="text" id="border" value="1"/>
</td>
<td align="left" class="textright" colspan="2">pixels</td>
</tr>
<tr>
<td align="right" class="textright">Cell padding</td>
<td class="textright">
<input name="padding" class="text" type="text" id="padding" value="4"/>
</td>
<td class="textright">Cell spacing</td>
<td class="textright">
<input name="spacing" class="text" type="text" id="0" value="0"/>
</td>
</tr>
<tr>
<td class="textright">
</td>
<td class="textright" colspan="3">
</td>
</tr>
<tr>
<td class="textright"> </td>
<td colspan="3" class="textright" align="center">
<input type="button" class="button" value="Insert Table" onclick="AddTable();" />
<input type="button" class="button" value="Cancel" onclick="window.close();" />
</td>
</tr>
</table>
Then add Javascript Function AddTable():
function AddTable() {
var widthType = (document.tableForm.widthType.value == "pixels") ? "" : "%";
var html = '<table border="' + document.tableForm.border.value + '" cellpadding="' + document.tableForm.padding.value + '" ';
html += 'cellspacing="' + document.tableForm.spacing.value + '" width="' + document.tableForm.width.value + widthType + '">\n';
for (var rows = 0; rows < document.tableForm.rows.value; rows++) {
html += "<tr>\n";
for (cols = 0; cols < document.tableForm.columns.value; cols++) {
html += "<td> </td>\n";
}
html+= "</tr>\n";
}
html += "</table>\n";
window.opener.insertHTML(html);
window.close();
}
Finally call this page on ur iframe form like this:
function dlgInsertTable(command, editorId)
{
//function to open/close insert table dialog
//save current values
setRange(editorId);
var finalDivId = editorId + '_content';
parent.command = command;
var currentRTE = finalDivId;
var windowOptions = 'history=no,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=no,width=500px,height=200px';
window.open('insert_table.aspx?f=' + finalDivId, 'InsertTable', windowOptions);
}
Hope this helps u???
|
|
|
|
|
in form based authentication we have a tag with credential inthat we had an attribute password.for that we have 3 values clear,mid5,shai.how we encrypt a password stored in a database will be encrypted using shai.....please send the source code also
|
|
|
|
|
|
Encrypting the values passed as a user name or password as in mail ids.i want the source code for encrypting the username that stores in the database will entered into the textbox it will be displayed as in encrypted form using random numbers.
|
|
|
|
|
Hi,
I have two sql databases. I want to update tables from one database to other database.
how can I do it
Thanks in advance
|
|
|
|
|
say the two tables dbase1 and dbase2
just update the tables like dbase1.emp and dbase2.emp
hope u understood
|
|
|
|
|
If both the database resides on the same server then you can do using the below syntax
Update DBName.dbo.Table SET DBName.dbo.Table.Column = val
Regards - J O N -
|
|
|
|
|
hi how can we set the dataset value as navigate url to open that file.
plz help asap.
regards
venkat
|
|
|
|
|
just link the full path of the file from server
|
|
|
|
|
hi
how to convert the system path into browser path
(or)
how to replace \ with / in system path
venkat
|
|
|
|