|
In fact,you can write your javascript is separate js file,
and then import the js file in masterpage header...
hope this is useful for you~
Stick To .Net
|
|
|
|
|
Hi i have placed my gridview in inside a panel...,
In that first column its checkbox control...,
In that checkbox i have assigned for ajax togglebutton extender...,
Now my problem is i have allocate the width & height for panel...,
So my panel getting scroll bars based on the grid recors...,
Now the toggle button coming outside of the panel also...,
But i like to show the toggle button based on my scroll and grid checkbox.....,
How to solve this probs plz anyone help me.........,
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
private void LoadDictArray(string strPath, string strBegin)
{
bool boolStart = false;
string strCurrent = "";
string strFinal = "";
string filepath = "C:/Documents and Settings/Owner/My Documents/Visual Studio 2005/sample/dict-large.txt";
// Open our dictionary file
StreamReader srDictionary = new StreamReader(Server.MapPath("dict-large.txt"));--->Error Line
// Check each line and loop while there is another
while (srDictionary.Peek() != -1)
{
// Read the current line
strCurrent = srDictionary.ReadLine();
// Does the first character match our word's
if (strCurrent.Substring(1).ToLower() == strBegin.ToLower())
{
boolStart =true;
// Only add words beginning with the same letter as the current word
strFinal += strCurrent;
}
// Exit, we have all our relevant words
if (boolStart == true & strCurrent.Substring(1).ToLower() != strBegin.ToLower())
{
break; // TODO: might not be correct. Was : Exit While
}
}
// Close the streamreader
srDictionary.Close();
char[] char1 ={ '\n' };
// Split our string into an array of suitable words
strDictArray =strFinal.Split(char1);
}
|
|
|
|
|
You did not type an error message.
rockram wrote: string filepath = "C:/Documents and Settings/Owner/My Documents/Visual Studio 2005/sample/dict-large.txt";
// Open our dictionary file
StreamReader srDictionary = new StreamReader(Server.MapPath("dict-large.txt"));--->Error Line
Does dict-large.txt file exist in application folder?
If it exist then why did you get file path from local machine?
If it does not exist then you can not make server.MapPath
try this if it does not exist.
string filepath = "C:/Documents and Settings/Owner/My Documents/Visual Studio 2005/sample/dict-large.txt";
StreamReader srDictionary = new StreamReader(filepath);
regard
Khan
please don't forget to vote on the post that helped you.
|
|
|
|
|
code:
private void LoadDictArray(string strPath, string strBegin)
{
bool boolStart = false;
string strCurrent = "";
string strFinal = "";
string filepath = "C:/Documents and Settings/Owner/My Documents/Visual Studio 2005/sample/dict-large.txt";
// Open our dictionary file
StreamReader srDictionary = new StreamReader(Server.MapPath("filepath"));--->Error Line
// Check each line and loop while there is another
while (srDictionary.Peek() != -1)
{
// Read the current line
strCurrent = srDictionary.ReadLine();
// Does the first character match our word's
if (strCurrent.Substring(1).ToLower() == strBegin.ToLower())
{
boolStart =true;
// Only add words beginning with the same letter as the current word
strFinal += strCurrent;
}
// Exit, we have all our relevant words
if (boolStart == true & strCurrent.Substring(1).ToLower() != strBegin.ToLower())
{
break; // TODO: might not be correct. Was : Exit While
}
}
// Close the streamreader
srDictionary.Close();
char[] char1 ={ '\n' };
// Split our string into an array of suitable words
strDictArray =strFinal.Split(char1);
}
The dict-large.txt file is in the solution explorer itself
|
|
|
|
|
Well its obvious it dooesnt recognise the file location.
You sure this is correct file location?
It might not recognise it because there is spaces in the file address
|
|
|
|
|
rockram wrote: string filepath = "C:/Documents and Settings/Owner/My Documents/Visual Studio 2005/sample/dict-large.txt";
I doubt ASP.NET can access files in this way. You need to use "Server.MapPath" to map the file names.
|
|
|
|
|
Hi,
Currently Iam familar with firefoc and IE7 when designing a website.But IE6 is realy my nightmare because it is different completely different than the two.I used to check the website in IE7 and firefox.But I didn't know that IE6 is that different from both.Iam checking my website in screen 800x600 most of times because it is the most difficult.I face these difficulties because The manager want me to make design that is stretchable(doesn't need the horizonal scrolling to view the whole page).
Do any one know why IE6 display pages very different than IE7.
How does it understand padding,margin,css,div?
I am too late but i will never give up
|
|
|
|
|
Its just the way the browser renderes the CSS. IE tries to guess what you want from your design but firefox shows you the errors in your css.
i cant list all the differences that IE6 has compared to IE7, its best you look for an article to help you with each indivdual problem you have with the display.
I personally would design for a stretch as well as it seems like a waste of space to design for 800x600 on a big screen.
|
|
|
|
|
Need help on exporting to excel from datagrid. (I dont want third party tool). I tried to render the data to HTML as given below:
response.Clear();
response.ClearContent();
response.ClearHeaders();
response.Buffer = false;
response.ContentType = "application/ms-excel";
response.AddHeader("Content-Disposition", string.Format("attachment;filename={0}.xls", StrFileName));
StringWriter stringWrite = new StringWriter();
HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite);
DataGrid dg = new DataGrid();
dg.DataSource = dr;
dg.DataBind();
dg.RenderControl(htmlWrite);
response.Write(stringWrite.ToString());
response.End();
It works fine if i edit the file and save. I tried to create new worksheet in the same excel file and saved this changes, new temp folder has been created. (filename_files as like HTML files if you save any web page)
Please let me know how to avoid this?
Harini
|
|
|
|
|
student table
id stu
1 s1
2 s2
subject table
id sub
1 sub1
2 sub2
student-subject table
id sid subid marks
1 1 1 100
2 1 2 100
3 2 1 100
My question is what shall be the query for those students who did not appear in all exams
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
modified on Monday, July 7, 2008 3:19 AM
|
|
|
|
|
check out the exists option:
http://www.techonthenet.com/sql/exists.php
|
|
|
|
|
can u prease provide the query ?I am in urgent need of it .
I have gone through the qrticle . But not geting to construct the query
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
select * from table1 where not exists (select * from table2 where table2.id = table1.id)
something like that
|
|
|
|
|
still not working , i have three tables
1.student
2.subject
3.mixed of student and subject.
form the above table , i want to find out those students who did not appear in all exams
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
do I have to spell it out for you, try playing around with the query yourself:
you need to select all fields from student which arent in subject and match the id to them
|
|
|
|
|
What you waiting for? He needs a ready made query that serves his purpose.
Don’t you know that he don’t have much time to do research on it?
|
|
|
|
|
If this is a sarcastic reply then I'm smiling to myself as you know what these people are like
If this is a serious demand then I'm def not smiling!
|
|
|
|
|
No buddy. I didn’t mean that. Actually I feel bore to these kind of people who always looking for a spoon feeding. My apologies if my comment hurt you.
|
|
|
|
|
haha no it didnt hurt me, just good that someone has the same opionion of these people who just expect us to do all the work.
happy programming!
|
|
|
|
|
when i m doing grid view through wizard in asp.net2.0 there is on advanced option.
in it there is a checkbox--"generate insert update delete statements"
I have checked it ,and set it finish .
But thr is option coming enable editing,deleting, etc.
But no option for insertion.WHY?
How can i do the insertion through wizard?
|
|
|
|
|
Can you not right click on the gridview after in design view and then edit the datasource and set a query doing it that way
|
|
|
|
|
I m using sqlDatasource. will it work for it?
|
|
|
|
|
|