also i want to know how to access the json data and save it in table normally
and do insert and update on it ....sorry i forgot to add this to the thread

Hello everyone

Now my problem is how to make oracle take json string in oracle procedure , so i know that only oracle 12c specifically version 102 supports json data , so i want to know how to get a json string from web application rather than using XML data , without the need to create table like this :

SQL> CREATE TABLE product_catalog
  2    (ident number generated always as identity,
  3     json_document CLOB
  4     CONSTRAINT validate_json CHECK (json_document IS JSON));

the flow will be like this
json string in web -->json string as CLOB parameter in oracle procedure's header -->deal with json data inside the procedure
could it be like this:


how to convert JSON_DATA to json here , and then deal with it inside the procedure.

thank you so much :D

i found the problem and i solved it ,thanks everyone

the dialog used to be shown before , but no it isnt :(
all i did after that was only completing my design

hello ,

i have this problem i cant figure if it from the gloable resources or in the event itself, so i am using 2 languages in my website's pages, one language which is not the defualt is working very well ,but the english language mode it isnt , so here i have help images beside the control that opens a small dialog contains the help text , in the other language it works and the dialog is opening ,but in english even the curser's shape isnt changed to trigger event..before the controls on both languages were working fine!
i tried to trace it using developer tools but it wont go inside the function !
where i call the function :

 <a href="#" style="vertical-align:top;"  data-helpcontent="<% = Resources.Resource.DialogCanNameContent%>"; onclick="ShowQuestionHelp(this); return false;" >
 <img alt="" class="imgInfoStatic" src="../Style/Images/empty.png"/></a>

the dialog i am trying to open

<div id="HelpDialog" style="display: none;">
 <div class="GeneralControl" style="width: 100%;"> 
 <span id="ContentOfDialog"  style="width:150px ;font-weight: bold;"></span>         

the function i am trying to call can you help me with this, i am trying to know why it's not going inside the function

  <script> function ShowQuestionHelp(obj) {
               $('#HelpDialog').dialog({ title: '<% = Resources.Resource.HelpTitle %>', width: 200, height: 150 });   


thank you so much

it worked i was having a space not in the correct place

thank you so much for your answer :D

it didnt work now it doesnt accept any of them !??!

between the two expressions
like this

<input type="text" class="txt" id="mob_num"  data-validation="custom"   data-validation-regexp="^(?:\9)[. ()-]*(?:\d[. ()-]*){8}$ |^(?:\00)[. ()-]*(?:\d[. ()-]*){14}$"  data-validation-error-msg="please enter the correct number" />

i will try this ,thanks

so i tried this to combine both conditions
^(?:\+|00{14}|9{8})[. ()-]*(?:\d[. ()-]*)$
and those 2
^(?:\9)[. ()-]*(?:\d[. ()-]*){8}$ -->starts with 9 length is 8
^(?:\00)[. ()-]*(?:\d[. ()-]*){14}$-->starts with 00 length is14

if choose the second way how to i insert them in the data-validation-regexpattribute as two expressions ?

can anyone help me with this ?


i tried this regular expression ^(?:\00|9)[. ()-]*(?:\d[. ()-]*){8,14}$to enter a phone number in a text field ,but it didnt work like i wanted .

what i want the rule to be is if the phone number starts with 9 then the length would be 8 digits, but if the phone number starts with 00 it would 14 in length on the same regular expression , the expression i found takes all the cases, like if it starts with 9 it could be 14 in length and vice versa !

the problem is that the phone number takes two forms in one input if this was on 2 input fields this would be much easier.

can any one help me with this ?

thats my code ... i used form validation to validate my form .
also if i can expand the rule a bove like this if i want to start with 123 and length 20 or any like this .

<input type="text" class="txt" id="mob_num"  data-validation="custom"   data-validation-regexp="^(?:\00|9)[. ()-]*(?:\d[. ()-]*){8,14}$"  data-validation-error-msg="please enter the correct number" />

<script> $.validate(); </script>

Thank you :D

it worked thank you :D


i wanted to do validation using data-validationattribute in jquery,so what i wanted to check is how to limit input in minlength and maxlength and to be only alphabet chars,so maxlength worked but minlength didn't !! it was like "not valid attribute for input in HTML5",

 <label> at least enter 45 chars </label>
           <input name="name" data-validation="custom and length" data-validation-length="min45" data-validation-regexp="^([a-z]+)$"/> 

Now this was like data-validation="custom" but i was totally just trying randomly alone and did this data-validation="custom and length" i dont know why i add and between them but this worked and i both got restriction on length and on minimum number of chars entered
so i did like thisdata-validation-length="min45 and max60" but it didnt work !
can anyone tell me how to restrict the enterd number of chars (min and max ) on the same input using data-validation-length attribute?

also if i can fing properties ofdata-validation="like what to put here to combine validation on more than one property of the input tag" ?

Thank you so much

it worked :D
thank you

ok , i will do this and see what happens ...thank you so much

I made a web page that needs the user to insert some info in text boxes and then submit them .
I want to ask about how can i insert as an option to drop down list once i enter the textbox value by the user like this

NAME <input type ="text" id="name"/>
<asp:DropDownList ID="Namelist" runat="server">
<asp:ListItem>new user </asp:ListItem>
<asp:ListItem > the text taken from the textbox </asp:ListItem>

NOW , I want to do it using jquery ( info.aspx ) file or in the behind code , i tried to do the behind code in c# but the id of the text box isnt recognizable a syntax error pops up says that its not in the context ..all what i saw while searching was inserting to the drop down list after button click event ...but i dont want this . in the user ( info.aspx.cs) file behind code i tried this

protected void NameList_SelectedIndexChanged(object sender, EventArgs e)
NameList.Items.Add( name.Text);

but the id of the "name" text box doesnt exist in the current context ,also i tried to add it as an option

NameList.Items.Add(new ListItem (name.Text));

For the date elements this worked

day.InnerText = DateTime.Today.ToString("dddd");//show day in label day
timeDate.InnerText = DateTime.Today.ToString("MM/dd/yyyy");// show date in label time date

but to fill the drop down list it didnt work! any idea how to fill it when the user select from the list's options? thanks

ok since no replied i just want to say that i solved the problem , by downloading the oracle client again and moved the TNS file to the directory of the client and it worked


So i have problem in connecting to my oracle database on the server it threw an exception like this
"The type initializer for 'Oracle.DataAccess.Client.OracleParameter' threw an exception".
my supervisor told me that it might be a referencing problem in this library Oracle.DataAccess.Client.OracleParameter,but i think that the library doesnt fing my client ,i downloaded the ODAC more than one time and the same exception pops up! ,but the error goes without authentication script in the web.config file.But the authentication is imoprtant and it must not be removed!

<authentication mode="Forms">
      <forms loginUrl="WebForms/ICensus/login.aspx" name="ASPXFORMSAUTH" protection="All"/>

does anyone have an idea of how to solve this ?
thank you

ok ,,, i was just asking ,, i am sorry i will write another one with C not Objective C cuz i dont deal with it ,, i thought it was C

thanks for the information though

problem sovled it looks that my foucs was zero ,,,thanks to the cool errors i had all day

ok so if use a==b instead of strcmp() this could solve the problem

i will try it

thank you

** yes ...i am mixing between them ...i dont know the Objective C ...i am learning how to program with C not Objective C ..but i use what i see on the internet and combine it to make specific code ... so definitely i am mixing between them now !



i am trying to read a file and save to array

i wrote one and it worked accept it not reading ot line by line, so i wrote another one but i am trying to make it as function
when i make function call i get this error

read.c:32:13: error: invalid operands to binary (have ‘char ’ and ‘char *’)

the function should take char* so whats the problem ?

my code

#include <stdio.h>

Nstring *readLine(FILE *file)
    char buffer[1000];
char * Nstring ;
char *line ;

    numstring *result = [ numstring  strc:256];

    int chars;
        if(fscanf(file, "%4095[^\n]%n%*c", buffer, &chars) == 1)
            [res = appendFormat:@"%s", buffer];
    } while(chars == 1000);

    return res;
int main (){
char * Nstring ;
char *line ;
FILE *file = fopen("myfile", "r");
// check for NULL
    Nstring *line = readLine(file);

return 0 ;


i have this small problem in my code which is that when i run the code it enters to the wrong condition

i mean in the if clause where i enter "download" it executes the body of the upload even though the first if clause condition meet and the opposite happens when i enter upload it executes the download if clause body !

so i am stuck ..i tried to put the last charachter to be NULL so it compares string correctly ...still it didnt work .

any help or suggestions ?

thank you

my code

#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <stdio.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>

int main()
int sock;
struct sockaddr_in server_addr;
struct hostent *host;
char send_data[1024];
int bytes_read;
char *name_files[]={"input.txt", "input1.txt"};//list of th file might be requseted by client
char* files_list_out[]={"out.txt","out2.txt"};// array for output files
int addr_len;
FILE * fout ;
char R_buff[1024];
FILE *fin ;
char recv_data[1024];//recieved data
char f_notf[6];
char line[128]; // line length
int count1=0;
int f=0;    
int M=0;
int numbytes ;

host= (struct hostent *) gethostbyname((char *)"");

//creating socket
if ((sock = socket(AF_INET, SOCK_DGRAM, 0)) == -1)

server_addr.sin_family = AF_INET;
server_addr.sin_port = htons(5000);
server_addr.sin_addr = *((struct in_addr *)host->h_addr);

//chk operation 
printf ("would you like to download or upload ? , plz enter your request \n" );

scanf(" %[^\t\n]s" ,R_buff) ;
 numbytes= sendto(sock, R_buff,  sizeof(R_buff), 0,(struct sockaddr *)&server_addr, sizeof(struct sockaddr));//sending the chosen file name 
R_buff[numbytes] = '\0';

 //**************start ...


i have this problem with vmware removes my Ubuntu iso file all the time ..i downloaded it (ubuntu iso)
in vmware ...and worked on ubuntu normally this week , the same thing exactly last week happened with mint iso whole work is gone !!! thank god i had a copy from the primary file on windows .

how can i solve this problem ?

thank you

i am running both of them server and client ,so the client will stop the server, once client sends a text it will appear on the server's screen ..but now i am trying to exchange files ...simulating the uploading and downloading ...after thinking i will remove the while loop and make it simple send and recieve :)

i tried to put break didn't work ...if i remove while(1) i get a segmentation fault, and i need it so the server keep listening if the client sends a request

i think i am gonna rewrite it again

i tried to put break it didn't work ...if remove while i get a segmentation fault, and i need it so the server keep listening if the client sends a request

i think i am gonna rewrite it again


i am adjusting a socket program code to make it able to read and write on files and send and recieve packets

but i am stuck it only performs the first while loop and doesn't go to the next lines to execute them !

i dont usually program using C ...but now i have to since i am dealing with linux to write the code !

any help would be really appreciated

i have added the part of reading and writing on files and save them in buffers ...but now i need to exchange data between them

my code

/* udpserver.c */ 

#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <stdio.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>

int main()

/*-------------file reading and buffering------------------*/
int in_count;// counter for input files 
char* files_list[]={"input.txt"};// array for input files names to send them to sender 

//printf("\n %s \n",files_list[in_count]); // test print

    static const char filename[] = "input.txt";

    FILE *file = fopen ( filename, "r" );

    int row, clm;

    char buffer[128][128];

    char line[128]; // line length

    for(row=0; row<128; row++)

    for(clm=0; clm<128; clm++)

        buffer[row][clm] = '\0';

    for(row=0; row<128; row++)

        line[row] = '\0';

    if ( file != NULL ){

        while ( fgets ( line, sizeof line, file ) != NULL ) // reading line by line from file 
         strcpy(buffer[row], line);
         //printf("%s", buffer[row]);

        fclose ( file );
      }//end if
printf ("error " ) ;
      //perror ( filename ); /* why didn't the file open? */ ...

ok that was helpful .
thank you for the explanation and correction